-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.gobi.json
38 lines (38 loc) · 1.03 KB
/
api.gobi.json
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
{
"config": {
"Port": 8080,
"logging": true,
"latency": 1000
},
"ref": {
"collections":{
"title": "Company()",
"description": "Lorem(type=sentences)",
"isPublic": "Bool()",
"tags": "Array(type=User(username),len=3)",
"created_at": "Time(unixNano)",
"items": "Int(min=0,max=100)",
"id": "Uuid()",
"theme": "Color(hex)"
},
"users": {
"username": "User()",
"email": "User(email)",
"password": "User(password)",
"id": "Uuid()",
"created_at": "Time(unixNano)",
"collections": "Array(type=Company(),len=3)"
}
},
"api": [
{
"path": "/user/:collection_id",
"method": "GET",
"response":{
"collections":"Array(type=Ref(ref.collections),len=3)",
"user":"Ref(ref.users)",
"created_at": "Time(unixNano)"
}
}
]
}