-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjdo_mason.json
93 lines (92 loc) · 2.23 KB
/
jdo_mason.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"@meta": {
"@title": "Acme employee: JDO",
"@description": "This resource represents an Acme employee whose trigram is JDO."
},
"trigram": "JDO",
"first_name": "John",
"last_name": "Doe",
"phone_numbers": [
"0102030405"
],
"email": "[email protected]",
"team": "SOFT",
"entry_date": "2017-05-02",
"leaving_date": null,
"description": "I am a very nice person",
"skills": [
{
"category": "dev",
"name": "Python",
"level": 1.0,
"motivation": 2.0,
"@controls": {
"self": {
"href": "http://api.employees.acme.com/skills/python",
"title": "Python skill"
}
}
},
{
"category": "dev",
"name": "REST API",
"level": 1.0,
"motivation": 2.0,
"@controls": {
"self": {
"href": "http://api.employees.acme.com/skills/rest-api",
"title": "REST API skill"
}
}
}
],
"@namespaces": {
"acme": {
"name": "http://employees.acme.com/rels/"
}
},
"@controls": {
"self": {
"href": "http://api.employees.acme.com/people/jdo"
},
"acme:manager": {
"title": "Manager",
"href": "http://api.employees.acme.com/people/ted"
},
"acme:search": {
"title": "Search",
"href": "http://api.employees.acme.com/people/search{?trigram}",
"isHrefTemplate": true,
"description": "Search for an employee by trigram"
},
"create": {
"title": "Create",
"encoding": "json",
"href": "http://api.employees.acme.com/people",
"method": "POST",
"template":
{
"trigram": "JDO",
"first_name": "John",
"last_name": "Doe",
"phone_numbers": [
"0102030405"
],
"email": "[email protected]",
"manager": "TED",
"team": "SOFT",
"entry_date": "2017-05-02",
"leaving_date": null,
"description": "I am a very nice person",
"skills": [
{
"category": "dev",
"name": "Python",
"level": 1.0,
"motivation": 2.0
}
]
}
}
}
}