Created
March 15, 2020 13:05
-
-
Save AmazingTurtle/9d5d33c9aa80fe76549576a543733974 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "title": "redacted", | |
| "description": "The redacted API description", | |
| "version": "1.0", | |
| "contact": {} | |
| }, | |
| "tags": [], | |
| "servers": [], | |
| "components": { | |
| "securitySchemes": { | |
| "bearer": { | |
| "type": "http", | |
| "scheme": "bearer", | |
| "bearerFormat": "JWT" | |
| } | |
| }, | |
| "schemas": { | |
| "LoginDto": { | |
| "properties": { | |
| "email": { | |
| "format": "email", | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "password": { | |
| "maxLength": 64, | |
| "type": "string", | |
| "minLength": 1 | |
| } | |
| }, | |
| "type": "object", | |
| "required": [ | |
| "email", | |
| "password" | |
| ] | |
| }, | |
| "RegisterDto": { | |
| "properties": { | |
| "email": { | |
| "format": "email", | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "password": { | |
| "type": "string", | |
| "maxLength": 64, | |
| "minLength": 1 | |
| }, | |
| "firstName": { | |
| "type": "string", | |
| "maxLength": 128, | |
| "minLength": 1 | |
| }, | |
| "lastName": { | |
| "type": "string", | |
| "maxLength": 128, | |
| "minLength": 1 | |
| }, | |
| "phone": { | |
| "type": "string", | |
| "maxLength": 128, | |
| "minLength": 1 | |
| } | |
| }, | |
| "type": "object", | |
| "required": [ | |
| "email", | |
| "password", | |
| "firstName", | |
| "lastName", | |
| "phone" | |
| ] | |
| }, | |
| "CreateFormDto": { | |
| "properties": { | |
| "type": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "form": {} | |
| }, | |
| "type": "object", | |
| "required": [ | |
| "type", | |
| "form" | |
| ] | |
| }, | |
| "UpdateFormDto": { | |
| "properties": { | |
| "id": { | |
| "type": "number" | |
| }, | |
| "form": {} | |
| }, | |
| "type": "object", | |
| "required": [ | |
| "id", | |
| "form" | |
| ] | |
| } | |
| } | |
| }, | |
| "paths": { | |
| "/": { | |
| "get": { | |
| "operationId": "AppController_getHello", | |
| "parameters": [], | |
| "responses": { | |
| "200": { | |
| "description": "" | |
| } | |
| } | |
| } | |
| }, | |
| "/auth/login": { | |
| "post": { | |
| "operationId": "AuthController_login", | |
| "parameters": [], | |
| "requestBody": { | |
| "required": true, | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "$ref": "#/components/schemas/LoginDto" | |
| } | |
| } | |
| } | |
| }, | |
| "responses": { | |
| "200": { | |
| "description": "" | |
| } | |
| } | |
| } | |
| }, | |
| "/auth/register": { | |
| "post": { | |
| "operationId": "AuthController_register", | |
| "parameters": [], | |
| "requestBody": { | |
| "required": true, | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "$ref": "#/components/schemas/RegisterDto" | |
| } | |
| } | |
| } | |
| }, | |
| "responses": { | |
| "201": { | |
| "description": "" | |
| } | |
| } | |
| } | |
| }, | |
| "/auth/profile": { | |
| "get": { | |
| "operationId": "AuthController_getProfile", | |
| "parameters": [], | |
| "responses": { | |
| "200": { | |
| "description": "" | |
| } | |
| }, | |
| "security": [ | |
| { | |
| "bearer": [] | |
| } | |
| ] | |
| } | |
| }, | |
| "/forms/list": { | |
| "get": { | |
| "operationId": "FormsController_list", | |
| "parameters": [], | |
| "responses": { | |
| "200": { | |
| "description": "" | |
| } | |
| }, | |
| "security": [ | |
| { | |
| "bearer": [] | |
| } | |
| ] | |
| } | |
| }, | |
| "/forms/get": { | |
| "get": { | |
| "operationId": "FormsController_get", | |
| "parameters": [ | |
| { | |
| "name": "id", | |
| "required": true, | |
| "in": "query", | |
| "schema": { | |
| "type": "number" | |
| } | |
| } | |
| ], | |
| "responses": { | |
| "200": { | |
| "description": "" | |
| } | |
| }, | |
| "security": [ | |
| { | |
| "bearer": [] | |
| } | |
| ] | |
| } | |
| }, | |
| "/forms/create": { | |
| "post": { | |
| "operationId": "FormsController_create", | |
| "parameters": [], | |
| "requestBody": { | |
| "required": true, | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "$ref": "#/components/schemas/CreateFormDto" | |
| } | |
| } | |
| } | |
| }, | |
| "responses": { | |
| "201": { | |
| "description": "" | |
| } | |
| }, | |
| "security": [ | |
| { | |
| "bearer": [] | |
| } | |
| ] | |
| } | |
| }, | |
| "/forms/update": { | |
| "post": { | |
| "operationId": "FormsController_update", | |
| "parameters": [], | |
| "requestBody": { | |
| "required": true, | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "$ref": "#/components/schemas/UpdateFormDto" | |
| } | |
| } | |
| } | |
| }, | |
| "responses": { | |
| "200": { | |
| "description": "" | |
| } | |
| }, | |
| "security": [ | |
| { | |
| "bearer": [] | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment