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:

  1. Delete the interfaces you want to update

  2. Execute in local environment

  3. 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 --fix

Last updated