The generated OpenAPI spec should contain information from the info section of module spec files. Bug: T366834 Change-Id: I488f550adbf32205bdcdcb59b1e7f5273643bf69
21 lines
385 B
JSON
21 lines
385 B
JSON
{
|
|
"mwapi": "1.0.0",
|
|
"moduleId": "mock/v1",
|
|
"info": {
|
|
"version": "1.3-test"
|
|
},
|
|
"paths": {
|
|
"/foo/bar": {
|
|
"get": {
|
|
"handler": {
|
|
"factory": "MediaWiki\\Tests\\Rest\\Handler\\ModuleSpecHandlerTest::newFooBarHandler"
|
|
}
|
|
},
|
|
"post": {
|
|
"handler": {
|
|
"factory": "MediaWiki\\Tests\\Rest\\Handler\\ModuleSpecHandlerTest::newFooBarHandler"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|