Skip to content

Commit

Permalink
Merge pull request #48 from gokyo/patch-1
Browse files Browse the repository at this point in the history
APSR-620: adding the root endpoint (`/`) in the RAML definition
  • Loading branch information
peteanning authored Mar 12, 2018
2 parents e9250a2 + 01ae3d6 commit 1e6439e
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions public/api/conf/1.0/application.raml
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,28 @@ traits:
value: <<successExample>>

/userinfo:
get:
displayName: Get user information
description: Retrieves OpenID Connect compliant information about the signed-in user
is:
- headers.acceptHeader
(annotations.scope): "openid"
securedBy: [ sec.oauth_2_0: { scopes: [ "openid" ] } ]
responses:
200:
body:
application/json:
type: !include schemas/userinfo.json
examples:
example-1:
value: !include examples/get-user-info-example-1.json
403:
body:
application/json:
type: types.errorResponse
examples:
BadRequest:
description: Forbidden operation
value:
code: FORBIDDEN
/:
get:
displayName: Get user information
description: Retrieves OpenID Connect compliant information about the signed-in user
is:
- headers.acceptHeader
(annotations.scope): "openid"
securedBy: [ sec.oauth_2_0: { scopes: [ "openid" ] } ]
responses:
200:
body:
application/json:
type: !include schemas/userinfo.json
examples:
example-1:
value: !include examples/get-user-info-example-1.json
403:
body:
application/json:
type: types.errorResponse
examples:
BadRequest:
description: Forbidden operation
value:
code: FORBIDDEN

0 comments on commit 1e6439e

Please sign in to comment.