{"components":{"responses":{},"schemas":{"Post":{"properties":{"body":{"type":"string"},"excerpt":{"nullable":true,"type":"string"},"id":{"type":"integer"},"kind":{"enum":["post","page"],"type":"string"},"published_at":{"format":"date_time","nullable":true,"type":"string"},"slug":{"type":"string"},"status":{"enum":["draft","published"],"type":"string"},"title":{"type":"string"},"url":{"nullable":true,"type":"string"}},"required":["id","title","slug","body","kind","status"],"title":"Post","type":"object"},"PostParams":{"properties":{"body":{"type":"string"},"excerpt":{"type":"string"},"kind":{"enum":["post","page"],"type":"string"},"published_at":{"format":"date_time","type":"string"},"slug":{"type":"string"},"status":{"enum":["draft","published"],"type":"string"},"title":{"type":"string"}},"required":["title","body"],"title":"PostParams","type":"object"}},"securitySchemes":{"oauth2":{"flows":{"authorizationCode":{"authorizationUrl":"/oauth2/authorize","scopes":{"content:read":"Read posts and pages","content:write":"Create and edit posts and pages","media:write":"Upload images"},"tokenUrl":"/oauth2/token"}},"type":"oauth2"}}},"info":{"description":"Create and manage publications and images from any authorized client.","title":"Gesttalt publishing interface","version":"1.0.0"},"openapi":"3.0.0","paths":{"/api/media":{"get":{"callbacks":{},"operationId":"GesttaltWeb.ApiMediaController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"type":"object"},"type":"array"}}},"description":"Images"}},"security":[{"oauth2":[]}],"summary":"List images","tags":["Media"]},"post":{"callbacks":{},"operationId":"GesttaltWeb.ApiMediaController.create","parameters":[],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"alt_text":{"type":"string"},"file":{"format":"binary","type":"string"}},"required":["file"],"type":"object"}}},"description":"Multipart image upload","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Image"}},"security":[{"oauth2":[]}],"summary":"Upload an image","tags":["Media"]}},"/api/posts":{"get":{"callbacks":{},"operationId":"GesttaltWeb.ApiPostController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Post"},"type":"array"}}},"description":"Content"}},"security":[{"oauth2":[]}],"summary":"List posts and pages","tags":["Content"]},"post":{"callbacks":{},"operationId":"GesttaltWeb.ApiPostController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostParams"}}},"description":"Content","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}},"description":"Created content"}},"security":[{"oauth2":[]}],"summary":"Create a post or page","tags":["Content"]}},"/api/posts/{id}":{"delete":{"callbacks":{},"operationId":"GesttaltWeb.ApiPostController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"oauth2":[]}],"summary":"Delete a post or page","tags":["Content"]},"get":{"callbacks":{},"operationId":"GesttaltWeb.ApiPostController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}},"description":"Content"}},"security":[{"oauth2":[]}],"summary":"Get a post or page","tags":["Content"]},"patch":{"callbacks":{},"operationId":"GesttaltWeb.ApiPostController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostParams"}}},"description":"Content","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}},"description":"Updated content"}},"security":[{"oauth2":[]}],"summary":"Update a post or page","tags":["Content"]},"put":{"callbacks":{},"operationId":"GesttaltWeb.ApiPostController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostParams"}}},"description":"Content","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}},"description":"Updated content"}},"security":[{"oauth2":[]}],"summary":"Update a post or page","tags":["Content"]}},"/api/posts/{id}/publish":{"post":{"callbacks":{},"operationId":"GesttaltWeb.ApiPostController.publish","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}},"description":"Published content"}},"security":[{"oauth2":[]}],"summary":"Publish content","tags":["Content"]}},"/api/posts/{id}/unpublish":{"post":{"callbacks":{},"operationId":"GesttaltWeb.ApiPostController.unpublish","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}},"description":"Draft content"}},"security":[{"oauth2":[]}],"summary":"Return content to drafts","tags":["Content"]}}},"security":[{"oauth2":[]}],"servers":[{"url":"https://gesttalt.org","variables":{}}],"tags":[]}