mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[Swagger]Add /app/name_id/available
This commit is contained in:
parent
aee020b722
commit
633f0e7f45
@ -5,6 +5,35 @@
|
||||
*/
|
||||
import App from '../../../models/app';
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /app/name_id/available:
|
||||
* post:
|
||||
* summary: Check available name_id on creation an application
|
||||
* parameters:
|
||||
* -
|
||||
* name: name_id
|
||||
* description: Application unique name
|
||||
* in: formData
|
||||
* required: true
|
||||
* type: string
|
||||
*
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Success
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* available:
|
||||
* description: Whether name_id is available
|
||||
* type: boolean
|
||||
*
|
||||
* default:
|
||||
* description: Failed
|
||||
* schema:
|
||||
* $ref: "#/definitions/Error"
|
||||
*/
|
||||
|
||||
/**
|
||||
* Check available name_id of app
|
||||
*
|
||||
|
@ -9,6 +9,7 @@ const files = [
|
||||
'users.js',
|
||||
//app
|
||||
'app/show.js',
|
||||
'app/name_id/available.js',
|
||||
//auth
|
||||
'auth/accept.js',
|
||||
//auth/session
|
||||
|
Loading…
Reference in New Issue
Block a user