Reputation: 59
When I want to go to my category api in the strap, it returns an empty array. I checked the find checkbox in the roles section in the settings section. And when I want to go to localhost:1337/Categories
link, an empty array is returned. How can I solve it?
Upvotes: 0
Views: 1249
Reputation: 36
Set the cotegories you created to publish. When you create a new entry you have to click on Publish after clicking on Save. If you don't do that, you will get an empty array when testing the API request to get all entries.
Upvotes: 2