Goal:
Mimic current RESTbase check endpoint
- Omit the x-resource location header for this task
Side objectives:
Math extension should be developed in concordance with core and Wikidata. For instance,
- Use namespaces
- High test coverage
- Use DI
- Different implementations are not modelled by extending classes but service containers
Useful documentation:
- https://www.mediawiki.org/wiki/API:REST_API/Extensions
- https://www.mediawiki.org/wiki/Manual:Caching
- https://www.mediawiki.org/wiki/Manual:Architectural_modules/Cache
- https://www.mediawiki.org/wiki/Dependency_Injection
Open Questions not covered by the documentation
- Best practices to generate cache keys.
- Best practices how to return non 200 response codes serving content
- Best practices to chose WANObject cache TTL
- Is there no swagger-style documentation for endpoints, to generate https://www.mediawiki.org/wiki/API:REST/Extensions/Documentation_Template from the code?