Open nguyen-brian opened 8 years ago
Ok, I figured out a workaround to get the dog_id
to show up again. I had to add the parameter into the Parameters
section, like this:
## Dog [/api/dogs/{dog_id}]
+ Parameters
+ dog_id
### Show dog [GET]
Despite now having a workaround, I still would consider this a bug since according to the API blueprint specification for this section: "NOTE: This section should only contain parameters that are specified in the parent's resource URI template, and does not have to list every URI parameter."
I'm also seeing this on version 2.1.1
Same problem on version 2.2.0 and not just for the trailing parameters but also for the middle ones.
In the following:
### Article updates [/articles/{articleId}/updates/{updateNumber}]
This resource is used to perform updates on an article resource.
+ Parameters
+ articleId
+ updateNumber
The output markup will present the URI as /articles/updates
.
You should really be specifying the parameters and their types/samples/etc anyway 😉 Aglio wont be able to generate a good example URL else!
I have a section in my code that looks like this:
I was running a previous version of aglio (2.0.0-beta2), and it rendered fine.
Upgrading to 2.0.2 makes the {dog_id} disappear.
Am I doing something wrong here?