Skip to content

We have developed this REST API for an Online Food Booking application. This API performs all the fundamental CRUD operations of any Online Food Booking platform with user validation at every step.

Notifications You must be signed in to change notification settings

roshan93190/Online_Food_Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API for an Online Food Application

  • We have developed this REST API for an Online Food Booking application. This API performs all the fundamental CRUD operations of any Online Food Booking platform with user validation at every step.
  • This project is developed by team of 6 Back-end Developers during project week in Masai School.
  • ### This is a collaborative project, completed by a team of 6 Java backend developers at Masai School.

    Collaborators

    Tech Stack

    • Java
    • Hibernate
    • Spring Framework
    • Spring Boot
    • Spring Data JPA
    • MySQL
    • Swagger UI
    • Maven

    Modules

    • Login Module
    • Restaurant owner Module
    • Customer Module
    • Category Module
    • Order and Bill Module

    Features

    • Data Authentication and Validation for all the users (Restaurnat owner, Customer)

    Owner Features

    • Owner can login by giving valid credentials.
    • Owner can add category and provide the item to the respective category.
    • Owner can add the status and set the price.

    Customer Features

    • Customer can login in the application and update their information using their username and password.
    • Customer can book food item using by adding into cart and destination.
    • Customer can access the bill after the purchase & can have the history is completed.

    Installation & Run

    • Before running the API server, you should update the database config inside the application.properties file.
    • Update the port number, username and password as per your local database configuration.
        server.port=8081
    
        spring.datasource.url=jdbc:mysql://localhost:3306/cabdb;
        spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
        spring.datasource.username=root
        spring.datasource.password=root
    

    API Root Endpoint

    https://localhost:8081/
    
    http://localhost:8081/swagger-ui/
    

    API Reference

    Sample API Response for Customer Account Creation

    Request Type

    POST
    

    Request URI

    http://localhost:8081/customer/create
    

    Request Body

    {
        "username":"pablo",
        "password":"escobar",
        "mobile":"9874568721"
    }
    

    Response Body

    {
      "userName": "roshan",
      "username": "pablo",
      "password": "escobar",
      "address": null,
      "mobile": "9874568721",
      "email": null,
      "age" : 25,
      "gender" : "male"
    }
    

    About

    We have developed this REST API for an Online Food Booking application. This API performs all the fundamental CRUD operations of any Online Food Booking platform with user validation at every step.

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages