Web app that follows RESTful API rules and supports
- user authentication / authorization
- CRUD operations
Created using Spring & Hibernate
This is a scheme of cinema app:
- POST: /register (all) - new user registration;
- POST: /cinema-halls (admin) - create a new cinema hall;
- POST: /movies (admin) - create a new movie;
- POST: /movie-sessions (admin) - create a new movie session;
- POST: /orders/complete (user) - create a new order for current user;
- GET: /cinema-halls (user/admin) - get a list of all cinema halls;
- GET: /movies (user/admin) - get a list of all movies;
- GET: /movie-sessions/available (user/admin) - get available movie sessions for specific movie and date;
- GET: /orders (user) - get a list of orders for current user;
- GET: /shopping-carts/by-user (user) - get shopping cart of current user;
- GET: /users/by-email (admin) - get user by email;
- PUT: /movie-sessions/{id} (admin/root) - update movie session;
- PUT: /shopping-carts/movie-sessions (user) - creates a ticket and adds it to the shopping cart of current user;
- DELETE: /movie-sessions/{id} (admin/root) - delete movie session.
Java 17, Spring Web MVC, Spring Security, Hibernate, MySql, Tomcat. Maven
- Replace DRIVER, URL, USERNAME, PASSWORD in db.properties on your own;
- Configure tomcat(9.0.50 version required;
- RUN maven package command in terminal;
- Click run button or Shift + f10;
- Congrats, now you can test this app.
