episerver / content-delivery-js-sdk

Apache License 2.0
22 stars 14 forks source link

Content Delivery requests are in unfriendly format #14

Closed MineshS closed 3 years ago

MineshS commented 3 years ago

In version 3.0 of the Content Delivery API the requests are made to an unfriendly url e.g.

http://localhost:8081/api/episerver/v3.0/content?contentUrl=%2F&matchExact=true&expand=*

in version 2.0 it was similar to http://localhost:8081/url-segment and request header of accept='application/json'

image

JohanPetersson commented 3 years ago

Not sure why this would be a bug? This is just a sample implementation and you can still use friendly URLs in your implementation if you prefer. The SDK itself does use this URL format however, since the friendly URLs are optional.