materia/packages/frontend/openapi.json

1 line
18 KiB
JSON
Raw Normal View History

{"openapi": "3.1.0", "info": {"title": "materia", "version": "0.1.0"}, "paths": {"/api/auth/signup": {"post": {"tags": ["auth"], "summary": "Signup", "operationId": "auth_signup", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserCredentials"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/auth/signin": {"post": {"tags": ["auth"], "summary": "Signin", "operationId": "auth_signin", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserCredentials"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/auth/signout": {"get": {"tags": ["auth"], "summary": "Signout", "operationId": "auth_signout", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}}}}, "/api/oauth2/authorize": {"post": {"tags": ["oauth2"], "summary": "Authorize", "operationId": "oauth2_authorize", "requestBody": {"content": {"application/x-www-form-urlencoded": {"schema": {"$ref": "#/components/schemas/Body_authorize_api_oauth2_authorize_post"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/oauth2/access_token": {"post": {"tags": ["oauth2"], "summary": "Token", "operationId": "oauth2_token", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}}}}, "/api/user": {"get": {"tags": ["user"], "summary": "Info", "operationId": "user_info", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UserInfo"}}}}}}, "delete": {"tags": ["user"], "summary": "Remove", "operationId": "user_remove", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}}}}, "/api/user/avatar": {"put": {"tags": ["user"], "summary": "Avatar", "operationId": "user_avatar", "requestBody": {"content": {"multipart/form-data": {"schema": {"$ref": "#/components/schemas/Body_avatar_api_user_avatar_put"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "delete": {"tags": ["user"], "summary": "Remove Avatar", "operationId": "user_remove_avatar", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}}}}, "/api/repository": {"get": {"tags": ["repository"], "summary": "Info", "operationId": "repository_info", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RepositoryInfo"}}}}}}, "post": {"tags": ["repository"], "summary": "Create", "operationId": "repository_create", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}}}, "delete": {"tags": ["repository"], "summary": "Remove", "operationId": "repository_remove", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}}}}, "/api/repository/content": {"get": {"tags": ["repository"], "summary": "Content", "operationId": "repository_content", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Repo