Coder Social home page Coder Social logo

tanbinh123 / springboot_movieticketbooking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from praveengirishnadumani/springboot_movieticketbooking

1.0 1.0 0.0 87 KB

This is the movie ticket booking REST API project. we used Spring boot for API implementation and Hibernate for Database connectivity.

Java 75.90% TSQL 24.10%

springboot_movieticketbooking's Introduction

MovieTicketBooking

This is the movie ticket booking REST API project. we used Spring boot for API implementation and Hibernate for Database connectivity.

Below are the list of API endpoints available for the user to make api integrations for there platform

All the Admin or merchant api endpoint starts with the /api *

To add the City to the DB

URL: /api/city Method: POST Request: { "name":"Bengaluru", "pincode":"590056", "state":"Karnataka" } Response: { "name": "Bengaluru", "state": "Karnataka", "id": 2, "pincode": "590056" }

To add theater to the BD

here theater reference to the key_id of the city as primary key so make sure to pass the valid city id URL: /api/{CityID}/theater Method: POST Request: { "name":"Finox mall", "area":"Koramangala" } Response: { "t_name": "Finox", "t_area": "Kormangala", "t_id": 3 }

To add the Movie to the DB

URL: /api/movie Method: POST Request Body: { "_name":"WAR 3", "_director":"WAR 3 directors", "_description":"description about the WAR 3 movie here" } Response Body: { "_name": "WAR 3", "_director": "WAR 3 directors", "_description": "description about the WAR 3 movie here", "_id": 6 }

To add a show

URL:

  • TO add a show pass the theater Id and Movie id as a URL parma and the show time in the request body * URL: /api/{theater_id}/{movie_id}/show Method: POST Request: { "time":"4/4/2020 - 3:30 PM" } Response: { "show_Id": 8, "show_time": "1/4/2020 - 3:30 PM " }

All the End user api will start with the /user

When user comes to the app make a get call to below API to fetch the name of city available on the app

URL: /user/city Method: GET Response Body: [ { "name": "Munavalli", "state": "Karnataka", "id": 1, "pincode": "591117" }, { "name": "Bengaluru", "state": "Karnataka", "id": 2, "pincode": "590056" } ]

To get the list of Theaters Available on the city using the city id got in the previous call

URL: /user/{cityID}/theater Method: GET Response Body: [ { "t_name": "Finox", "t_area": "Kormangala", "t_id": 3 }, { "t_name": "Bhoda theater", "t_area": "Kengeri", "t_id": 5 } ]

after user selects the theater pass the theater id to the below api and in return you'll get a list of movie available for the movie *

URL: /user/theater/{theaterID}/movie Method: GET Response Body: [ [ 6, "WAR 3", "description about the WAR 3 movie here" ] ]

springboot_movieticketbooking's People

Contributors

praveengirishnadumani avatar

Stargazers

Tan Binh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.