|
@@ -25,6 +25,8 @@ tags:
|
|
|
description: Регистрация и авторизация (получение токена)
|
|
description: Регистрация и авторизация (получение токена)
|
|
|
- name: movie
|
|
- name: movie
|
|
|
description: Информация о киноновинках
|
|
description: Информация о киноновинках
|
|
|
|
|
+ - name: up
|
|
|
|
|
+ description: Ресурсы
|
|
|
|
|
|
|
|
paths:
|
|
paths:
|
|
|
/auth/register:
|
|
/auth/register:
|
|
@@ -128,16 +130,38 @@ paths:
|
|
|
content:
|
|
content:
|
|
|
application/json:
|
|
application/json:
|
|
|
schema:
|
|
schema:
|
|
|
- $ref: '#/components/schemas/ArrayOfMovies'
|
|
|
|
|
|
|
+ $ref: '#/components/schemas/Movie'
|
|
|
'400':
|
|
'400':
|
|
|
description: Проблемы при запросе
|
|
description: Проблемы при запросе
|
|
|
|
|
+ /up/images/{imageName}:
|
|
|
|
|
+ get:
|
|
|
|
|
+ tags:
|
|
|
|
|
+ - up
|
|
|
|
|
+ summary: Получение картинки
|
|
|
|
|
+ parameters:
|
|
|
|
|
+ - in: path
|
|
|
|
|
+ name: imageName
|
|
|
|
|
+ schema:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ required: true
|
|
|
|
|
+ description: Название картинки (с расширением), полученное при запросе списка фильмов
|
|
|
|
|
+ responses:
|
|
|
|
|
+ '200':
|
|
|
|
|
+ description: Файл картинки в произвольном формате
|
|
|
|
|
+ content:
|
|
|
|
|
+ image/png:
|
|
|
|
|
+ schema:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ format: binary
|
|
|
|
|
+ '404':
|
|
|
|
|
+ description: Картинка не найдена на сервере
|
|
|
components:
|
|
components:
|
|
|
securitySchemes:
|
|
securitySchemes:
|
|
|
BearerAuth:
|
|
BearerAuth:
|
|
|
type: http
|
|
type: http
|
|
|
scheme: bearer
|
|
scheme: bearer
|
|
|
schemas:
|
|
schemas:
|
|
|
- ArrayOfMovies:
|
|
|
|
|
|
|
+ Movie:
|
|
|
type: array
|
|
type: array
|
|
|
items:
|
|
items:
|
|
|
type: object
|
|
type: object
|
|
@@ -164,10 +188,10 @@ components:
|
|
|
example: poster.png
|
|
example: poster.png
|
|
|
description: Название картинки постера
|
|
description: Название картинки постера
|
|
|
tags:
|
|
tags:
|
|
|
- $ref: '#/components/schemas/ArrayOfTags'
|
|
|
|
|
|
|
+ $ref: '#/components/schemas/Tag'
|
|
|
required:
|
|
required:
|
|
|
- movieId
|
|
- movieId
|
|
|
- ArrayOfTags:
|
|
|
|
|
|
|
+ Tag:
|
|
|
type: array
|
|
type: array
|
|
|
items:
|
|
items:
|
|
|
type: object
|
|
type: object
|