forked from robvanmieghem/go-raml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.raml
42 lines (41 loc) · 968 Bytes
/
api.raml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#%RAML 1.0
title: goraml dir
description: goraml developers directory
baseUri: http://localhost:5000
mediaType: application/json
securitySchemes:
itsyouonline: !include itsyouonline-raml/securitySchemes/oauth_2_0.raml
types:
User:
properties:
username:
type: string
name:
/users:
get:
securedBy: [itsyouonline]
description: Get list of all developers
responses:
200:
body:
application/json:
type: User[]
post:
securedBy: [itsyouonline: { scopes: [ "user:memberof:goraml-admin" ] }]
description: Add user
body:
type: User
responses:
201:
body:
application/json:
type: User
/{username}:
get:
securedBy: [itsyouonline: { scopes: [ "user:memberof:goraml" ] }]
description: Get information on a specific user
responses:
200:
body:
application/json:
type: User