documentation-zero 0.0.8 → 0.0.9
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: 25b3388ee2af025b7d1144d1f359c18ce4d75daf4d2d6e69845b4c642174cc43
|
4
|
+
data.tar.gz: 50e5e4c9b83f9a1315861cef29a97f1415394357adb82b97f69504a095ca7205
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f093fa94fd57cc9159a0130635164c468e2541744ecee8d7b9693569a9c04542179a65d37dcd07083ad4006c9e71b8a5b4d8e52dd035dde4f71a09e338f17cf
|
7
|
+
data.tar.gz: 0ae4198e2eca599ae54a4594692e712e31e42a33f62fb8a7cf497a40a7abb97bf75b64555f1606b57f3816a274bdfeceb9245809fc9aa97075316993d63dffaf
|
@@ -78,6 +78,8 @@ This endpoint will return `204 No Content` if successful. No parameters are requ
|
|
78
78
|
"title": "string",
|
79
79
|
"content": "string",
|
80
80
|
"published": "boolean",
|
81
|
-
"
|
81
|
+
"user_id": "integer",
|
82
|
+
"created_at": "datetime",
|
83
|
+
"updated_at": "datetime"
|
82
84
|
}
|
83
85
|
```
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -24,7 +24,7 @@ rails generate documentation:readme
|
|
24
24
|
rails generate documentation:scaffold posts title:string body:text published:boolean user:references
|
25
25
|
```
|
26
26
|
|
27
|
-
Add
|
27
|
+
Add `- [Posts](sections/posts.md)` to API endpoints section.
|
28
28
|
|
29
29
|
## Development
|
30
30
|
|
@@ -77,10 +77,14 @@ This endpoint will return `204 No Content` if successful. No parameters are requ
|
|
77
77
|
<% if attribute.password_digest? -%>
|
78
78
|
"password_digest": "string",
|
79
79
|
<% elsif attribute.token? -%>
|
80
|
-
"<%= attribute.
|
80
|
+
"<%= attribute.column_name %>": "string",
|
81
|
+
<% elsif attribute.reference? -%>
|
82
|
+
"<%= attribute.column_name %>": "integer",
|
81
83
|
<% elsif !attribute.virtual? -%>
|
82
|
-
"<%= attribute.
|
84
|
+
"<%= attribute.column_name %>": "<%= attribute.type %>",
|
83
85
|
<% end -%>
|
84
86
|
<% end -%>
|
87
|
+
"created_at": "datetime",
|
88
|
+
"updated_at": "datetime"
|
85
89
|
}
|
86
90
|
```
|