If you’re using an Erstwhile-aware backend things are really easy. Ask the backend developer for the URL of the backend server and where they host the API description.
Then set up some environment variables in your .env:
# Erstwhile ERSTWHILE_API_URL=http://localhost:8022 ERSTWHILE_API_DESCRIPTION_PATH=/describe
After that, run npm run models. Done.
Servers using our module to publish their desciption.json file will also be self-documenting; you can go to the URL of the description file with an extra parameter to see a nice HTML readout of the file:
http://localhost:8022/describe?format=html
If everything goes well, you should see something like this:
