Skip to content

Commit 040ab4c

Browse files
committed
Fix broken examples doc generation
1 parent f84a960 commit 040ab4c

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
curl -s -f http://localhost:14141/api/people `
22
-H "Content-Type: application/vnd.api+json" `
33
-d '{
4-
\"data\": {
5-
\"type\": \"people\",
6-
\"attributes\": {
7-
\"name\": \"Alice\"
4+
"data": {
5+
"type": "people",
6+
"attributes": {
7+
"name": "Alice"
88
}
99
}
1010
}'

docs/request-examples/011_CREATE_Book-with-Author.ps1

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
curl -s -f http://localhost:14141/api/books `
22
-H "Content-Type: application/vnd.api+json" `
33
-d '{
4-
\"data\": {
5-
\"type\": \"books\",
6-
\"attributes\": {
7-
\"title\": \"Valperga\",
8-
\"publishYear\": 1823
4+
"data": {
5+
"type": "books",
6+
"attributes": {
7+
"title": "Valperga",
8+
"publishYear": 1823
99
},
10-
\"relationships\": {
11-
\"author\": {
12-
\"data\": {
13-
\"type\": \"people\",
14-
\"id\": \"1\"
10+
"relationships": {
11+
"author": {
12+
"data": {
13+
"type": "people",
14+
"id": "1"
1515
}
1616
}
1717
}

docs/request-examples/012_PATCH_Book.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ curl -s -f http://localhost:14141/api/books/1 `
22
-H "Content-Type: application/vnd.api+json" `
33
-X PATCH `
44
-d '{
5-
\"data\": {
6-
\"type\": \"books\",
7-
\"id\": \"1\",
8-
\"attributes\": {
9-
\"publishYear\": 1820
5+
"data": {
6+
"type": "books",
7+
"id": "1",
8+
"attributes": {
9+
"publishYear": 1820
1010
}
1111
}
1212
}'

0 commit comments

Comments
 (0)