Last active
February 20, 2022 17:15
-
-
Save fathur/9183479fc4e856c3ed3224aed3169c48 to your computer and use it in GitHub Desktop.
Julo Application OpenAPI 3.0
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": "Underwriting API", | |
| "version": "1.0" | |
| }, | |
| "servers": [ | |
| { | |
| "url": "http://localhost:3000" | |
| } | |
| ], | |
| "paths": { | |
| "/applications": { | |
| "get": { | |
| "summary": "List of all application of logged in users", | |
| "tags": [ | |
| "application" | |
| ], | |
| "responses": { | |
| "200": { | |
| "description": "OK", | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "data": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/components/schemas/Application" | |
| } | |
| }, | |
| "links": { | |
| "type": "object" | |
| }, | |
| "meta": { | |
| "type": "object" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "operationId": "get-applications", | |
| "parameters": [], | |
| "security": [ | |
| { | |
| "Authorization": [] | |
| } | |
| ] | |
| } | |
| }, | |
| "/applications/{application_id}": { | |
| "parameters": [ | |
| { | |
| "schema": { | |
| "type": "integer" | |
| }, | |
| "name": "application_id", | |
| "in": "path", | |
| "required": true | |
| } | |
| ], | |
| "get": { | |
| "summary": "Get single application", | |
| "tags": [ | |
| "application" | |
| ], | |
| "responses": { | |
| "200": { | |
| "description": "OK", | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "data": { | |
| "$ref": "#/components/schemas/Application" | |
| }, | |
| "links": { | |
| "type": "object" | |
| }, | |
| "meta": { | |
| "type": "object" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "operationId": "get-applications-application_id", | |
| "security": [ | |
| { | |
| "Authorization": [] | |
| } | |
| ] | |
| }, | |
| "patch": { | |
| "summary": "Update single application", | |
| "operationId": "patch-applications-application_id", | |
| "responses": { | |
| "200": { | |
| "description": "OK", | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "data": { | |
| "$ref": "#/components/schemas/Application" | |
| }, | |
| "links": { | |
| "type": "object" | |
| }, | |
| "meta": { | |
| "type": "object" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "tags": [ | |
| "application" | |
| ], | |
| "security": [ | |
| { | |
| "Authorization": [] | |
| } | |
| ], | |
| "parameters": [], | |
| "requestBody": { | |
| "content": { | |
| "application/x-www-form-urlencoded": { | |
| "schema": { | |
| "$ref": "#/components/schemas/Application" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "components": { | |
| "schemas": { | |
| "Application": { | |
| "title": "Application", | |
| "type": "object", | |
| "properties": { | |
| "id": { | |
| "type": "integer" | |
| }, | |
| "email": { | |
| "type": "string" | |
| }, | |
| "phone": { | |
| "type": "string" | |
| }, | |
| "identity_number": { | |
| "type": "string" | |
| }, | |
| "full_name": { | |
| "type": "string" | |
| } | |
| } | |
| } | |
| }, | |
| "securitySchemes": { | |
| "Authorization": { | |
| "name": "Bearer", | |
| "type": "apiKey", | |
| "in": "header" | |
| } | |
| } | |
| }, | |
| "security": [ | |
| { | |
| "Authorization": [] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment