{"openapi":"3.0.0","servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/vescamilla/AbarCMS-Dank/1.0.0"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/vescamilla/AbarCMS/1.0.0"}],"info":{"description":"API Rest for AbarCMS - Dank","version":"1.0.0","title":"AbarCMS-Dank API Rest","contact":{"email":"vescamilla@abargon.com"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"Pages","description":"Recursos para gestionar operaciones sobre paginas"},{"name":"FAQ","description":"Recursos para gestionar operaciones sobre preguntas frecuentes"},{"name":"MediaGuga","description":"Recursos para gestionar operaciones sobre assets específicos de Guga"}],"paths":{"/statements":{"post":{"description":"Creat pagina","tags":["Pages"],"parameters":[{"$ref":"#/components/parameters/AuthParam"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"alias":{"type":"string","example":"page-one"},"title":{"type":"string","example":"page one"},"description":{"type":"string","example":"Lorem ipsum"},"status":{"type":"integer","example":1},"position":{"type":"integer","example":1}}}}}},"responses":{"201":{"$ref":"#/components/responses/Success200"},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}},"get":{"tags":["Pages"],"description":"Datos del paginas en abarCMS","parameters":[{"$ref":"#/components/parameters/AuthParam"}],"responses":{"200":{"description":"Listado de paginas","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementArray"}}}},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}}},"/statements/{id}":{"put":{"description":"Actualiza informacion de pagina con el id","tags":["Pages"],"parameters":[{"$ref":"#/components/parameters/AuthParam"},{"$ref":"#/components/parameters/IdParam"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"alias":{"type":"string","example":"page-one"},"title":{"type":"string","example":"page one"},"description":{"type":"string","example":"Lorem ipsum"},"status":{"type":"integer","example":1},"position":{"type":"integer","example":1}}}}}},"responses":{"201":{"$ref":"#/components/responses/Success200"},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}}},"/faq":{"post":{"description":"Crear pregnta frecuente","tags":["FAQ"],"parameters":[{"$ref":"#/components/parameters/AuthParam"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"alias":{"type":"string","example":"first-question"},"title":{"type":"string","example":"fist question?"},"description":{"type":"string","example":"answer fisrt question"},"status":{"type":"integer","example":1},"position":{"type":"integer","example":1}}}}}},"responses":{"201":{"$ref":"#/components/responses/Success200"},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}},"get":{"tags":["FAQ"],"description":"Lustado de preguntas frecuentes","parameters":[{"$ref":"#/components/parameters/AuthParam"}],"responses":{"200":{"description":"Listado de paginas","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqArray"}}}},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}}},"/faq/{id}":{"put":{"description":"Actualiza informacion de la pregunta","tags":["FAQ"],"parameters":[{"$ref":"#/components/parameters/AuthParam"},{"$ref":"#/components/parameters/IdParam"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"alias":{"type":"string","example":"updated-question"},"title":{"type":"string","example":"updated question"},"description":{"type":"string","example":"updated answer"},"status":{"type":"integer","example":1},"position":{"type":"integer","example":1}}}}}},"responses":{"201":{"$ref":"#/components/responses/Success200"},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}},"delete":{"description":"Elimina la pregunta en abarCMS","parameters":[{"$ref":"#/components/parameters/AuthParam"},{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["FAQ"],"responses":{"201":{"$ref":"#/components/responses/Success200"},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}}},"/media-guga":{"get":{"tags":["MediaGuga"],"description":"Listado de imagenes guardadas para carrusel o banner","parameters":[{"$ref":"#/components/parameters/AuthParam"}],"responses":{"200":{"description":"Listado de imagenes guardadas para carrusel o banner","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaGugaArray"}}}},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}},"post":{"description":"Crear archivo media","tags":["MediaGuga"],"parameters":[{"$ref":"#/components/parameters/AuthParam"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"mediaContent":{"type":"integer","example":1},"name":{"type":"string","example":"img.jpeg"},"image":{"type":"string","example":"base64.."},"position":{"type":"integer","example":1},"property1":{"type":"string","example":""},"property2":{"type":"string","example":""}}}}}},"responses":{"201":{"$ref":"#/components/responses/Success200"},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}}},"/media-guga/{id}":{"put":{"description":"Actualiza informacion de archivo media","tags":["MediaGuga"],"parameters":[{"$ref":"#/components/parameters/AuthParam"},{"$ref":"#/components/parameters/IdParam"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"mediaContent":{"type":"integer","example":1},"name":{"type":"string","example":"img.jpeg"},"image":{"type":"string","example":"base64.."},"position":{"type":"integer","example":1},"property1":{"type":"string","example":""},"property2":{"type":"string","example":""}}}}}},"responses":{"201":{"$ref":"#/components/responses/Success200"},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}},"delete":{"description":"Elimina el archivo media en abarCMS","parameters":[{"$ref":"#/components/parameters/AuthParam"},{"$ref":"#/components/parameters/IdParam"}],"tags":["MediaGuga"],"responses":{"201":{"$ref":"#/components/responses/Success200"},"400":{"$ref":"#/components/responses/Error400"},"500":{"$ref":"#/components/responses/Error500"}}}}},"components":{"parameters":{"AuthParam":{"in":"header","name":"X-Auth-Token","description":"Token del usuario logeado","schema":{"type":"string"},"required":true},"UUIDParam":{"in":"path","name":"uuid","schema":{"type":"string","format":"uuid"},"required":true},"IdParam":{"in":"path","name":"id","schema":{"type":"integer"},"required":true}},"responses":{"Success200":{"description":"OK","headers":{"X-Status-Message":{"schema":{"type":"string"},"description":"Mensaje resultado de la petición"},"X-Status-Code":{"schema":{"type":"string"},"description":"Código de estatus"},"X-Inner-Status-Code":{"schema":{"type":"string"},"description":"Códifo de estatus interno"}}},"Error400":{"description":"Error de aplicación","headers":{"X-Status-Message":{"schema":{"type":"string"},"description":"Mensaje resultado de la petición"},"X-Status-Code":{"schema":{"type":"string"},"description":"Código de estatus"},"X-Inner-Status-Code":{"schema":{"type":"string"},"description":"Códifo de estatus interno"}}},"Error500":{"description":"Error interno","headers":{"X-Status-Message":{"schema":{"type":"string"},"description":"Mensaje resultado de la petición"},"X-Status-Code":{"schema":{"type":"string"},"description":"Código de estatus"},"X-Inner-Status-Code":{"schema":{"type":"string"},"description":"Códifo de estatus interno"}}}},"schemas":{"StatementItem":{"type":"object","properties":{"id":{"type":"integer","example":1},"alias":{"type":"string","example":"page-one"},"title":{"type":"string","example":"page one"},"description":{"type":"string","example":"Lorem ipsum"},"status":{"type":"integer","example":1},"position":{"type":"integer","example":1}}},"StatementArray":{"type":"array","items":{"$ref":"#/components/schemas/StatementItem"},"example":[{"id":"1","title":"terms and conditions","alias":"terms-and-conditions","description":"Lorem ipsm dolor","status":1,"position":1},{"id":"2","title":"privacy","alias":"privacy","description":"Lorem ipsm dolor","status":1,"position":2}]},"FaqItem":{"type":"object","properties":{"id":{"type":"integer","example":1},"alias":{"type":"string","example":"fist-question"},"title":{"type":"string","example":"fist question"},"description":{"type":"string","example":"answer"},"status":{"type":"integer","example":1},"position":{"type":"integer","example":1}}},"FaqArray":{"type":"array","items":{"$ref":"#/components/schemas/FaqItem"},"example":[{"id":1,"title":"First question?","alias":"first-question","description":"Lorem ipsm dolor","status":1,"position":1},{"id":2,"title":"Second question?","alias":"second-question","description":"Lorem ipsm dolor","status":1,"position":2}]},"MediaGugaItem":{"type":"object","properties":{"id":{"type":"integer","example":1},"mediaContent":{"type":"integer","example":1},"name":{"type":"string","example":"https://i.picsum.photos/id/966/600/600.jpg"},"image":{"type":"string","example":"base64"},"position":{"type":"integer","example":1},"property1":{"type":"string","example":"copy"},"property2":{"type":"string","example":"link externo"}}},"MediaGugaArray":{"type":"array","items":{"$ref":"#/components/schemas/MediaGugaItem"},"example":[{"id":"1","contentType":"1","name":"https://i.picsum.photos/id/966/600/600.jpg","position":"1","property1":"","property2":""},{"id":"2","contentType":"2","name":"https://i.picsum.photos/id/966/600/600.jpg","position":"1","property1":"","property2":""},{"id":"3","contentType":"2","name":"https://i.picsum.photos/id/966/600/600.jpg","position":"1","property1":"","property2":""},{"id":"4","contentType":"2","name":"https://i.picsum.photos/id/966/600/600.jpg","position":"3","property1":"Lorem ipsum btn","property2":"http://wbrae.uecsbzzpfx.com.au/"}]}}}}