{"openapi":"3.0.0","info":{"title":"Extra Routes","description":"REST endpoints not associated with a module","version":"undefined","license":{"name":"","url":""},"contact":{"email":"apache@localhost"}},"servers":[{"url":"https://neowiki.dev/w/rest.php"}],"paths":{"/v1/page/{title}/history":{"get":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"older_than","description":"older_than parameter","in":"query","schema":{"type":"integer"},"required":false},{"name":"newer_than","description":"newer_than parameter","in":"query","schema":{"type":"integer"},"required":false},{"name":"filter","description":"filter parameter","in":"query","schema":{"type":"string","enum":["anonymous","bot","reverted","minor"]},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Page revision history","required":["revisions","latest"],"properties":{"revisions":{"type":"array","description":"List of revisions of the page","items":{"type":"object","required":["id","timestamp","minor","size","comment","user","delta"],"properties":{"id":{"type":"integer","description":"Unique revision identifier"},"timestamp":{"type":"string","format":"date-time"},"minor":{"type":"boolean","description":"True if the edit is marked as minor"},"size":{"type":"integer","description":"Size of the revision in bytes"},"comment":{"type":"string","nullable":true,"description":"The comment the author associated with the revision"},"user":{"type":"object","nullable":true,"description":"Information about the user who made the revision","properties":{"id":{"type":"integer","nullable":true,"description":"Unique identifier for the user; null for anonymous users"},"name":{"type":"string","description":"Username of the editor, or IP address if the user is anonymous"}},"required":["id","name"]},"delta":{"type":"integer","nullable":true,"description":"Change in size between this revision and the preceding one; null if not available"}}}},"latest":{"type":"string","format":"uri","description":"URL to the latest revision of the page"}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/page/{title}/history/counts/{type}":{"get":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"type","description":"type parameter","in":"path","schema":{"type":"string","enum":["anonymous","temporary","bot","editors","edits","minor","reverted","anonedits","botedits","revertededits"]},"required":true},{"name":"from","description":"from parameter","in":"query","schema":{"type":"integer"},"required":false},{"name":"to","description":"to parameter","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/revision/{from}/compare/{to}":{"get":{"parameters":[{"name":"from","description":"from parameter","in":"path","schema":{"type":"integer"},"required":true},{"name":"to","description":"to parameter","in":"path","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/revision/{id}":{"get":{"parameters":[{"name":"id","description":"Revision id","in":"path","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"revision meta-data","required":["id","size","delta","comment","minor","timestamp","content_model","page","license"],"properties":{"id":{"type":"integer","description":"Revision id"},"size":{"type":"integer","description":"The size of the revision, in no particular measure."},"delta":{"type":"integer","nullable":true,"description":"The difference in size compared to the previous revision."},"comment":{"type":"string","nullable":true,"description":"The comment the author associated with the revision"},"minor":{"type":"boolean","description":"Whether the author of the revision conidered it minor."},"timestamp":{"type":"string","format":"date-time"},"content_model":{"type":"string","format":"mw-content-model"},"page":{"description":"the page the revision belongs to","required":["id","key","title"],"properties":{"id":{"type":"integer","description":"the page ID"},"key":{"type":"string","format":"mw-title","description":"the page title in URL form (unencoded)"},"title":{"type":"string","format":"mw-title","description":"the page title in human readable form"}}},"license":{"description":"license information for the revision content","required":["url","title"],"properties":{"url":{"type":"string","format":"url"},"title":{"type":"string","description":"the name of the license"}}}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/revision/{id}/html":{"get":{"parameters":[{"name":"id","description":"Revision id","in":"path","schema":{"type":"integer"},"required":true},{"name":"stash","description":"stash parameter","in":"query","schema":{"type":"boolean"},"required":false},{"name":"flavor","description":"flavor parameter","in":"query","schema":{"type":"string","enum":["view","stash","fragment","edit"]},"required":false}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/revision/{id}/with_html":{"get":{"parameters":[{"name":"id","description":"Revision id","in":"path","schema":{"type":"integer"},"required":true},{"name":"stash","description":"stash parameter","in":"query","schema":{"type":"boolean"},"required":false},{"name":"flavor","description":"flavor parameter","in":"query","schema":{"type":"string","enum":["view","stash","fragment","edit"]},"required":false}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/revision/{id}/bare":{"get":{"parameters":[{"name":"id","description":"Revision id","in":"path","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"revision meta-data","required":["id","size","delta","comment","minor","timestamp","content_model","page","license"],"properties":{"id":{"type":"integer","description":"Revision id"},"size":{"type":"integer","description":"The size of the revision, in no particular measure."},"delta":{"type":"integer","nullable":true,"description":"The difference in size compared to the previous revision."},"comment":{"type":"string","nullable":true,"description":"The comment the author associated with the revision"},"minor":{"type":"boolean","description":"Whether the author of the revision conidered it minor."},"timestamp":{"type":"string","format":"date-time"},"content_model":{"type":"string","format":"mw-content-model"},"page":{"description":"the page the revision belongs to","required":["id","key","title"],"properties":{"id":{"type":"integer","description":"the page ID"},"key":{"type":"string","format":"mw-title","description":"the page title in URL form (unencoded)"},"title":{"type":"string","format":"mw-title","description":"the page title in human readable form"}}},"license":{"description":"license information for the revision content","required":["url","title"],"properties":{"url":{"type":"string","format":"url"},"title":{"type":"string","description":"the name of the license"}}}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/search":{"get":{"parameters":[{"name":"ctype","description":"ctype parameter","in":"query","schema":{"type":"string"},"required":false}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/search/page":{"get":{"parameters":[{"name":"q","description":"q parameter","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","description":"limit parameter","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Search results","required":["pages"],"properties":{"pages":{"type":"array","description":"List of search result pages","items":{"type":"object","required":["id","key","title","excerpt","matched_title","description","thumbnail"],"properties":{"id":{"type":"integer","description":"Page identifier"},"key":{"type":"string","description":"Page title in URL-friendly format"},"title":{"type":"string","description":"Page title in reading-friendly format"},"excerpt":{"type":"string","description":"Excerpt of the page content matching the search query"},"matched_title":{"type":"string","nullable":true,"description":"The title of a page redirection from, if applicable, or null"},"description":{"type":"string","nullable":true,"description":"Short summary of the page topic or null if no summary exists."},"thumbnail":{"type":"object","nullable":true,"description":"Information about the thumbnail image for the page, or null if no thumbnail exists.","properties":{"mimetype":{"type":"string","description":"The file type"},"width":{"type":"integer","nullable":true,"description":"Maximum recommended image width in pixels or null if not available"},"height":{"type":"integer","nullable":true,"description":"Maximum recommended image height in pixels or null if not available"},"duration":{"type":"number","nullable":true,"description":"The length of the video, audio, or multimedia file or null for other media types"},"url":{"type":"string","format":"uri","description":"URL to download the file"}},"required":["mimetype","width","height","duration","url"]}}}}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/search/title":{"get":{"parameters":[{"name":"q","description":"q parameter","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","description":"limit parameter","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Search results","required":["pages"],"properties":{"pages":{"type":"array","description":"List of search result pages","items":{"type":"object","required":["id","key","title","excerpt","matched_title","description","thumbnail"],"properties":{"id":{"type":"integer","description":"Page identifier"},"key":{"type":"string","description":"Page title in URL-friendly format"},"title":{"type":"string","description":"Page title in reading-friendly format"},"excerpt":{"type":"string","description":"Excerpt of the page content matching the search query"},"matched_title":{"type":"string","nullable":true,"description":"The title of a page redirection from, if applicable, or null"},"description":{"type":"string","nullable":true,"description":"Short summary of the page topic or null if no summary exists."},"thumbnail":{"type":"object","nullable":true,"description":"Information about the thumbnail image for the page, or null if no thumbnail exists.","properties":{"mimetype":{"type":"string","description":"The file type"},"width":{"type":"integer","nullable":true,"description":"Maximum recommended image width in pixels or null if not available"},"height":{"type":"integer","nullable":true,"description":"Maximum recommended image height in pixels or null if not available"},"duration":{"type":"number","nullable":true,"description":"The length of the video, audio, or multimedia file or null for other media types"},"url":{"type":"string","format":"uri","description":"URL to download the file"}},"required":["mimetype","width","height","duration","url"]}}}}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/page/{title}/links/language":{"get":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Interlanguage links for the page","type":"array","items":{"required":["code","name","key","title"],"properties":{"code":{"type":"string","description":"Language code"},"name":{"type":"string","description":"Translated language name"},"key":{"type":"string","description":"Translated page title in URL-friendly format"},"title":{"type":"string","description":"Translated page title in reading-friendly format"}}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/page/{title}":{"get":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"redirect","description":"redirect parameter","in":"query","schema":{"type":"string","enum":["no"]},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Page with source (usually wikitext)","required":["id","key","title","latest","content_model","license","source"],"properties":{"id":{"type":"integer","description":"Page identifier"},"key":{"type":"string","description":"Page title in URL-friendly format"},"title":{"type":"string","description":"Page title"},"latest":{"type":"object","description":"Information about the latest revision","properties":{"id":{"type":"integer","description":"Revision identifier for the latest revision"},"timestamp":{"type":"string","description":" Timestamp of the latest revision"}}},"content_model":{"type":"string","description":"Page content type"},"license":{"type":"object","description":"Information about the wiki's license","properties":{"url":{"type":"string","description":"URL of the applicable license"},"title":{"type":"string","description":"Name of the applicable license"}}},"source":{"type":"string","description":"Latest page content in the format specified by the content_model property"}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}},"put":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Page with source (usually wikitext)","required":["id","key","title","latest","content_model","license","source"],"properties":{"id":{"type":"integer","description":"Page identifier"},"key":{"type":"string","description":"Page title in URL-friendly format"},"title":{"type":"string","description":"Page title"},"latest":{"type":"object","description":"Information about the latest revision","properties":{"id":{"type":"integer","description":"Revision identifier for the latest revision"},"timestamp":{"type":"string","description":" Timestamp of the latest revision"}}},"content_model":{"type":"string","description":"Page content type"},"license":{"type":"object","description":"Information about the wiki's license","properties":{"url":{"type":"string","description":"URL of the applicable license"},"title":{"type":"string","description":"Name of the applicable license"}}},"source":{"type":"string","description":"Latest page content in the format specified by the content_model property"}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string"},"comment":{"type":"string"},"content_model":{"type":"string"},"latest":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"timestamp":{"type":"string"}},"additionalProperties":false},"token":{"type":"string"}},"required":["source","comment"]}}}}}},"/v1/page/{title}/bare":{"get":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"redirect","description":"redirect parameter","in":"query","schema":{"type":"string","enum":["no"]},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Page without content","required":["id","key","title","latest","content_model","license","html_url"],"properties":{"id":{"type":"integer","description":"Page identifier"},"key":{"type":"string","description":"Page title in URL-friendly format"},"title":{"type":"string","description":"Page title"},"latest":{"type":"object","description":"Information about the latest revision","properties":{"id":{"type":"integer","description":"Revision identifier for the latest revision"},"timestamp":{"type":"string","description":" Timestamp of the latest revision"}}},"content_model":{"type":"string","description":"Page content type"},"license":{"type":"object","description":"Information about the wiki's license","properties":{"url":{"type":"string","description":"URL of the applicable license"},"title":{"type":"string","description":"Name of the applicable license"}}},"html_url":{"type":"string","description":"API route to fetch the content of the page in HTML"}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/page/{title}/html":{"get":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"redirect","description":"redirect parameter","in":"query","schema":{"type":"string","enum":["no"]},"required":false},{"name":"stash","description":"stash parameter","in":"query","schema":{"type":"boolean"},"required":false},{"name":"flavor","description":"flavor parameter","in":"query","schema":{"type":"string","enum":["view","stash","fragment","edit"]},"required":false}],"responses":{"200":{"description":"OK","content":{"text/html":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/page/{title}/with_html":{"get":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"redirect","description":"redirect parameter","in":"query","schema":{"type":"string","enum":["no"]},"required":false},{"name":"stash","description":"stash parameter","in":"query","schema":{"type":"boolean"},"required":false},{"name":"flavor","description":"flavor parameter","in":"query","schema":{"type":"string","enum":["view","stash","fragment","edit"]},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Page with HTML content","required":["id","key","title","latest","content_model","license","html"],"properties":{"id":{"type":"integer","description":"Page identifier"},"key":{"type":"string","description":"Page title in URL-friendly format"},"title":{"type":"string","description":"Page title in reading-friendly format"},"latest":{"type":"object","description":"Information about the latest revision","properties":{"id":{"type":"integer","description":"Revision identifier for the latest revision"},"timestamp":{"type":"string","description":" Timestamp of the latest revision in ISO 8601 format"}}},"content_model":{"type":"string","description":"Type of content on the page"},"license":{"type":"object","description":"Information about the wiki's license","properties":{"url":{"type":"string","description":"URL of the applicable license based on the $wgRightsUrl setting"},"title":{"type":"string","description":"Name of the applicable license based on the $wgRightsText setting"}}},"html":{"type":"string","description":"Latest page content in HTML, following the HTML specification"}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/page/{title}/links/media":{"get":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Media links for the page","required":["files"],"properties":{"files":{"type":"array","description":"Array of media used on the page","items":{"type":"object","required":["title","file_description_url","latest","preferred","original"],"properties":{"title":{"type":"string","description":"File title"},"file_description_url":{"type":"string","description":"URL for the page describing the file, including license information and other metadata"},"latest":{"type":"object","nullable":true,"description":"Information about the latest revision to the file","properties":{"timestamp":{"type":"string","format":"date-time","description":"Last modified timestamp in ISO 8601 format"},"user":{"type":"object","description":"Information about the user who uploaded the file","properties":{"id":{"type":"integer","nullable":true,"description":"User identifier"},"name":{"type":"string","nullable":true,"description":"Username"}},"required":["id","name"]}},"required":["timestamp","user"]},"preferred":{"type":"object","nullable":true,"description":"Information about the file's preferred preview format, original format, and thumbnail format","properties":{"mediatype":{"type":"string","enum":["BITMAP","DRAWING","AUDIO","VIDEO","MULTIMEDIA","UNKNOWN","OFFICE","TEXT","EXECUTABLE","ARCHIVE","3D"],"description":"The file type"},"size":{"type":"integer","nullable":true,"description":"File size in bytes or null if not available"},"width":{"type":"integer","nullable":true,"description":"Maximum recommended image width in pixels or null if not available"},"height":{"type":"integer","nullable":true,"description":"Maximum recommended image height in pixels or null if not available"},"duration":{"type":"number","nullable":true,"description":"The length of the video, audio, or multimedia file or null for other media types"},"url":{"type":"string","format":"uri","description":"URL to download the file"}},"required":["mediatype","size","width","height","duration","url"]},"original":{"type":"object","nullable":true,"description":"Original file details","properties":{"mediatype":{"type":"string","enum":["BITMAP","DRAWING","AUDIO","VIDEO","MULTIMEDIA","UNKNOWN","OFFICE","TEXT","EXECUTABLE","ARCHIVE","3D"],"description":"The file type"},"size":{"type":"integer","nullable":true,"description":"File size in bytes or null if not available"},"width":{"type":"integer","nullable":true,"description":"Maximum recommended image width in pixels or null if not available"},"height":{"type":"integer","nullable":true,"description":"Maximum recommended image height in pixels or null if not available"},"duration":{"type":"number","nullable":true,"description":"The length of the video, audio, or multimedia file or null for other media types"},"url":{"type":"string","format":"uri","description":"URL to download the file"}},"required":["mediatype","size","width","height","duration","url"]}}}}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/file/{title}":{"get":{"parameters":[{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Information about the file","required":["title","file_description_url","latest","preferred","original","thumbnail"],"properties":{"title":{"type":"string","description":"File title"},"file_description_url":{"type":"string","description":"URL for the page describing the file, including license information and other metadata"},"latest":{"type":"object","nullable":true,"description":"Information about the latest revision to the file","properties":{"timestamp":{"type":"string","format":"date-time","description":"Last modified timestamp in ISO 8601 format"},"user":{"type":"object","description":"Information about the user who uploaded the file","properties":{"id":{"type":"integer","nullable":true,"description":"User identifier"},"name":{"type":"string","nullable":true,"description":"Username"}},"required":["id","name"]}},"required":["timestamp","user"]},"preferred":{"type":"object","nullable":true,"description":"Information about the file's preferred preview format, original format, and thumbnail format","properties":{"mediatype":{"type":"string","enum":["BITMAP","DRAWING","AUDIO","VIDEO","MULTIMEDIA","UNKNOWN","OFFICE","TEXT","EXECUTABLE","ARCHIVE","3D"],"description":"The file type"},"size":{"type":"integer","nullable":true,"description":"File size in bytes or null if not available"},"width":{"type":"integer","nullable":true,"description":"Maximum recommended image width in pixels or null if not available"},"height":{"type":"integer","nullable":true,"description":"Maximum recommended image height in pixels or null if not available"},"duration":{"type":"number","nullable":true,"description":"The length of the video, audio, or multimedia file or null for other media types"},"url":{"type":"string","format":"uri","description":"URL to download the file"}},"required":["mediatype","size","width","height","duration","url"]},"original":{"type":"object","nullable":true,"description":"Original file details","properties":{"mediatype":{"type":"string","enum":["BITMAP","DRAWING","AUDIO","VIDEO","MULTIMEDIA","UNKNOWN","OFFICE","TEXT","EXECUTABLE","ARCHIVE","3D"],"description":"The file type"},"size":{"type":"integer","nullable":true,"description":"File size in bytes or null if not available"},"width":{"type":"integer","nullable":true,"description":"Maximum recommended image width in pixels or null if not available"},"height":{"type":"integer","nullable":true,"description":"Maximum recommended image height in pixels or null if not available"},"duration":{"type":"number","nullable":true,"description":"The length of the video, audio, or multimedia file or null for other media types"},"url":{"type":"string","format":"url","description":"URL to download the file"}},"required":["mediatype","size","width","height","duration","url"]},"thumbnail":{"type":"object","nullable":true,"description":"Thumbnail information","properties":{"mediatype":{"type":"string","enum":["BITMAP","DRAWING","AUDIO","VIDEO","MULTIMEDIA","UNKNOWN","OFFICE","TEXT","EXECUTABLE","ARCHIVE","3D"],"description":"The file type"},"size":{"type":"integer","nullable":true,"description":"File size in bytes or null if not available"},"width":{"type":"integer","nullable":true,"description":"Maximum recommended image width in pixels or null if not available"},"height":{"type":"integer","nullable":true,"description":"Maximum recommended image height in pixels or null if not available"},"duration":{"type":"number","nullable":true,"description":"The length of the video, audio, or multimedia file or null for other media types"},"url":{"type":"string","format":"uri","description":"URL to download the file"}},"required":["mediatype","size","width","height","duration","url"]}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/page":{"post":{"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"The new page, including source (usually wikitext)","required":["id","title","key","latest","license","content_model","source"],"properties":{"id":{"type":"integer","description":"Page identifier"},"title":{"type":"string","description":"Page title"},"key":{"type":"string","description":"Page title in URL-friendly format"},"latest":{"type":"object","description":"Information about the latest revision","properties":{"id":{"type":"integer","description":"Revision identifier for the latest revision"},"timestamp":{"type":"string","description":" Timestamp of the latest revision"}}},"license":{"type":"object","description":"Information about the wiki's license","properties":{"url":{"type":"string","description":"URL of the applicable license"},"title":{"type":"string","description":"Name of the applicable license"}}},"content_model":{"type":"string","description":"Page content type"},"source":{"type":"string","description":"Page content in the format specified by the content_model property"}}}}}},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string"},"title":{"type":"string"},"comment":{"type":"string"},"content_model":{"type":"string"},"token":{"type":"string"}},"required":["source","title","comment"]}}}}}},"/v1/transform/{from}/to/{format}/{title}/{revision}":{"post":{"parameters":[{"name":"from","description":"from parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"format","description":"format parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"revision","description":"revision parameter","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/transform/{from}/to/{format}":{"post":{"parameters":[{"name":"from","description":"from parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"format","description":"format parameter","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/v1/transform/{from}/to/{format}/{title}":{"post":{"parameters":[{"name":"from","description":"from parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"format","description":"format parameter","in":"path","schema":{"type":"string"},"required":true},{"name":"title","description":"title parameter","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/neowiki/v0/page/{pageId}/mainSubject":{"post":{"parameters":[{"name":"pageId","description":"MediaWiki page ID.","in":"path","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"},"schema":{"type":"string"},"statements":{"type":"object"},"comment":{"type":"string"}},"required":["label","schema","statements"]}}}}},"put":{"parameters":[{"name":"pageId","description":"MediaWiki page ID.","in":"path","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subjectId":{"type":"string"},"comment":{"type":"string"}}}}}}}},"/neowiki/v0/page/{pageId}/childSubjects":{"post":{"parameters":[{"name":"pageId","description":"MediaWiki page ID.","in":"path","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"},"schema":{"type":"string"},"statements":{"type":"object"},"comment":{"type":"string"}},"required":["label","schema","statements"]}}}}}},"/neowiki/v0/page/{pageId}/subjects":{"get":{"parameters":[{"name":"pageId","description":"MediaWiki page ID.","in":"path","schema":{"type":"integer"},"required":true},{"name":"expand","description":"Embed related data in the response. Accepted values: \"schemas\", \"relations\".","in":"query","schema":{"type":"string","enum":["schemas","relations"]},"required":false}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/neowiki/v0/subject/{subjectId}":{"get":{"parameters":[{"name":"subjectId","description":"Persistent identifier of the Subject. 15 characters, starting with \"s\".","in":"path","schema":{"type":"string"},"required":true},{"name":"revisionId","description":"Revision ID to fetch the Subject at. Defaults to the latest revision.","in":"query","schema":{"type":"integer"},"required":false},{"name":"expand","description":"Embed related data in the response. Accepted values: \"page\", \"relations\".","in":"query","schema":{"type":"string","enum":["page","relations"]},"required":false}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}},"patch":{"parameters":[{"name":"subjectId","description":"Persistent identifier of the Subject. 15 characters, starting with \"s\".","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"},"statements":{"type":"object"},"comment":{"type":"string"}},"required":["statements"]}}}}},"delete":{"parameters":[{"name":"subjectId","description":"Persistent identifier of the Subject. 15 characters, starting with \"s\".","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"type":"string"}}}}}}}},"/neowiki/v0/schema/{schemaName}":{"get":{"parameters":[{"name":"schemaName","description":"Schema name (e.g. \"Person\"). Case-sensitive.","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/neowiki/v0/layout/{layoutName}":{"get":{"parameters":[{"name":"layoutName","description":"Layout name (e.g. \"Person finances\"). Case-sensitive.","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/neowiki/v0/layouts":{"get":{"parameters":[{"name":"limit","description":"Maximum number of items to return.","in":"query","schema":{"type":"integer"},"required":false},{"name":"offset","description":"Zero-based index of the first item to return.","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/neowiki/v0/schema-names/{search}":{"get":{"parameters":[{"name":"search","description":"Case-insensitive search prefix matched against Schema names.","in":"path","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/neowiki/v0/subject-labels":{"get":{"parameters":[{"name":"search","description":"Case-insensitive search prefix matched against Subject labels.","in":"query","schema":{"type":"string"},"required":false},{"name":"schema","description":"Schema name to filter results by (e.g. \"Person\"). Case-sensitive. Only Subjects of this Schema are returned.","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","description":"Maximum number of items to return.","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}},"/neowiki/v0/schemas":{"get":{"parameters":[{"name":"limit","description":"Maximum number of items to return.","in":"query","schema":{"type":"integer"},"required":false},{"name":"offset","description":"Zero-based index of the first item to return.","in":"query","schema":{"type":"integer"},"required":false}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/GenericErrorResponse"},"500":{"$ref":"#/components/responses/GenericErrorResponse"}}}}},"components":{"schemas":{"boolean-param":{"type":"boolean"},"enum-param":{"type":"string"},"integer-param":{"type":"integer"},"float-param":{"type":"number","format":"float"},"double-param":{"type":"number","format":"double"},"password-param":{"type":"string"},"string-param":{"type":"string"},"timestamp-param":{"type":"string","format":"mw-timestamp"},"upload-param":{"type":"string","format":"mw-upload"},"expiry-param":{"type":"string","format":"mw-expiry"},"title-param":{"type":"string","format":"mw-title"},"user-param":{"type":"string","format":"mw-user"},"array-param":{"type":"object"},"GenericErrorResponseModel":{"description":"Generic error response body","required":["httpCode","httpMessage"],"properties":{"httpCode":{"type":"integer"},"httpMessage":{"type":"string"},"message":{"type":"string"},"messageTranslations":{"type":"object","additionalProperties":{"type":"string"}}}}},"responses":{"GenericErrorResponse":{"description":"Generic error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericErrorResponseModel"}}}}}}}