[Swagger]Add /app/name_id/available

This commit is contained in:
Tosuke 2017-01-06 17:45:04 +09:00
parent b2dad3a9c2
commit 66d6f4420e
2 changed files with 30 additions and 0 deletions

View file

@ -5,6 +5,35 @@
*/ */
import App from '../../../models/app'; 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 * Check available name_id of app
* *

View file

@ -9,6 +9,7 @@ const files = [
'users.js', 'users.js',
//app //app
'app/show.js', 'app/show.js',
'app/name_id/available.js',
//auth //auth
'auth/accept.js', 'auth/accept.js',
//auth/session //auth/session