forked from erikbos/gatekeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExample requests developer app.http
52 lines (38 loc) · 1.14 KB
/
Example requests developer app.http
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
43
44
45
46
47
48
49
50
51
52
# Example REST calls for developer apps
### Retrieve all developer apps of a developer
GET http://{{hostname}}/v1/developers/[email protected]/apps
### Retrieve one developer app
GET http://{{hostname}}/v1/developers/[email protected]/apps/teleporter
### Create developer app
POST http://{{hostname}}/v1/developers/[email protected]/apps
content-type: application/json
{
"name": "teleporter",
"displayName": "Teleportrrrrr"
}
### Update developer app with full details
POST http://{{hostname}}/v1/developers/[email protected]/apps/teleporter
content-type: application/json
{
"displayName": "Teleportrrrrr",
"name": "teleporter",
"status": "active",
"attributes": [
{
"name": "people_quotaPerSecond",
"value": "20"
},
{
"name": "IPAccessList",
"value": "10.0.0.0/8,192.168.178.0/24"
},
{
"name": "Referer",
"value": "example.org,*example.com"
}
]
}
### Retrieve attributes of developer apps
GET http://{{hostname}}/v1/developers/[email protected]/apps/teleporter/attributes
### Delete a developer application
DELETE http://{{hostname}}/v1/developers/[email protected]/apps/teleporter