When trying to use Swagger I would like to support dynamic query parameter names. Is this something that is possible? I tried leaving the name attribute off of the ApiImplicitParam operations but then it appears Swagger uses the dataType attribute to set the parameter name.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/gwagTh0eHyw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.
I understand what you're saying. At the moment (and Tony may correct me), Swagger does not support this form of API specification.Just as a clarification, two questions:
- In your example, you write GET /foobar.com/api/object?field1=val1&field2=val2 - but I don't understand the field values in this case. Since this is a GET operation and you want to filter the fields, you'd only need the field names. In that case, I'd expect the API to look like GET /foobar.com/api/object?fields=fieldName1,fieldName2,fieldName3 (This can be described by Swagger, btw).
- I assume that in this case, there are no additional fields that can be sent, otherwise how can you tell in the back-end which fields are yours and which are the user's?
On Mon, Mar 3, 2014 at 6:00 AM, Chris Omland <chris....@gmail.com> wrote:
Sure. Say you have a resource in your api call it an 'Object'. Then your application lets users define there own fields on that object, you don't know what those field names or values will be but you need to be able to support returning objects that are filtered by field name and value.So you might have something like:But field1 and field2 are defined by the user, you don't know their true names or values.Does that help?-Chris
On Sun, Mar 2, 2014 at 7:04 AM, Ron <web...@gmail.com> wrote:
Can you maybe share an example for this use case?I'm not sure how that'll work in terms of describing the API - "we also support a random set of characters as a parameter name that'll mean something."?
On Sat, Mar 1, 2014 at 11:37 PM, Aqua <chris....@gmail.com> wrote:
When trying to use Swagger I would like to support dynamic query parameter names. Is this something that is possible? I tried leaving the name attribute off of the ApiImplicitParam operations but then it appears Swagger uses the dataType attribute to set the parameter name.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/gwagTh0eHyw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscri...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/gwagTh0eHyw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsubscri...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscri...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/gwagTh0eHyw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/gwagTh0eHyw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/gwagTh0eHyw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.