Extended Web API - CreateProductPicture 404

Monday, November 25, 2024 3:32:41 PM
  • Posted: Friday, October 28, 2022 5:55 AM
  • 34
Clarence wrote:
Let's start with a simple example.
Using Postman, I create a new product using POST and got the id : 635b6d4c246dad138307b717

When I tried to delete the above product using DELETE command, I get a 404 Not Found Error
https://simplex.sgvmart.com/odata/product('635b6d4c246dad138307b717')

I can send the API key separately to your email if you need to test on the above URL.
0
  • Posted: Friday, October 28, 2022 4:52 PM
  • Team
  • 152
Please remove quotation mark from query.
Command should like this:
https://simplex.sgvmart.com/odata/product(635b6d4c246dad138307b717)
0
  • Posted: Saturday, October 29, 2022 2:26 AM
  • 34
It's still 404, see the link for attached image
0
  • Posted: Saturday, October 29, 2022 2:27 AM
  • 34
It's still 404, see the image to the screen capture.
https://file.simplex.sg/s/efNmgBS6CcMrezJ
0
  • Posted: Saturday, October 29, 2022 5:32 PM
  • Team
  • 152
I'm sorry I didn't check before. Every methods you find in the swagger https://demo.grandnode.com/swagger/index.html I've check delete and it works correctly
0
  • Posted: Sunday, October 30, 2022 9:31 PM
  • 34
I'm at my wits end. It is strange that I can create product using the API and encounter 404 for product delete.
How can I install the plugin in the development version i.e. v2.21 to try out?
0
  • Posted: Monday, October 31, 2022 8:08 AM
  • Team
  • 152
To delete you should use this url:
https://store/odata/product?key=6356b046a85d437deaedb6de
You have everything describe in the open api format.
It available here: https://demo.grandnode.com/swagger/v1/swagger.json
or
https://yourstore/swagger/v1/swagger.json
0
  • Posted: Monday, October 31, 2022 8:16 PM
  • 34
I've tried https://simplex.sgvmart.com/swagger/v1/swagger.json and still get 404 error.
Using Postman DELETE https://simplex.sgvmart.com/odata/product(6356b046a85d437deaedb6de) also get 404 error.

So far only POST https://simplex.sgvmart.com/odata/product and POST https://simplex.sgvmart.com/odata/picture work.
Others resulted in 404 errors.

Could it be GrandNode2 v2.0 installation having issue? I would like to try installing GrandNode2 v2.1. How do I install the Extended Web API plugin on the development version?
0
  • Posted: Wednesday, November 2, 2022 3:20 PM
  • Team
  • 152
I've tested on stable version 2.0.0
Develop version is not stable and any plugins will not be work with this version. After official publish version 2.1 the plugins will be updated.
Please find the file appsettings.json
and change setttings:
"BackendAPI": {
    "Enabled": true,
    "UseSwagger": true,
..
0
back to top
Filters