Created
August 3, 2020 12:36
-
-
Save KeironO/cbc9631cf132f2e8bde8e53e984a8a99 to your computer and use it in GitHub Desktop.
Test
This file contains 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
{ | |
"components": { | |
"schemas": { | |
"NewUserAccount": { | |
"properties": { | |
"access_control": { | |
"enum": [ | |
"ADM", | |
"MOD", | |
"PRI", | |
"VIE", | |
"BOT" | |
], | |
"maxLength": 3, | |
"nullable": true | |
}, | |
"account_type": { | |
"enum": [ | |
"ADM", | |
"BIO", | |
"PRO", | |
"BOT" | |
], | |
"maxLength": 3 | |
}, | |
"email": { | |
"maxLength": 320, | |
"type": "string" | |
}, | |
"first_name": { | |
"maxLength": 128, | |
"type": "string" | |
}, | |
"last_name": { | |
"maxLength": 128, | |
"type": "string" | |
}, | |
"middle_name": { | |
"maxLength": 128, | |
"nullable": true, | |
"type": "string" | |
}, | |
"password": { | |
"type": "string" | |
}, | |
"site_id": { | |
"format": "int32", | |
"nullable": true, | |
"type": "integer" | |
}, | |
"title": { | |
"enum": [ | |
"MRS", | |
"MISS", | |
"MS", | |
"MR", | |
"MX", | |
"PROF", | |
"DR" | |
], | |
"maxLength": 4 | |
} | |
}, | |
"required": [ | |
"account_type", | |
"email", | |
"first_name", | |
"last_name", | |
"password", | |
"title" | |
], | |
"type": "object" | |
} | |
} | |
}, | |
"info": { | |
"title": "LImBuS API Documentation", | |
"version": "20.08" | |
}, | |
"openapi": "3.0.2", | |
"paths": { | |
"/api/auth": {}, | |
"/api/auth/user/new": { | |
"post": { | |
"description": "Submit a new user account", | |
"responses": { | |
"200": { | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/NewUserAccount" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment