-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More API Blueprint fixes #2
Changes from 12 commits
6534f28
4a30554
56873e7
b9d7801
bb5546d
d7d85ef
8048cd2
4758f6c
35c6a8b
24ff4f7
f221b66
3429130
4f8c44d
ec98981
13ea7de
454d0ab
b2ec981
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
doc | ||
tmp | ||
.rvmrc | ||
.ruby-version | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
FORMAT: 1A | ||
|
||
# {{ api_name }} | ||
{{{ api_explanation }}} | ||
|
||
{{# sections }} | ||
|
||
# Group {{ resource_name }} | ||
|
@@ -16,34 +19,49 @@ FORMAT: 1A | |
## {{ route_name }} [{{ route }}] | ||
{{# description }} | ||
|
||
description: {{ description }} | ||
{{ description }} | ||
{{/ description }} | ||
{{# explanation }} | ||
|
||
explanation: {{ explanation }} | ||
{{{ explanation }}} | ||
{{/ explanation }} | ||
{{# has_parameters? }} | ||
|
||
+ Parameters | ||
|
||
{{# parameters }} | ||
+ {{ name }}{{# example }}: {{ example }}{{/ example }}{{# properties_description }} ({{ properties_description }}){{/ properties_description }}{{# description }} - {{ description }}{{/ description }} | ||
+ {{ name }}{{# properties_description }} ({{ properties_description }}){{/ properties_description }}{{# description }} - {{ description }}{{/ description }} | ||
{{/ parameters }} | ||
{{/ has_parameters? }} | ||
{{# http_methods }} | ||
|
||
{{# examples }} | ||
{{# requests }} | ||
|
||
### {{ action_name }} [{{ http_method }}] | ||
{{# explanation }} | ||
|
||
{{{ explanation }}} | ||
{{/ explanation }} | ||
{{# has_attributes? }} | ||
|
||
+ Attributes (object) | ||
+ Parameters | ||
|
||
{{# attributes }} | ||
+ {{ name }}{{# example }}: {{ example }}{{/ example }}{{# properties_description }} ({{ properties_description }}){{/ properties_description }}{{# description }} - {{ description }}{{/ description }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Anyhow, if you have an idea how we could get the actual parameter value in here that would be amazing 🙏 |
||
+ {{ name }}{{# value }}: {{ value }}{{/ value }}{{# properties_description }} ({{ properties_description }}){{/ properties_description }}{{# description }} - {{ description }}{{/ description }} | ||
{{# default }} | ||
|
||
+ Default: {{ default }} | ||
{{/ default }} | ||
{{/ attributes }} | ||
{{/ has_attributes? }} | ||
{{# http_methods }} | ||
|
||
### {{ description }} [{{ http_method }}] | ||
{{# examples }} | ||
{{# requests }} | ||
{{# has_request? }} | ||
|
||
+ Request {{ description }}{{# request_content_type }} ({{ request_content_type }}){{/ request_content_type }} | ||
|
||
{{# explanation }} | ||
{{{ explanation }}} | ||
{{/ explanation }} | ||
{{/ has_request? }} | ||
{{# request_headers_text }} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what value this should have... or if it even works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks, we just need to add apiblueprint validations in spec suite, and we'll be done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the specs, and added an expectation for the "route explanations". I can't seem to write an expectation for the "method explanations", although it works when I use the gem. Something seems off with the
http_method
s in the specs for some reason.