-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjdo_siren.json
87 lines (87 loc) · 2.3 KB
/
jdo_siren.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
{
"class" : ["people"],
"properties": {
"trigram": "JDO",
"first_name": "John",
"last_name": "Doe",
"phone_numbers": [
"0102030405"
],
"email": "jdoe@acme.com",
"team": "SOFT",
"entry_date": "2017-05-02",
"leaving_date": null,
"description": "I am a very nice person"
},
"entities": [
{
"class": ["people"],
"rel": ["http://employees.acme.com/rels/manager"],
"href": "http://api.employees.acme.com/people/ted"
},
{
"class": ["skills", "collection"],
"rel": ["http://employees.acme.com/rels/skills"],
"entities": [
{
"class": ["skills"],
"properties": {
"category": "dev",
"name": "Python",
"level": 1.0,
"motivation": 2.0
},
"links":[
{"rel": ["self"], "href": "http://api.employees.acme.com/skills/python"}
]
},
{
"class": ["skills"],
"properties": {
"category": "dev",
"name": "REST API",
"level": 1.0,
"motivation": 2.0
},
"links":[
{"rel": ["self"], "href": "http://api.employees.acme.com/skills/rest-api"}
]
}
]
}
],
"actions": [
{
"name": "add-acme",
"title": "Add Acme employee",
"method": "POST",
"href": "http://api.employees.acme.com/people",
"type": "application/json",
"fields": [
{"name": "entry_date", "type": "datetime"},
{"name": "manager", "type": "text"},
{"name": "skills"},
{"name": "leaving_date", "type": "datetime"},
{"name": "description", "type": "text"},
{"name": "first_name", "type": "text"},
{"name": "phone_numbers", "type": "text"},
{"name": "trigram", "type": "text"},
{"name": "last_name", "type": "text"},
{"name": "team", "type": "text"},
{"name": "email", "type": "email"}
]
},
{
"name": "search-acme",
"title": "Search for an Acme employee",
"method": "GET",
"href": "http://api.employees.acme.com/people/search",
"fields": [
{"name": "query", "type": "text"}
]
}
],
"links": [
{"rel": ["self"], "href": "http://api.employees.acme.com/people/jdo"}
]
}