|
2 | 2 |
|
3 | 3 | These requests have been generated against the "GettingStarted" application and are updated on every deployment.
|
4 | 4 |
|
5 |
| -## Create Person |
| 5 | +## Simple CRUD |
| 6 | + |
| 7 | +### Create |
6 | 8 |
|
7 | 9 | [!code-sh[CREATE](000-CREATE_Person.sh)]
|
8 | 10 | [!code-json[CREATE](000-CREATE_Person-Response.json)]
|
9 | 11 |
|
10 |
| -## Create Article |
| 12 | +### Create with Relationship |
11 | 13 |
|
12 | 14 | [!code-sh[CREATE](001-CREATE_Article.sh)]
|
13 | 15 | [!code-json[CREATE](001-CREATE_Article-Response.json)]
|
14 | 16 |
|
15 | 17 |
|
16 |
| -## Get All Articles |
| 18 | +### Get All |
17 | 19 |
|
18 | 20 | [!code-sh[GET Request](002-GET_Articles.sh)]
|
19 | 21 | [!code-json[GET Response](002-GET_Articles-Response.json)]
|
20 | 22 |
|
21 |
| -## Get Article By Id |
| 23 | +### Get By Id |
22 | 24 |
|
23 | 25 | [!code-sh[GET Request](003-GET_Article.sh)]
|
24 | 26 | [!code-json[GET Response](003-GET_Article-Response.json)]
|
25 | 27 |
|
26 |
| -## Get Article with Author |
| 28 | +### Get with Relationship |
27 | 29 |
|
28 | 30 | [!code-sh[GET Request](004-GET_Articles_With_Authors.sh)]
|
29 |
| -[!code-json[GET Response](004-GET_Articles_With_Authors-Response.json)] |
| 31 | +[!code-json[GET Response](004-GET_Articles_With_Authors-Response.json)] |
| 32 | + |
| 33 | +### Update |
| 34 | + |
| 35 | +[!code-sh[PATCH Request](005-PATCH_Article.sh)] |
| 36 | +[!code-json[PATCH Response](005-PATCH_Article-Response.json)] |
| 37 | + |
| 38 | +### Delete |
| 39 | + |
| 40 | +[!code-sh[DELETE Request](006-DELETE_Article.sh)] |
| 41 | +[!code-json[DELETE Response](006-DELETE_Article-Response.json)] |
| 42 | + |
| 43 | +## Filters |
| 44 | + |
| 45 | +_Note that cURL requires URLs to be escaped._ |
| 46 | + |
| 47 | +### Equality |
| 48 | + |
| 49 | +[!code-sh[GET Request](008-GET_Articles_With_Filter_Eq.sh)] |
| 50 | +[!code-json[GET Response](008-GET_Articles_With_Filter_Eq-Response.json)] |
| 51 | + |
| 52 | +### Like |
| 53 | + |
| 54 | +[!code-sh[GET Request](009-GET_Articles_With_Filter_Like.sh)] |
| 55 | +[!code-json[GET Response](009-GET_Articles_With_Filter_Like-Response.json)] |
| 56 | + |
| 57 | +## Sorting |
| 58 | + |
| 59 | +# See Also |
| 60 | + |
| 61 | +- Customizing QuerySet |
0 commit comments