Enable swagger for Nopcommerce 4.1 api plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 Jahre weitere
How do I Enable swagger for Nopcommerce 4.1 api plugin.i have tried with http://localhost:15536/swagger/ui/index#/ URL but it gives page not found error..Does anyone have idea about it?how can i access Swagger?
5 Jahre weitere
Any Solution????
5 Jahre weitere
Hi,

Unfortunately, the swagger doesn't work for nopCommerce 4.10.

Regards,
Stoyan
5 Jahre weitere
Thank you for reply..!
Is there any other way to test my api..practically it is not possible to crate whole object of create cart or place order.how can i test it???
5 Jahre weitere
Hi,

You can use Postman (chrome app) or Fiddler to make requests.

Regards,
Stoyan
5 Jahre weitere
But what about POST Type request..like placeOrder or Add in shopping cart..it might be very complicated to create whole object..I am already using postman for GET type request.but i want to place order from development side and test it....
5 Jahre weitere
Hi,

It is not necessary to create objects from scratch.
You can modify the JSON response from the GET requests and use it for the POST requests.

Regards,
Stoyan
5 Jahre weitere
I have made it enable for my nopcommerce API.now i acn see my swagger UI from http://localhost:15536/swagger/index.html..When I test it for get type request its is working fine..i can get all data for products,categories etc..but I can not chnage the parameter value..my API get called but it is not taking the value which i have updated on swagger UI.i always take model with null or default values..what could be the problem? why api is not called with updated value which i have pass in request parameter?
4 Jahre weitere
I installed plugin to my site. How do I access API ?
for ex. my site name is http://ecom.mystore.com

What should be base URL of my api

I have been trying with ecom.mystore.com/api but seems it is not right
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.