Merge pull request #33 from Tosuke/swagger

Swagger
This commit is contained in:
syuilo⭐️
2017-01-12 06:11:15 +09:00
committed by GitHub
10 changed files with 500 additions and 0 deletions

View File

@@ -6,6 +6,33 @@
import prominence from 'prominence';
import git from 'git-last-commit';
/**
* @swagger
* /meta:
* post:
* summary: Show the misskey's information
* responses:
* 200:
* description: Success
* schema:
* type: object
* properties:
* maintainer:
* description: maintainer's name
* type: string
* commit:
* description: latest commit's hash
* type: string
* secure:
* description: whether the server supports secure protcols
* type: boolean
*
* default:
* description: Failed
* schema:
* $ref: "#/definitions/Error"
*/
/**
* Show core info
*