{"components":{"responses":{},"schemas":{"Idea":{"properties":{"id":{"type":"integer"},"inserted_at":{"format":"date_time","type":"string"},"notes":{"nullable":true,"type":"string"},"title":{"type":"string"},"updated_at":{"format":"date_time","type":"string"}},"required":["id","title","inserted_at","updated_at"],"title":"Idea","type":"object"},"IdeaParams":{"properties":{"notes":{"type":"string"},"title":{"type":"string"}},"required":["title"],"title":"IdeaParams","type":"object"},"Photo":{"properties":{"caption":{"nullable":true,"type":"string"},"id":{"type":"integer"},"image":{"properties":{"alt_text":{"type":"string"},"byte_size":{"type":"integer"},"content_type":{"type":"string"},"filename":{"type":"string"},"id":{"type":"integer"},"url":{"type":"string"}},"required":["id","filename","content_type","byte_size","alt_text","url"],"type":"object"},"inserted_at":{"format":"date_time","type":"string"},"published_at":{"format":"date_time","nullable":true,"type":"string"},"status":{"enum":["draft","published"],"type":"string"},"url":{"nullable":true,"type":"string"}},"required":["id","status","inserted_at","image"],"title":"Photo","type":"object"},"Post":{"properties":{"body":{"type":"string"},"excerpt":{"nullable":true,"type":"string"},"id":{"type":"integer"},"kind":{"enum":["post","page","note"],"type":"string"},"published_at":{"format":"date_time","nullable":true,"type":"string"},"slug":{"type":"string"},"status":{"enum":["draft","published"],"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"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","note"],"type":"string"},"published_at":{"format":"date_time","type":"string"},"slug":{"type":"string"},"status":{"enum":["draft","published"],"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"}},"required":["title","body"],"title":"PostParams","type":"object"}},"securitySchemes":{"oauth2":{"flows":{"authorizationCode":{"authorizationUrl":"/oauth2/authorize","scopes":{"content:read":"Read posts, pages, ideas, and photography feed entries","content:write":"Create and edit posts, pages, and ideas","media:write":"Manage images and photography feed entries"},"tokenUrl":"/oauth2/token"}},"type":"oauth2"}}},"info":{"description":"Create and manage publications, conversation ideas, photography feeds, and images from any authorized client.","title":"Gesttalt publishing interface","version":"1.0.0"},"openapi":"3.0.0","paths":{"/api/ideas":{"get":{"callbacks":{},"operationId":"GesttaltWeb.ApiIdeaController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Idea"},"type":"array"}}},"description":"Ideas"}},"security":[{"oauth2":[]}],"summary":"List ideas","tags":["Ideas"]},"post":{"callbacks":{},"operationId":"GesttaltWeb.ApiIdeaController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaParams"}}},"description":"Idea","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}},"description":"Created idea"}},"security":[{"oauth2":[]}],"summary":"Create an idea","tags":["Ideas"]}},"/api/ideas/{id}":{"delete":{"callbacks":{},"operationId":"GesttaltWeb.ApiIdeaController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"oauth2":[]}],"summary":"Delete an idea","tags":["Ideas"]},"get":{"callbacks":{},"operationId":"GesttaltWeb.ApiIdeaController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}},"description":"Idea"}},"security":[{"oauth2":[]}],"summary":"Get an idea","tags":["Ideas"]},"patch":{"callbacks":{},"operationId":"GesttaltWeb.ApiIdeaController.update (2)","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaParams"}}},"description":"Idea","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}},"description":"Updated idea"}},"security":[{"oauth2":[]}],"summary":"Update an idea","tags":["Ideas"]},"put":{"callbacks":{},"operationId":"GesttaltWeb.ApiIdeaController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaParams"}}},"description":"Idea","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}},"description":"Updated idea"}},"security":[{"oauth2":[]}],"summary":"Update an idea","tags":["Ideas"]}},"/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/photos":{"get":{"callbacks":{},"operationId":"GesttaltWeb.ApiPhotoController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Photo"},"type":"array"}}},"description":"Photos"}},"security":[{"oauth2":[]}],"summary":"List photography feed entries","tags":["Photography"]},"post":{"callbacks":{},"operationId":"GesttaltWeb.ApiPhotoController.create","parameters":[],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"alt_text":{"type":"string"},"caption":{"type":"string"},"file":{"format":"binary","type":"string"},"status":{"enum":["draft","published"],"type":"string"}},"required":["file","alt_text"],"type":"object"}}},"description":"Multipart photo upload","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Photo"}}},"description":"Photo"}},"security":[{"oauth2":[]}],"summary":"Upload a photography feed entry","tags":["Photography"]}},"/api/photos/{id}":{"delete":{"callbacks":{},"operationId":"GesttaltWeb.ApiPhotoController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Deleted"}},"security":[{"oauth2":[]}],"summary":"Delete a photography feed entry and its image","tags":["Photography"]},"get":{"callbacks":{},"operationId":"GesttaltWeb.ApiPhotoController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Photo"}}},"description":"Photo"}},"security":[{"oauth2":[]}],"summary":"Get a photography feed entry","tags":["Photography"]},"patch":{"callbacks":{},"operationId":"GesttaltWeb.ApiPhotoController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"caption":{"type":"string"}},"type":"object"}}},"description":"Photo changes","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Photo"}}},"description":"Photo"}},"security":[{"oauth2":[]}],"summary":"Update a photography feed caption","tags":["Photography"]}},"/api/photos/{id}/publish":{"post":{"callbacks":{},"operationId":"GesttaltWeb.ApiPhotoController.publish","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Photo"}}},"description":"Photo"}},"security":[{"oauth2":[]}],"summary":"Publish a photography feed entry","tags":["Photography"]}},"/api/photos/{id}/unpublish":{"post":{"callbacks":{},"operationId":"GesttaltWeb.ApiPhotoController.unpublish","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Photo"}}},"description":"Photo"}},"security":[{"oauth2":[]}],"summary":"Return a photography feed entry to drafts","tags":["Photography"]}},"/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":[]}