REST API of the student project responsible for operating the ski station..
The project enables the operation of a ski station by providing the necessary functionalities. The functionalities are provided by three applications:
- website (ReactJS),
- mobile application (Flutter),
- QR code scanner - ski gate (Unity). All components are connected to each other via REST API included in this repository.
- Login and user registration,
- Authentication with Google account,
- Ability to purchase a tickets using the payment system,
- Scanning of tickets,
- Generating reports.
Diagram showing the use cases necessary for the project to work. The backend also implements functionality that is not shown in the diagram below.
A database schema created in MySQL.
Endpoints of the application shown based on a screenshot from the Postman application.
Sample payment API documentation: link
User authentication is done through JWTs that the user obtains during the authentication process. During authentication, the user also obtains a refresh token to extend the life of the access token.
Google user authentication is done through Spring Security. The flow of the user login process through Google is shown below.
Payments for tickets and passes are made entirely through payPal.
Reports are generated using JasperReport. There are two types - reports for clients and administrators. An example of a report generated for a client:
- Java,
- Spring Boot,
- Spring Security,
- Spring Data,
- Hibernate,
- Lombok,
- MySQL,
- PayPal API,
- JasperReport.
- Postman,
- Github,
- Swagger,
- Trello.