Home page of the APIs
Import of libraries and definition of project parameters. Specifically, the following libraries were used:
FastAPI, for the management of the APIs;
requests, for handling HTTP calls to source APIs;
re, for data modeling;
random, for managing the generation of random numbers;
typing, for managing DTOs and typing in Python;
uvicorn, for API server runtime management.
All API calls generate a response in JSON format, which being a widely used and human-readable format, data manipulation is simple and immediate.
By exploiting the power of the FastAPI framework, DTOs (Data Transfer Objects) have been defined, thanks to which not only the app is more robust, but also thanks to OpenAPI (Swagger UI), the documentation of the APIs is automatically generated, so such as to facilitate the developer and provide the user with a dynamic and detailed user experience.
For a fast and powerful customization, the Bootstrap framework was used, thanks to which it was possible to integrate some dynamic and functional features in the user navigation.