react-starter-kit/contracts/api
Mastermindzh 3db77f96b9 Added a nestJS based contract api
- Added an example with trucks and basic fetch in useEffect on page load
  - Added simply test to see whether any data is displayed (and shows the interceptor)
Introduced "CypressStrictMode" which wraps React.StrictMode and checks whether Cypress is involved, if so disable StrictMode.
2022-08-15 11:42:19 +02:00
..
src Added a nestJS based contract api 2022-08-15 11:42:19 +02:00
.eslintrc.js Added a nestJS based contract api 2022-08-15 11:42:19 +02:00
.gitignore Added a nestJS based contract api 2022-08-15 11:42:19 +02:00
nest-cli.json Added a nestJS based contract api 2022-08-15 11:42:19 +02:00
package-lock.json Added a nestJS based contract api 2022-08-15 11:42:19 +02:00
package.json Added a nestJS based contract api 2022-08-15 11:42:19 +02:00
README.md Added a nestJS based contract api 2022-08-15 11:42:19 +02:00
tsconfig.build.json Added a nestJS based contract api 2022-08-15 11:42:19 +02:00
tsconfig.json Added a nestJS based contract api 2022-08-15 11:42:19 +02:00

Contract api

This API is meant to emulate the different contracts that you have with external systems

use api based routing

You can use the first part of the URL as your contract and put your resources after that. e.g, for fake you could do:

URL/fake/trucks and URL/fake/containers. Then simply make URL/fake your root url in the React config