documentation-zero 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2650852c4529a8d663213c01b7c0b492fd81c601247c817ce17cf204a5f44872
|
4
|
+
data.tar.gz: b2eee6d289c54bf1ef547b0e8cf4f52df36bfd6b164ca96523b095daa37e35c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8d1ef81d109b58cab60dd37b06eb9ba310a7fcfc8c59efcd7de8bc14fb907e90820dfeb6aefb62c4dea09326b367ec9f41d70dfab991b69e56608e2e3eb695d
|
7
|
+
data.tar.gz: a8de4dc6df6b59904c9b649fd27f9d443e98e6765234d1348fc55295718522ec638370f8f3b1dc34ffc41111747f99bb615a888d4031a43b6962ea74d013b356
|
@@ -41,13 +41,13 @@ _Optional parameters_:
|
|
41
41
|
* `content` - attribute from post.
|
42
42
|
* `published` - attribute from post.
|
43
43
|
|
44
|
-
This endpoint will return `201 Created` with the current JSON representation of the
|
44
|
+
This endpoint will return `201 Created` with the current JSON representation of the post if the creation was a success. See the [post](#model) model for more info on the payload.
|
45
45
|
|
46
46
|
## Update post
|
47
47
|
|
48
48
|
- `PUT /posts/1.json` allows changing the post with an ID of `1`.
|
49
49
|
|
50
|
-
This endpoint will return `200 OK` with the current JSON representation of the
|
50
|
+
This endpoint will return `200 OK` with the current JSON representation of the post if the update was a success. See the [post](#model) model for more info on the payload.
|
51
51
|
|
52
52
|
<!--
|
53
53
|
**Required parameters**: `attribute1` and `attribute2`.
|
data/Gemfile.lock
CHANGED
@@ -41,13 +41,13 @@ _Optional parameters_:
|
|
41
41
|
* `<%= attribute.column_name %>` - attribute from <%= human_name.downcase %>.
|
42
42
|
<% end -%>
|
43
43
|
|
44
|
-
This endpoint will return `201 Created` with the current JSON representation of the
|
44
|
+
This endpoint will return `201 Created` with the current JSON representation of the <%= human_name.downcase %> if the creation was a success. See the [<%= human_name.downcase %>](#model) model for more info on the payload.
|
45
45
|
|
46
46
|
## Update <%= human_name.downcase %>
|
47
47
|
|
48
48
|
- `PUT /<%= plural_name %>/1.json` allows changing the <%= human_name.downcase %> with an ID of `1`.
|
49
49
|
|
50
|
-
This endpoint will return `200 OK` with the current JSON representation of the
|
50
|
+
This endpoint will return `200 OK` with the current JSON representation of the <%= human_name.downcase %> if the update was a success. See the [<%= human_name.downcase %>](#model) model for more info on the payload.
|
51
51
|
|
52
52
|
<!--
|
53
53
|
**Required parameters**: `attribute1` and `attribute2`.
|