{"openapi":"3.0.0","info":{"title":"25k","version":"1.0.4"},"tags":[{"name":"LAYOUT","description":"общая информация для шаблонов"},{"name":"PAGE","description":"общая информация для страниц"},{"name":"PROJECT","description":"проекты"},{"name":"ORDER","description":"заявка/запрос"}],"paths":{"/layout":{"get":{"tags":["LAYOUT"],"summary":"общая информация для шаблонов","description":"общая информация для шаблонов","operationId":"getLayout","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"contacts":{"type":"object","properties":{"address":{"type":"string","example":"Москва, Одесская улица, 2кА — БЦ «Лотос», 6 этаж"},"email":{"type":"string","example":"info@25k.ru"},"tel":{"type":"string","example":"+ 7 (495) 255-17-17"}}}}}}}},"400":{"description":"bad input parameter"}}}},"/pages/{slug}":{"get":{"tags":["PAGE"],"summary":"общая информация для страниц","description":"общая информация для страниц","operationId":"getPage","parameters":[{"name":"slug","in":"path","description":"Чпу идентификатор страницы","required":true,"schema":{"type":"string","example":"about"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"type":"object","properties":{"title":{"type":"string","example":"о нас"},"description":{"type":"string","example":"описание страницы О нас"},"og":{"type":"object","properties":{"title":{"type":"string","example":"Главная страница"},"description":{"type":"string","example":"Lorem ipsum dolor sit amet consectetur adipisicing elit."},"url":{"type":"string","example":"https://ortomax.ru"},"image":{"type":"string","example":"/share/share.jpg"}}}}},"title":{"type":"string","description":"H1 заголовок страницы","example":"О нас"}}}}}},"400":{"description":"bad input parameter"}}}},"/projects":{"get":{"tags":["PROJECT"],"summary":"получить проекты (листинг Проектов)","description":"получить проекты","operationId":"getProjects","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"filter":{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid"},"label":{"type":"string","example":"50-300M^2"},"range":{"type":"object","properties":{"from":{"type":"number","example":50},"to":{"type":"number","example":"infinite"}}}}}},"list":{"type":"array","items":{"$ref":"#/components/schemas/ProjectItem"}}}}}}},"400":{"description":"bad input parameter"}}}},"/projects/{slug}":{"get":{"tags":["PROJECT"],"summary":"получить проект (страница Проект)","description":"получить проект по ЧПУ идентификатору","operationId":"getProjectsBySlug","parameters":[{"name":"slug","in":"path","description":"Чпу идентификатор проекта","required":true,"style":"simple","explode":false,"schema":{"type":"string","example":"regioninvest"}}],"responses":{"200":{"description":"ок","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectItemFull"}}}}},"400":{"description":"bad input parameter"}}}},"/order":{"post":{"tags":["ORDER"],"summary":"отправить заявку (форма связи на странице Контакты)","description":"отправить заявку","operationId":"postOrder","responses":{"201":{"description":"created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderItem"}}}},"400":{"description":"bad input parameter"}}}}},"components":{"schemas":{"ImageItem":{"type":"object","properties":{"desktop":{"type":"string","description":"картинка для десктопов (большое разрешение, высокое качество, 2k, 4k)","example":"/assets/uploads/projects/regioninvest/list_img-desktop.jpg"},"mobile":{"type":"string","description":"картинка для мобильных устройств","example":"/assets/uploads/projects/regioninvest/list_img-mobile.jpg"}}},"GalleryItem":{"allOf":[{"type":"object","properties":{"img":{"$ref":"#/components/schemas/ImageItem"},"justify":{"type":"string","description":"выравнивание изображения (пока не точно)","example":"start|end"},"size":{"type":"string","description":"размер изображения (пока не точно)","example":"100|50|33"},"offset":{"type":"string","description":"размер отступа с краю","example":"sm|md"}}}]},"ProjectItemBase":{"type":"object","properties":{"uuid":{"type":"string","description":"уникальный id проекта","format":"uuid"},"slug":{"type":"string","description":"ЧПУ идентификатор проект","example":"regioninvest"},"title":{"type":"string","description":"название проекта","example":"Регионинвест"},"options":{"type":"object","description":"характеристики проекта","properties":{"area":{"type":"number","description":"площадь проекта","example":1233},"workplaces":{"type":"number","example":230,"description":"рабочие места"}}}}},"ProjectItem":{"allOf":[{"$ref":"#/components/schemas/ProjectItemBase"},{"type":"object","properties":{"inspiration":{"$ref":"#/components/schemas/ImageItem"}}}]},"ProjectItemFull":{"allOf":[{"$ref":"#/components/schemas/ProjectItemBase"},{"type":"object","properties":{"description":{"type":"string","description":"Описание проекта","example":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n"},"inspiration":{"$ref":"#/components/schemas/ImageItem"},"gallery":{"type":"array","items":{"$ref":"#/components/schemas/GalleryItem"}},"feedback":{"type":"string","example":"http://localhost:3000/files/feedback.pdf"}}}]},"FormItem":{"type":"object","properties":{"label":{"type":"string","description":"название поля","example":"Ваше имя"},"type":{"type":"string","description":"тип поля (название компонента)","example":"textarea"},"model":{"type":"string","description":"модель элемента формы (в какое поле будет вестись запись)","example":"name"},"props":{"type":"object","additionalProperties":{"type":"object"},"description":"Произвольные входные параметры","example":{"options":[{"label":"Запрос на новый проект","value":123},{"label":"Предложение о сотрудничестве","value":124},{"label":"Хочу у вас работать","value":123525}]}}},"description":"элемент формы"},"OrderItem":{"required":["e-mail","name","subject"],"type":"object","properties":{"subject":{"type":"string","description":"Тема запроса","example":"Запрос на новый проект"},"name":{"type":"string","description":"имя","example":"Василий"},"phone":{"type":"string","description":"Телефон","example":"+7(916)1122334"},"e-mail":{"type":"string","description":"электронная почта","example":"zohan3333@gmail.com"},"message":{"type":"string","description":"сообщение","example":"lorem lorem lorem"},"company":{"type":"string","description":"название компании","example":"Рога и Копыта"},"industry":{"type":"string","description":"сфера деятельности","example":"лежание на диване"},"address":{"type":"string","description":"адрес объекта","example":"Москва, ул. Пушкина, дом Колотушкина"}}}}}}