You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ada-project-docs/wave_03.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,12 @@ when I send a `PATCH` request to `/tasks/1/mark_complete`,
34
34
35
35
then the task is updated, so that its `completed_at` value is the current date, and I get this response:
36
36
37
+
`204 No Content`
38
+
39
+
The response should have a mimetype of "application/json" to keep our API response type consistent.
40
+
41
+
After I have made the `PATCH` request, I can submit a `GET` request to `/tasks/1`, which will return the response:
42
+
37
43
`200 OK`
38
44
39
45
```json
@@ -58,6 +64,12 @@ when I send a `PATCH` request to `/tasks/1/mark_incomplete`,
58
64
59
65
then the task is updated, so that its `completed_at` value is `null`/`None`, and I get this response:
60
66
67
+
`204 No Content`
68
+
69
+
The response should have a mimetype of "application/json" to keep our API response type consistent.
70
+
71
+
After I have made the `PATCH` request, I can submit a `GET` request to `/tasks/1`, which will return the response:
72
+
61
73
`200 OK`
62
74
63
75
```json
@@ -82,6 +94,12 @@ when I send a `PATCH` request to `/tasks/1/mark_complete`,
82
94
83
95
then I want this to behave exactly like `/tasks/1/mark_complete` for an incomplete task. The task is updated, so that its `completed_at` value is the current date, and I get this response:
84
96
97
+
`204 No Content`
98
+
99
+
The response should have a mimetype of "application/json" to keep our API response type consistent.
100
+
101
+
After I have made the `PATCH` request, I can submit a `GET` request to `/tasks/1`, which will return the response:
102
+
85
103
`200 OK`
86
104
87
105
```json
@@ -106,6 +124,12 @@ when I send a `PATCH` request to `/tasks/1/mark_incomplete`,
106
124
107
125
then I want this to behave exactly like `/tasks/1/mark_incomplete` for a complete task. Its `completed_at` value remains as `null`/`None`, and I get this response:
108
126
127
+
`204 No Content`
128
+
129
+
The response should have a mimetype of "application/json" to keep our API response type consistent.
130
+
131
+
After I have made the `PATCH` request, I can submit a `GET` request to `/tasks/1`, which will return the response:
0 commit comments