Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Content Delivery Api - APIs return 404 in browser, but works in Postman

$
0
0

Hello,

I'm testing out Content Delivery API by running it locally on my machine. In order to acess the endpoints I've set up, I use http://localhost:port/api/episerver/v2.0/content{contentId}.

When I issue get requests on this endpoint through Postman, I'm sucessfully retrieve the data I'm expecting. 

However, when I use the browser, either through a front-end application or directly go to the endpoint url in the browser, I recieve this response: {"error":{"code":"NotFound","message":"Content was not found"}}

I have given read access to all the content in EPiServer Admin Portal to the contentapiread user. 

Below is the output code for the working Postman request.

GET /api/episerver/v2.0/content/1 HTTP/1.1
Host: localhost:62478
User-Agent: PostmanRuntime/7.13.0
Accept: */*
Cache-Control: no-cache
Postman-Token: e6e8d194-ae40-4114-948a-589d69d2e45a,d8f777b8-29f9-4eba-abbb-97c849bd2059
Host: localhost:62478
accept-encoding: gzip, deflate
Connection: keep-alive
cache-control: no-cache

If you need further information, please ask and I will provide.

Has anyone experienced this before?


Viewing all articles
Browse latest Browse all 8020

Trending Articles