How to update the API Platform autogenerated types?
API Platform is a set of tools to build and consume web APIs via PHP.
The API Platform autogenerated interfaces are located in frontend/src/types/api-platform.
In order to update them, you just need to:
- Delete the interfaces you want to update 
- Execute in local environment 
- Lint the files 
cd frontend
rm -rf src/types/api-platform
NODE_TLS_REJECT_UNAUTHORIZED=0 npm init @api-platform/client https://localhost:8443 src/types/api-platform -- --generator typescript
npx eslint src/types/api-platform --fixLast updated
Was this helpful?
