using two input parameters (body param and path param)

19 views
Skip to first unread message

Shweta Agarwal

unread,
Jan 30, 2017, 12:13:58 PM1/30/17
to Swagger
Hi,

I calling a rest api with body param and path param, but in the rest api function I am not getting the value of body param, only path param value is coming.
can someone help? Also tell me the alternative to use two input parameters in rest api.

-Shweta

tony tam

unread,
Jan 30, 2017, 12:14:44 PM1/30/17
to swagger-sw...@googlegroups.com
That’s supported and widely used.  What framework are you using?  Do the parameters have the same 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/d/optout.

Shweta Agarwal

unread,
Jan 30, 2017, 11:11:27 PM1/30/17
to swagger-sw...@googlegroups.com
No it does not have same names.

On Mon, Jan 30, 2017 at 10:44 PM, tony tam <feh...@gmail.com> wrote:
That’s supported and widely used.  What framework are you using?  Do the parameters have the same name?
On Jan 30, 2017, at 9:13 AM, Shweta Agarwal <shiwi16...@gmail.com> wrote:

Hi,

I calling a rest api with body param and path param, but in the rest api function I am not getting the value of body param, only path param value is coming.
can someone help? Also tell me the alternative to use two input parameters in rest api.

-Shweta

--
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/d/optout.

--
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/jWgeR2ZbkHw/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/d/optout.



--
-Shweta Agarwal

tony tam

unread,
Jan 31, 2017, 12:58:07 AM1/31/17
to swagger-sw...@googlegroups.com
Please respond to my other question if you’d like help

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Shweta Agarwal

unread,
Jan 31, 2017, 1:33:00 AM1/31/17
to swagger-sw...@googlegroups.com
Swagger 2.0

On Tue, Jan 31, 2017 at 11:27 AM, tony tam <feh...@gmail.com> wrote:
Please respond to my other question if you’d like help
On Jan 30, 2017, at 8:11 PM, Shweta Agarwal <shiwi16...@gmail.com> wrote:

No it does not have same names.
On Mon, Jan 30, 2017 at 10:44 PM, tony tam <feh...@gmail.com> wrote:
That’s supported and widely used.  What framework are you using?  Do the parameters have the same name?
On Jan 30, 2017, at 9:13 AM, Shweta Agarwal <shiwi16...@gmail.com> wrote:

Hi,

I calling a rest api with body param and path param, but in the rest api function I am not getting the value of body param, only path param value is coming.
can someone help? Also tell me the alternative to use two input parameters in rest api.

-Shweta

--
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.

For more options, visit https://groups.google.com/d/optout.

--
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/jWgeR2ZbkHw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsubscri...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-Shweta Agarwal

--
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/d/optout.

--
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/jWgeR2ZbkHw/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/d/optout.



--
-Shweta Agarwal
Reply all
Reply to author
Forward
0 new messages