-1

I have a content type "bomeldungs" with 2 items in it. image

I have set up a RESTful API webservice. With the GET "API URL HERE" i must get all 2 items in a json format. It must look like this: image

Calling the API URL in the Postman Application, im getting a successfull 200 OK Status, but in the JSON there are 0 items. image

How can this happen?

preqi
  • 9
  • 2
  • Are you doing any filters or passing any query strings to the API? Also are you using multisite management and maybe that content is NOT on the default site? If using multisite management you will need to pass ?sf_site={{GUID of Site}} to the url to retain context. – Jon R. Mar 04 '22 at 12:52
  • @JonR. how do u pass the param? when I do so I get a 404. `https:///api/default/entity?sf_site=` – Lee Jun 12 '22 at 10:08
  • 1
    Did you replace entity with the name of your content type? You could also try passing the provider name ?sf_provider or as Steve mentioned check the permission on that service. – Jon R. Jun 13 '22 at 13:21

1 Answers1

0

Checked permissions? If you’re logged into the browser you’d see items, where you’d be anonymous in postman.

Steve McNiven-Scott
  • 1,770
  • 2
  • 15
  • 29