Hi Nadeesha, I still could not reproduce the issue :( . What I tried was adding a "/*" with all GET, POST, PUT, DELETE and HEAD. Have I missed anything here?
Thank you. On Thu, Oct 22, 2015 at 3:33 AM, Nadeesha Gamage <[email protected]> wrote: > Thanks Malintha & Madusanka this works, but if we try to create a default > URL pattern with all HTTP verbs, the POST doesnt show a request body. > > Thank you, > Nadeesha > > On Tue, Oct 20, 2015 at 12:59 AM, Malintha Amarasinghe <[email protected] > > wrote: > >> Hi Nadeesha, >> >> I rechecked with APIM 1.9.1. When I added a resource as a POST, I can see >> a default body parameter is by default added. Please refer the screenshots >> for publisher and store swagger console. As Madusanka pointed too, this >> should be a problem with the swagger.json file. If you need to add a body >> parameter it needs to be specified as "in:body" and also we need to specify >> a schema. If we don't have a schema we can specify an empty schema like >> below. This is by default added when you add a POST resource in APIM 1.9.1. >> >> /res1: >> post: >> x-auth-type: "Application & Application User" >> x-throttling-tier: Unlimited >> parameters: >> - schema: >> * type: object* >> description: Request Body >> name: Payload >> required: false >> *in: body* >> responses: >> "200": {} >> >> >> >> Thanks. >> >> On Tue, Oct 20, 2015 at 11:01 AM, Nadeesha Gamage <[email protected]> >> wrote: >> >>> Thanks, is there any particular reason why the 'body' option is not >>> available in the UI? >>> >>> On Mon, Oct 19, 2015 at 9:11 PM, Madusanka Premaratne < >>> [email protected]> wrote: >>> >>>> Hi Nadeesha, >>>> You can do this in APIM 1.9.0 and up. In order to post, you need to >>>> create a model/definition from the API Publisher. Please refer the petstore >>>> sample[1] >>>> >>>> When defining you need to set the parameter type as in: body and you >>>> need to set the schema. Refer to the attached yaml for schema definition. >>>> >>>> [1] - http://petstore.swagger.io/ >>>> >>>> >>>> Thanks, >>>> Madusanka >>>> >>>> On Tue, Oct 20, 2015 at 8:15 AM, Nadeesha Gamage <[email protected]> >>>> wrote: >>>> >>>>> API M 1.9.1 >>>>> >>>>> On Mon, Oct 19, 2015 at 5:42 PM, Malintha Amarasinghe < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> What is the APIM version you are using? AFAIK this is supported in >>>>>> APIM 1.9.1 version. >>>>>> >>>>>> Thank you. >>>>>> Malintha >>>>>> >>>>>> On Tue, Oct 20, 2015 at 5:13 AM, Nadeesha Gamage <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Hi Devs, >>>>>>> Is it possible to POST a message payload from the Swagger UI in the >>>>>>> API Store. The current API Manager version doesnt have a 'Body' >>>>>>> parameter >>>>>>> type available to do this. Is there any other way to send a message >>>>>>> payload >>>>>>> from Swagger UI. >>>>>>> >>>>>>> >>>>>>> Thank you, >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Nadeesha Gamage >>>>>>> Associate Technical Lead - Solutions Engineering >>>>>>> T : +94 77 394 5706 >>>>>>> B : https://nadeesha678.wordpress.com/ >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Dev mailing list >>>>>>> [email protected] >>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Malintha Amarasinghe >>>>>> Software Engineer >>>>>> *WSO2, Inc. - lean | enterprise | middleware* >>>>>> http://wso2.com/ >>>>>> >>>>>> Mobile : +94 712383306 >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Nadeesha Gamage >>>>> Associate Technical Lead - Solutions Engineering >>>>> T : +94 77 394 5706 >>>>> B : https://nadeesha678.wordpress.com/ >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Madusanka Premaratne* | Associate Software Engineer >>>> WSO2, Inc | lean. enterprise. middleware. >>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>> Mobile: +94 71 835 70 73| Work: +94 112 145 345 >>>> Email: [email protected] | Web: www.wso2.com >>>> >>>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter] >>>> <https://twitter.com/rmmpremaratne> [image: Google Plus] >>>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image: >>>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram] >>>> <http://instagram.com/madusankapremaratne> [image: Skype] >>>> <http://@rmmpremaratne> >>>> >>>> >>> >>> >>> -- >>> Nadeesha Gamage >>> Associate Technical Lead - Solutions Engineering >>> T : +94 77 394 5706 >>> B : https://nadeesha678.wordpress.com/ >>> >> >> >> >> -- >> Malintha Amarasinghe >> Software Engineer >> *WSO2, Inc. - lean | enterprise | middleware* >> http://wso2.com/ >> >> Mobile : +94 712383306 >> > > > > -- > Nadeesha Gamage > Associate Technical Lead - Solutions Engineering > T : +94 77 394 5706 > B : https://nadeesha678.wordpress.com/ > -- Malintha Amarasinghe Software Engineer *WSO2, Inc. - lean | enterprise | middleware* http://wso2.com/ Mobile : +94 712383306
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
