distributeaid / distributeaid/docs

[add] Troubleshooting section for API calls

Open
#55 0 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
MDX
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Cover some troubleshooting for API calls that are not returning the data as expected.
Things like:
- **Problem**: No data is displayed when sending a GET request
**_Possible Solution_**: Verify that data exists in the collection for the call to return a result. If there are no entries in the collection, you need to add an entry to populate that collection with data. Then you should be able to see data with the GET request.

- **Problem**: Only first-level data is being returned on a GET request, and you need second-level data or relations data.
**_Possible Solution_**: Pass the `populate=*` parameter (or combinations of it) to populate deeper levels of data within the collection info returned. See this [Strapi docs link](https://docs.strapi.io/cms/api/rest/populate-select) for more details.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.