{ "openapi": "3.0.1", "info": { "title": "API", "version": "1.0" }, "paths": { "/api/authenticate/login": { "post": { "tags": [ "Authenticate" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthenticateLoginRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthenticateLoginRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AuthenticateLoginRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthenticationResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthenticationResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthenticationResponse" } } } } } } }, "/api/authenticate/register": { "post": { "tags": [ "Authenticate" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/authenticate/logout": { "post": { "tags": [ "Authenticate" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RefreshTokenRequest" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/authenticate/refresh-token": { "post": { "tags": [ "Authenticate" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RefreshTokenRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthenticationResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthenticationResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthenticationResponse" } } } } } } }, "/api/authenticate/forgot-password/{email}": { "get": { "tags": [ "Authenticate" ], "parameters": [ { "name": "email", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/authenticate/validate-code/{token}": { "post": { "tags": [ "Authenticate" ], "parameters": [ { "name": "token", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CodeForgot" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CodeForgot" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CodeForgot" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/authenticate/change-password": { "put": { "tags": [ "Authenticate" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangePassRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ChangePassRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ChangePassRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/authenticate/put-password": { "put": { "tags": [ "Authenticate" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangePassLogged" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ChangePassLogged" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ChangePassLogged" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/auth/register": { "post": { "tags": [ "Authentication" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Episodes/season/{id}": { "get": { "tags": [ "Episodes" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "Search", "in": "query", "schema": { "type": "string" } }, { "name": "Page", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "PageSize", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "SortBy", "in": "query", "schema": { "type": "string" } }, { "name": "IsAscending", "in": "query", "schema": { "type": "boolean" } }, { "name": "genere", "in": "query", "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseIEnumerableAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseIEnumerableAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseIEnumerableAPIresponse" } } } } } } }, "/api/Episodes/{id}": { "get": { "tags": [ "Episodes" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } } } } } }, "put": { "tags": [ "Episodes" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EpisodeUpdationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EpisodeUpdationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/EpisodeUpdationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } } } } } }, "delete": { "tags": [ "Episodes" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/Episodes": { "post": { "tags": [ "Episodes" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EpisodeCreationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EpisodeCreationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/EpisodeCreationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } } } } } } }, "/api/Episodes/{idEpisode}/season/{seasonId}": { "put": { "tags": [ "Episodes" ], "parameters": [ { "name": "idEpisode", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "seasonId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EpisodeGeneralReponseAPIresponse" } } } } } } }, "/api/Episodes/{idEpisode}/season/{seasonId}/remove": { "put": { "tags": [ "Episodes" ], "parameters": [ { "name": "idEpisode", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "seasonId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/generes/getAll": { "get": { "tags": [ "Genere" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/GenereListAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/GenereListAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/GenereListAPIresponse" } } } } } } }, "/api/images/{path}": { "get": { "tags": [ "Images" ], "parameters": [ { "name": "path", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/images/avatar/{path}": { "get": { "tags": [ "Images" ], "parameters": [ { "name": "path", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/movies/search": { "get": { "tags": [ "Movies" ], "parameters": [ { "name": "Search", "in": "query", "schema": { "type": "string" } }, { "name": "Page", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "PageSize", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "SortBy", "in": "query", "schema": { "type": "string" } }, { "name": "IsAscending", "in": "query", "schema": { "type": "boolean" } }, { "name": "genere", "in": "query", "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseIEnumerableAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseIEnumerableAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseIEnumerableAPIresponse" } } } } } } }, "/api/movies/getRandom": { "get": { "tags": [ "Movies" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseIEnumerableAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseIEnumerableAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseIEnumerableAPIresponse" } } } } } } }, "/api/movies/{id}": { "get": { "tags": [ "Movies" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/MovieDetailInformationAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/MovieDetailInformationAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/MovieDetailInformationAPIresponse" } } } } } }, "put": { "tags": [ "Movies" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MovieUpdationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/MovieUpdationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/MovieUpdationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseAPIresponse" } } } } } }, "delete": { "tags": [ "Movies" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/movies": { "post": { "tags": [ "Movies" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MovieCreationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/MovieCreationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/MovieCreationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseAPIresponse" } } } } } } }, "/api/movies/discover": { "get": { "tags": [ "Movies" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/MovieIEnumerableAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/MovieIEnumerableAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/MovieIEnumerableAPIresponse" } } } } } } }, "/api/seasons/getSeasonsByMoiveId/{id}": { "get": { "tags": [ "Seasons" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationListAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationListAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationListAPIresponse" } } } } } } }, "/api/seasons/{id}": { "get": { "tags": [ "Seasons" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationAPIresponse" } } } } } }, "put": { "tags": [ "Seasons" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SeasonUpdationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SeasonUpdationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/SeasonUpdationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationAPIresponse" } } } } } }, "delete": { "tags": [ "Seasons" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/seasons": { "post": { "tags": [ "Seasons" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SeasonCreationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SeasonCreationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/SeasonCreationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SeasonGeneralInformationAPIresponse" } } } } } } }, "/api/seasons/add-to-movie/{movieId}/{idSeason}": { "put": { "tags": [ "Seasons" ], "parameters": [ { "name": "movieId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "idSeason", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/seasons/remove-from-movie/{movieId}/{idSeason}": { "put": { "tags": [ "Seasons" ], "parameters": [ { "name": "movieId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "idSeason", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/test": { "get": { "tags": [ "Test" ], "responses": { "200": { "description": "OK" } } } }, "/api/users": { "get": { "tags": [ "Users" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserGlobalReponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserGlobalReponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserGlobalReponse" } } } } } } }, "post": { "tags": [ "Users" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserCreationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserCreationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UserCreationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserGlobalReponseAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserGlobalReponseAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserGlobalReponseAPIresponse" } } } } } } }, "/api/users/{id}": { "get": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserGlobalReponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserGlobalReponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserGlobalReponse" } } } } } }, "put": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "Username": { "type": "string" }, "Name": { "type": "string" }, "Age": { "type": "integer", "format": "int32" }, "Email": { "type": "string", "format": "email" }, "DoB": { "type": "string", "format": "date-time" }, "PhoneNumber": { "type": "string", "format": "tel" }, "Address": { "type": "string" }, "Avatar": { "type": "string", "format": "binary" } } }, "encoding": { "Username": { "style": "form" }, "Name": { "style": "form" }, "Age": { "style": "form" }, "Email": { "style": "form" }, "DoB": { "style": "form" }, "PhoneNumber": { "style": "form" }, "Address": { "style": "form" }, "Avatar": { "style": "form" } } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserGlobalReponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserGlobalReponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserGlobalReponse" } } } } } }, "delete": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/users/add-favorite-movie/{movieId}": { "post": { "tags": [ "Users" ], "parameters": [ { "name": "movieId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/users/remove-favorite-movie/{movieId}": { "post": { "tags": [ "Users" ], "parameters": [ { "name": "movieId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/users/checkFavorite/{movieId}": { "post": { "tags": [ "Users" ], "parameters": [ { "name": "movieId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/BooleanAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/BooleanAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/BooleanAPIresponse" } } } } } } }, "/api/users/get-favorite-movies": { "get": { "tags": [ "Users" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseListAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseListAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/MovieGeneralInformationReponseListAPIresponse" } } } } } } }, "/api/users/update-screen-time": { "post": { "tags": [ "Users" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScreenTime" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ScreenTime" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ScreenTime" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/users/update-my-profile": { "put": { "tags": [ "Users" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "Username": { "type": "string" }, "Name": { "type": "string" }, "Age": { "type": "integer", "format": "int32" }, "Email": { "type": "string", "format": "email" }, "DoB": { "type": "string", "format": "date-time" }, "PhoneNumber": { "type": "string", "format": "tel" }, "Address": { "type": "string" }, "Avatar": { "type": "string", "format": "binary" } } }, "encoding": { "Username": { "style": "form" }, "Name": { "style": "form" }, "Age": { "style": "form" }, "Email": { "style": "form" }, "DoB": { "style": "form" }, "PhoneNumber": { "style": "form" }, "Address": { "style": "form" }, "Avatar": { "style": "form" } } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/StringAPIresponse" } } } } } } }, "/api/users/get-my-profile": { "get": { "tags": [ "Users" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserGlobalReponseAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserGlobalReponseAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserGlobalReponseAPIresponse" } } } } } } }, "/api/videos/{code}": { "get": { "tags": [ "Videos" ], "parameters": [ { "name": "code", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/videos/{code}/{fileName}": { "get": { "tags": [ "Videos" ], "parameters": [ { "name": "code", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "fileName", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/videos/{id}": { "put": { "tags": [ "Videos" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VideoUpdationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/VideoUpdationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/VideoUpdationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/VideoAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/VideoAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/VideoAPIresponse" } } } } } }, "delete": { "tags": [ "Videos" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/videos": { "post": { "tags": [ "Videos" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VideoCreationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/VideoCreationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/VideoCreationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/VideoAPIresponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/VideoAPIresponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/VideoAPIresponse" } } } } } } } }, "components": { "schemas": { "AuthenticateLoginRequest": { "type": "object", "properties": { "username": { "type": "string", "nullable": true }, "password": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AuthenticationResponse": { "type": "object", "properties": { "userName": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "token": { "type": "string", "nullable": true }, "refreshToken": { "type": "string", "nullable": true }, "tokenExpiry": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "BooleanAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "type": "boolean" } }, "additionalProperties": false }, "ChangePassLogged": { "type": "object", "properties": { "password": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ChangePassRequest": { "required": [ "newPassword", "token" ], "type": "object", "properties": { "newPassword": { "minLength": 1, "type": "string" }, "token": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "CodeForgot": { "type": "object", "properties": { "code": { "type": "string", "nullable": true } }, "additionalProperties": false }, "Country": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "isDeleted": { "type": "boolean" } }, "additionalProperties": false }, "Episode": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string", "nullable": true }, "overview": { "type": "string", "nullable": true }, "path": { "type": "string", "nullable": true }, "posterPath": { "type": "string", "nullable": true }, "episodeNumber": { "type": "integer", "format": "int32" }, "seasonId": { "type": "integer", "format": "int32", "nullable": true }, "season": { "$ref": "#/components/schemas/Season" }, "isDeleted": { "type": "boolean" } }, "additionalProperties": false }, "EpisodeCreationRequest": { "required": [ "overview", "title" ], "type": "object", "properties": { "title": { "minLength": 1, "type": "string" }, "overview": { "minLength": 1, "type": "string" }, "path": { "type": "string", "nullable": true }, "posterPath": { "type": "string", "nullable": true }, "episodeNumber": { "type": "integer", "format": "int32" }, "seasonId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "EpisodeGeneralReponse": { "type": "object", "properties": { "title": { "type": "string", "nullable": true }, "overview": { "type": "string", "nullable": true }, "path": { "type": "string", "nullable": true }, "posterPath": { "type": "string", "nullable": true }, "episodeNumber": { "type": "integer", "format": "int32", "nullable": true }, "seasonId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "EpisodeGeneralReponseAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "$ref": "#/components/schemas/EpisodeGeneralReponse" } }, "additionalProperties": false }, "EpisodeGeneralReponseIEnumerableAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/EpisodeGeneralReponse" }, "nullable": true } }, "additionalProperties": false }, "EpisodeUpdationRequest": { "type": "object", "properties": { "title": { "type": "string", "nullable": true }, "overview": { "type": "string", "nullable": true }, "path": { "type": "string", "nullable": true }, "posterPath": { "type": "string", "nullable": true }, "episodeNumber": { "type": "integer", "format": "int32", "nullable": true }, "seasonId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "Genere": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "isDeleted": { "type": "boolean" } }, "additionalProperties": false }, "GenereListAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/Genere" }, "nullable": true } }, "additionalProperties": false }, "Movie": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string", "nullable": true }, "overview": { "type": "string", "nullable": true }, "releaseDate": { "type": "string", "format": "date-time" }, "status": { "type": "boolean" }, "hasSeason": { "type": "boolean" }, "backdropPath": { "type": "string", "nullable": true }, "posterPath": { "type": "string", "nullable": true }, "revenue": { "type": "number", "format": "double" }, "budget": { "type": "number", "format": "double" }, "runtime": { "type": "integer", "format": "int32" }, "voteCount": { "type": "number", "format": "double" }, "voteAverage": { "type": "number", "format": "double" }, "generes": { "type": "array", "items": { "$ref": "#/components/schemas/Genere" }, "nullable": true }, "countries": { "type": "array", "items": { "$ref": "#/components/schemas/Country" }, "nullable": true }, "productionCompanies": { "type": "array", "items": { "$ref": "#/components/schemas/ProductionCompany" }, "nullable": true }, "path": { "type": "string", "nullable": true }, "seasons": { "type": "array", "items": { "$ref": "#/components/schemas/Season" }, "nullable": true }, "isDeleted": { "type": "boolean" } }, "additionalProperties": false }, "MovieCreationRequest": { "required": [ "title" ], "type": "object", "properties": { "title": { "minLength": 1, "type": "string" }, "overview": { "type": "string", "nullable": true }, "releaseDate": { "type": "string", "format": "date-time" }, "status": { "type": "boolean" }, "hasSeason": { "type": "boolean" }, "backdropPath": { "type": "string", "nullable": true }, "posterPath": { "type": "string", "nullable": true }, "revenue": { "type": "number", "format": "double" }, "budget": { "type": "number", "format": "double" }, "voteCount": { "type": "number", "format": "double" }, "path": { "type": "string", "nullable": true }, "voteAverage": { "type": "number", "format": "double" } }, "additionalProperties": false }, "MovieDetailInformation": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string", "nullable": true }, "overview": { "type": "string", "nullable": true }, "releaseDate": { "type": "string", "format": "date-time" }, "posterPath": { "type": "string", "nullable": true }, "backdropPath": { "type": "string", "nullable": true }, "voteAverage": { "type": "number", "format": "double" }, "voteCount": { "type": "number", "format": "double" }, "hasSeason": { "type": "boolean" }, "runtime": { "type": "integer", "format": "int32" }, "revenue": { "type": "number", "format": "double" }, "budget": { "type": "number", "format": "double" }, "status": { "type": "boolean" }, "generes": { "type": "array", "items": { "$ref": "#/components/schemas/Genere" }, "nullable": true }, "productionCompanies": { "type": "array", "items": { "$ref": "#/components/schemas/ProductionCompany" }, "nullable": true }, "path": { "type": "string", "nullable": true } }, "additionalProperties": false }, "MovieDetailInformationAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "$ref": "#/components/schemas/MovieDetailInformation" } }, "additionalProperties": false }, "MovieGeneralInformationReponse": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string", "nullable": true }, "overview": { "type": "string", "nullable": true }, "releaseDate": { "type": "string", "format": "date-time" }, "posterPath": { "type": "string", "nullable": true }, "backdropPath": { "type": "string", "nullable": true }, "voteAverage": { "type": "number", "format": "double" }, "voteCount": { "type": "number", "format": "double" }, "hasSeason": { "type": "boolean" }, "generes": { "type": "array", "items": { "$ref": "#/components/schemas/Genere" }, "nullable": true } }, "additionalProperties": false }, "MovieGeneralInformationReponseAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "$ref": "#/components/schemas/MovieGeneralInformationReponse" } }, "additionalProperties": false }, "MovieGeneralInformationReponseIEnumerableAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/MovieGeneralInformationReponse" }, "nullable": true } }, "additionalProperties": false }, "MovieGeneralInformationReponseListAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/MovieGeneralInformationReponse" }, "nullable": true } }, "additionalProperties": false }, "MovieIEnumerableAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/Movie" }, "nullable": true } }, "additionalProperties": false }, "MovieUpdationRequest": { "type": "object", "properties": { "title": { "type": "string", "nullable": true }, "overview": { "type": "string", "nullable": true }, "releaseDate": { "type": "string", "format": "date-time", "nullable": true }, "status": { "type": "boolean", "nullable": true }, "hasSeason": { "type": "boolean", "nullable": true }, "backdropPath": { "type": "string", "nullable": true }, "posterPath": { "type": "string", "nullable": true }, "revenue": { "type": "number", "format": "double", "nullable": true }, "budget": { "type": "number", "format": "double", "nullable": true }, "voteCount": { "type": "number", "format": "double", "nullable": true }, "path": { "type": "string", "nullable": true }, "voteAverage": { "type": "number", "format": "double", "nullable": true } }, "additionalProperties": false }, "ProductionCompany": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "isDeleted": { "type": "boolean" } }, "additionalProperties": false }, "RefreshTokenRequest": { "required": [ "requestToken" ], "type": "object", "properties": { "requestToken": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "RegisterRequest": { "required": [ "email", "password" ], "type": "object", "properties": { "email": { "minLength": 1, "type": "string", "format": "email" }, "password": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "ScreenTime": { "required": [ "value" ], "type": "object", "properties": { "value": { "type": "number", "format": "double" } }, "additionalProperties": false }, "Season": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "description": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "releaseDate": { "type": "string", "format": "date-time" }, "seasonNumber": { "type": "integer", "format": "int32" }, "movieId": { "type": "integer", "format": "int32", "nullable": true }, "movie": { "$ref": "#/components/schemas/Movie" }, "episodes": { "type": "array", "items": { "$ref": "#/components/schemas/Episode" }, "nullable": true }, "isDeleted": { "type": "boolean" } }, "additionalProperties": false }, "SeasonCreationRequest": { "required": [ "description", "title" ], "type": "object", "properties": { "seasonNumber": { "type": "integer", "format": "int32" }, "title": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "releaseDate": { "type": "string", "format": "date-time" }, "imagePath": { "type": "string", "nullable": true } }, "additionalProperties": false }, "SeasonGeneralInformation": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "releaseDate": { "type": "string", "format": "date-time" }, "seasonNumber": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "SeasonGeneralInformationAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "$ref": "#/components/schemas/SeasonGeneralInformation" } }, "additionalProperties": false }, "SeasonGeneralInformationListAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/SeasonGeneralInformation" }, "nullable": true } }, "additionalProperties": false }, "SeasonUpdationRequest": { "type": "object", "properties": { "seasonNumber": { "type": "integer", "format": "int32", "nullable": true }, "title": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "releaseDate": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "StringAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UserCreationRequest": { "type": "object", "properties": { "username": { "type": "string", "nullable": true }, "password": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "age": { "type": "integer", "format": "int32" }, "email": { "type": "string", "nullable": true }, "doB": { "type": "string", "format": "date-time" }, "phoneNumber": { "type": "string", "nullable": true }, "address": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UserGlobalReponse": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "username": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "age": { "type": "integer", "format": "int32", "nullable": true }, "email": { "type": "string", "nullable": true }, "doB": { "type": "string", "format": "date-time", "nullable": true }, "phoneNumber": { "type": "string", "nullable": true }, "address": { "type": "string", "nullable": true }, "screenTime": { "type": "number", "format": "double" }, "avatar": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UserGlobalReponseAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "$ref": "#/components/schemas/UserGlobalReponse" } }, "additionalProperties": false }, "Video": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "code": { "type": "string", "nullable": true }, "url": { "type": "string", "nullable": true }, "isDeleted": { "type": "boolean" } }, "additionalProperties": false }, "VideoAPIresponse": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "data": { "$ref": "#/components/schemas/Video" } }, "additionalProperties": false }, "VideoCreationRequest": { "type": "object", "properties": { "code": { "type": "string", "nullable": true }, "url": { "type": "string", "nullable": true } }, "additionalProperties": false }, "VideoUpdationRequest": { "type": "object", "properties": { "code": { "type": "string", "nullable": true }, "url": { "type": "string", "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "description": "Enter 'Bearer' [space] and then your valid token in the text input below.\r\n\r\nExample: \"Bearer eyJhbGciOi...\"", "scheme": "Bearer", "bearerFormat": "JWT" } } }, "security": [ { "Bearer": [ ] } ] }