-
Notifications
You must be signed in to change notification settings - Fork 59
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
Features desired #2
Comments
Abao should support body of |
Be careful with limiting to In this case, RAML files will typically have a root section entry like this:
|
@ddossot I haven't hear about using media types to version APIs before, after a short google, I found it's related to Grape. Is this type of versioning widely used? |
Yes, it's widely used in hypermedia-enabled REST APIs. RAML supports it out And it's not Grape-specific in any way.
|
So, if there are various media-type returns json, how does Abao cover all these media-types. As Abao is supposed to support json validation only at this moment. |
All these media types are sub-types of So basically, to reuse my previous example, there should be nothing PS. Thank you so much for Abao.
|
Thank you for your explain. So in the implementation, it should be
or
|
The latter would be perfect!
|
|
@cybertk not sure if understand that list, but is that a reason that when I send something with request.body that isn't sent as a form; and when I set Content-Type to 'multipart/form-data' throws exception that it doesn't have a body? |
@sielay abao can only send body as |
@cybertk I worked it around, but to satisfy all REST/RAML consumers it's worth to support forms. Basic APIs always will prefer that way, as it's built in majority of frameworks. But personally I can wait ;) |
another argument is e.g. application/sparql-results+json as in the SPARQL 1.1 Query Results JSON Format W3C Recommendation |
Thanks @seebi, so we will use regex |
I am not sure if the But imho you should use |
@seebi Yes, you are absolute right. |
@seebi The |
does anyone know how to pass data to test.request.body if content-type is 'application/x-www-form-urlencoded'? |
test.request.body
should be object whenContent-Type
isapplication/json
--hook-only
Content-Type
is notapplication/json
done
param optionalThe text was updated successfully, but these errors were encountered: