From 55f8cb4274b784e5281332c85875ef83c148d716 Mon Sep 17 00:00:00 2001 From: Tosuke Date: Fri, 6 Jan 2017 15:13:46 +0900 Subject: [Swagger]Following changes --- src/api/endpoints/auth/accept.js | 2 +- src/api/endpoints/auth/session/show.js | 6 +++--- src/api/endpoints/auth/session/userkey.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/api') 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: -- cgit v1.2.3-freya