| 1 | { |
| 2 | "mwapi": "1.0.0", |
| 3 | "moduleId": "specs/v0", |
| 4 | "audience": "dev", |
| 5 | "info": { |
| 6 | "title": "Specs", |
| 7 | "description": "Self-documentation module providing discovery, specs, and schemas for all available modules.", |
| 8 | "version": "0.1.0" |
| 9 | }, |
| 10 | "paths": { |
| 11 | "/discovery": { |
| 12 | "get": { |
| 13 | "handler": { |
| 14 | "class": "MediaWiki\\Rest\\Handler\\DiscoveryHandler", |
| 15 | "services": [ |
| 16 | "MainConfig" |
| 17 | ] |
| 18 | } |
| 19 | } |
| 20 | }, |
| 21 | "/module/{module}": { |
| 22 | "get": { |
| 23 | "handler": { |
| 24 | "class": "MediaWiki\\Rest\\Handler\\ModuleSpecHandler", |
| 25 | "services": [ |
| 26 | "MainConfig" |
| 27 | ] |
| 28 | } |
| 29 | } |
| 30 | }, |
| 31 | "/module/{module}/{version}": { |
| 32 | "get": { |
| 33 | "handler": { |
| 34 | "class": "MediaWiki\\Rest\\Handler\\ModuleSpecHandler", |
| 35 | "services": [ |
| 36 | "MainConfig" |
| 37 | ] |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | } |