Developer forum

Forum » Development » DW10 Web Api Responses

DW10 Web Api Responses

Umar Farooq
Reply

Hi

There are few endpoints in the api which return the data in blob. i dont know if that is by purpose or ...? but it would be nice if it can return the data in proper Json or an actual model which would be even better

for example  

/dwapi/ecommerce/groups

returns

   "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }

same goes for

"/dwapi/ecommerce/shippings/FindServicePoints": {
"/dwapi/feeds/GetFeedOutput": {
"/dwapi/ecommerce/groups/{groupId}": {

Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Umar

I do not see that - here is an example from the Swiftdemo:

http://swiftdemo.dynamicweb-cms.com/dwapi/ecommerce/groups/group5

What version are you using - and how does your entire header of the request look like - what is your accept header? It should be application/json and not something else.

From your response posted above, it looks like you have not send the correct accept header.

Cutting edge versions of the API always returns json in the browser.

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Sorry - I see now that you are talking about DW10 - but here goes for dw10 response:

http://dw10_swift.public2.dynamicweb.dk/dwapi/ecommerce/groups/group5

And a full Swagger for all endpoints: http://dw10_swift.public2.dynamicweb.dk/dwapi/docs/

 

You must be logged in to post in the forum