@integreat-app/integreat-api-client v6.0.0
Integreat API-Client
Implementation of the integreat-cms endpoints (v3) used by the integreat-webapp and integreat-react-native-app.
Tasks of the API-Client:
- Simple usage of the different endpoints
- Fetching data from the cms
- Mapping of the JSON responses to our internal models
- Sorting and filtering when necessary
- Posting feedback
Testing and Debugging
Apart from testing with unit tests you can test or debug your changes with the frontend of your choice:
- Run
yarn build. - Replace the content of
node_modules>@integreat-app>integreat-api-clientin the frontend with the content of the generateddistfolder.
With bash you can use the following command from the parent directory to do so:
yarn --cwd integreat-api-client/ build && cp -R integreat-api-client/dist/. <frontend>/node_modules/@integreat-app/integreat-api-client/This assumes:
<frontend>is eitherintegreat-webapporintegreat-react-native-app.integreat-api-clientand<frontend>are both in the same directory.
Releasing
- Bump the version number in the
package.json.- Create a PR to the
masterbranch. - Merge the PR, if necessary using admin privileges.
- Create a PR to the
- Run
yarn build. - Navigate to the created
distfolder (cd dist). - Make sure all necessary changes are present in the generated output:
- Bumped version number.
- Changes to be released.
- Run
yarn publish. Make sure to run this only from thedistfolder.
NOTE: Publishing is only possible once per version number, so make sure everything is correct before running yarn start.
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago