The OpenAPI specification for the REST API of Politecnico di Torino.
If you are accustomed to using Postman, you can just import the .yaml file containing the specification.
Alternatively, you can start a Docker container of swagger-ui directly on your computer by running:
docker-compose up
By default, the web interface will start on port 8080.
These definitions provide a single point of truth that can be used end-to-end:
We suggest using Prism to run a mock version of this API.
After installing it, you can start a mock server with the following command:
prism mock -h YOUR-LOCAL-IP ./openapi.yaml
You only need to specify your IP if you want them to be accessible from other devices in the same network (e.g. while working on @polito/students-app, since it will typically run on a distinct device).