summaryrefslogtreecommitdiff
path: root/src/api/endpoints/auth
diff options
context:
space:
mode:
authorTosuke <tasukeprg@gmail.com>2017-01-06 15:13:46 +0900
committerTosuke <tasukeprg@gmail.com>2017-01-06 15:13:46 +0900
commit55f8cb4274b784e5281332c85875ef83c148d716 (patch)
tree6fb90aa6f438010055b2aa3add9d6e66a374b209 /src/api/endpoints/auth
parentMerge branch 'master' of github.com:syuilo/misskey into swagger (diff)
downloadsharkey-55f8cb4274b784e5281332c85875ef83c148d716.tar.gz
sharkey-55f8cb4274b784e5281332c85875ef83c148d716.tar.bz2
sharkey-55f8cb4274b784e5281332c85875ef83c148d716.zip
[Swagger]Following changes
Diffstat (limited to 'src/api/endpoints/auth')
-rw-r--r--src/api/endpoints/auth/accept.js2
-rw-r--r--src/api/endpoints/auth/session/show.js6
-rw-r--r--src/api/endpoints/auth/session/userkey.js4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/api/endpoints/auth/accept.js b/src/api/endpoints/auth/accept.js
index d60d95aea3..131a0e5611 100644
--- a/src/api/endpoints/auth/accept.js
+++ b/src/api/endpoints/auth/accept.js
@@ -15,7 +15,7 @@ import AccessToken from '../../models/access-token';
* post:
* summary: Accept a session
* parameters:
- * - $ref: "#/parameters/ShouldSecureKey"
+ * - $ref: "#/parameters/NativeToken"
* -
* name: token
* description: Session Token
diff --git a/src/api/endpoints/auth/session/show.js b/src/api/endpoints/auth/session/show.js
index c91ac5a12e..9072edc1c0 100644
--- a/src/api/endpoints/auth/session/show.js
+++ b/src/api/endpoints/auth/session/show.js
@@ -14,7 +14,7 @@ import serialize from '../../../serializers/auth-session';
* parameters:
* -
* name: token
- * description: API Token
+ * description: Session Token
* in: formData
* required: true
* type: string
@@ -28,7 +28,7 @@ import serialize from '../../../serializers/auth-session';
* created_at:
* type: string
* format: date
- * description: de
+ * description: Date and time of the session creation
* app_id:
* type: string
* description: Application ID
@@ -37,7 +37,7 @@ import serialize from '../../../serializers/auth-session';
* description: Session Token
* user_id:
* type: string
- * description: de
+ * description: ID of user who create the session
* app:
* $ref: "#/definitions/Application"
* default:
diff --git a/src/api/endpoints/auth/session/userkey.js b/src/api/endpoints/auth/session/userkey.js
index 9252046e57..9905d7d844 100644
--- a/src/api/endpoints/auth/session/userkey.js
+++ b/src/api/endpoints/auth/session/userkey.js
@@ -12,7 +12,7 @@ import serialize from '../../../serializers/user';
* @swagger
* /auth/session/userkey:
* post:
- * summary: Get a userkey
+ * summary: Get a access token(userkey)
* parameters:
* -
* name: app_secret
@@ -35,7 +35,7 @@ import serialize from '../../../serializers/user';
* properties:
* userkey:
* type: string
- * description: User Key
+ * description: Access Token
* user:
* $ref: "#/definitions/User"
* default: