Closed kamihouse closed 6 years ago
Did you find any solution for this? I have the same problem as you.
@kamihouse
I fixed it currently hardcoded: For my use case this now work. I'll try to find a more generic solution. https://github.com/LKDevelopment/drakov/commit/a3e359071fd89b35551cd9ab6d06d2c7fa335df2
Hi @LKDevelopment, In my case I stopped using action along with resources. But I really enjoyed your proposed solution at https://github.com/LKDevelopment/drakov/commit/a3e359071fd89b35551cd9ab6d06d2c7fa335df2 \o/
For example:
### Deleta um aviso [DELETE /veiculos/{id}/avisos/{id_aviso}]
I solved by separating the resource (HTTP request method) from the action (GET, POST, PUT, DELETE...):
### Aviso [/veiculos/{id}/avisos/{id_aviso}]
...
#### Deleta um aviso [DELETE]
...
i ve found out that there is already a better generic pr here in the repo :) #169 I've use now this code and it works perfectly!
Hi guys. I'm having some troubles while trying to mock some resources using the Blueprint API.
This resource is defined by a resource name (identifier) followed by an HTTP request method and an URI template enclosed in square brackets []:
# <identifier> [<HTTP request method> <URI template>]
Source: https://apiblueprint.org/documentation/specification.html#def-resource-sectionFor example:
This generates the doc:![recursos](https://user-images.githubusercontent.com/892340/36322129-60490f1c-1333-11e8-87c5-e0671d1f3bb8.png)
However, drakov generates the following endpoints:
Path variables are not being interpreted.
Now I'm having some troubles to mock the features and I do not know if it's a drakov or Blueprint API problem. Thanks.