-
-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathJsonApiDotNetCoreExample.http
More file actions
47 lines (42 loc) · 970 Bytes
/
JsonApiDotNetCoreExample.http
File metadata and controls
47 lines (42 loc) · 970 Bytes
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
@hostAddress = https://localhost:44340
### Gets all high-priority todo-items, including their owner, assignee and tags.
GET {{hostAddress}}/api/todoItems?include=owner,assignee,tags&filter=equals(priority,'High')
### Creates a todo-item, linking it to an existing owner, assignee and tags.
POST {{hostAddress}}/api/todoItems
Content-Type: application/vnd.api+json
{
"data": {
"type": "todoItems",
"attributes": {
"description": "Create release",
"priority": "High",
"durationInHours": 1
},
"relationships": {
"owner": {
"data": {
"type": "people",
"id": "1"
}
},
"assignee": {
"data": {
"type": "people",
"id": "1"
}
},
"tags": {
"data": [
{
"type": "tags",
"id": "1"
},
{
"type": "tags",
"id": "2"
}
]
}
}
}
}