This epic is for adding MCR properties and endpoints to the MediaWiki REST API. It includes the following endpoints:
| Endpoint | User story | Ticket
| ----- | ----- | -----
| GET /page/{title} | "As a Reader, I want to know which slots a page has, so I can get more information about the content of the page." | T237866
| GET /revision/{id} | "As a Curator, I want to know what slots a revision has, so I can evaluate their quality." | T237868
| POST /page/{title}/slot | "As a Contributor, I want to create a slot for a page, so that I can store metadata or other out-of-band data for the page." | T237869
| GET /page/{title}/slot/{role} | "As a Contributor, I want to get the current source for a slot, so I can edit it and update it." | T237870
| PUT /page/{title}/slot/{role} | "As a Contributor, I want to update a slot of a page, so that I can improve the page." | T237871
| GET /revision/{id}/slot/{role} | "As a Curator, I want to read the source for a slot for a previous revision, so I can understand how the page has developed over time." | T237872
| GET /page/{title}/slot/{role}/with_html | "As a Reader, I want to get a rendered representation of a page slot, so I can understand everything about the page." | T237874
| GET /page/{title}/slot/{role}/bare | "As a Reader, I want to read a page slot with HTML separate from the JSON, so I can load the HTML as fast as possible." | T237875
| GET /page/{title}/slot/{role}/html | " | "
| GET /revision/{id}/slot/{role}/with_html | "As a Curator, I want to get a rendered representation of a revision slot, so I can understand everything about the revision." | T237876
| GET /revision/{id}/slot/{role}/bare | "As a Curator, I want to read a revision slot with HTML separate from the JSON, so I can load the HTML as fast as possible." | T237877
| GET /page/{title}/slot/{role}/data | "As a Reader, I want to read the data of a binary page slot, so I can see the content of the in my viewer." | T237879
| GET /revision/{id}/slot/{role}/data | "As a Curator, I want to read the data of a binary revision slot, so I can see the content of the in my viewer." | T237880
| DELETE /page/{title}/slot/{role} | "As a Contributor, I want to delete a page slot, because the information in that slot no longer applies to the page." | T237883