GithubHelp home page GithubHelp logo

all-mappings's Introduction

weekly-test-mapping

This project is a Java-based application developed using Spring Boot that demonstrates the implementation of different types of relationships between data models. The project includes four models - Student, Laptop, Course, and Book - and an embedded model called Address.

Data Models

Student

The Student model represents a student and includes the following fields:

  1. ID: The unique identifier for the student.
  2. name: The name of the student.
  3. age: The age of the student.
  4. phoneNumber: The phone number of the student.
  5. branch: The branch of the student.
  6. department: The department of the student.
  7. address: An embedded model that represents the address of the student.

Laptop

The Laptop model represents a laptop and includes the following fields:

  1. ID: The unique identifier for the laptop.
  2. name: The name of the laptop.
  3. brand: The brand of the laptop.
  4. price: The price of the laptop.
  5. student: A one-to-one relationship that represents the student who owns the laptop.

Course

The Course model represents a course and includes the following fields:

  1. ID: The unique identifier for the course.
  2. title: The title of the course.
  3. description: The description of the course.
  4. duration: The duration of the course.
  5. studentList: A many-to-many relationship that represents the list of students who are enrolled in the course.

Book

The Book model represents a book and includes the following fields:

  1. ID: The unique identifier for the book.
  2. title: The title of the book.
  3. author: The author of the book.
  4. description: The description of the book.
  5. price: The price of the book.
  6. student: A many-to-one relationship that represents the student who owns the book.

Address

The Address model is an embedded model that represents the address of a student and includes the following fields:

  1. landmark: The landmark of the address.
  2. zipcode: The zip code of the address.
  3. district: The district of the address.
  4. state: The state of the address.
  5. country: The country of the address.

Endpoints

The following endpoints are available for each model: Student Endpoints

  1. GET /get-all-students: Retrieves a list of all students.
  2. GET /get-students/{id}: Retrieves a specific student by ID.
  3. POST /add-students: Creates a new student.
  4. PUT /update-students/{id}: Updates an existing student by ID.
  5. DELETE /delete-students/{id}: Deletes a specific student by ID.

Laptop Endpoints

  1. GET /get-all-laptops: Retrieves a list of all laptops.
  2. GET /get-laptops/{id}: Retrieves a specific laptop by ID.
  3. POST /add-laptops: Creates a new laptop.
  4. PUT /update-laptops/{id}: Updates an existing laptop by ID.
  5. DELETE /delete-laptops/{id}: Deletes a specific laptop by ID.

Book Endpoints

  1. GET /get-all-books: Retrieves a list of all Book.
  2. GET /get-book/{id}: Retrieves a specific Book by ID.
  3. POST /add-Book: Creates a new Book.
  4. PUT /update-Book/{id}: Updates an existing Book by ID.
  5. DELETE /delete-book/{id}: Deletes a specific Book by ID.

Technologies

The following technologies were used in this project:

  • Spring Boot
  • Lombok
  • Maven
  • java
  • Mysql

all-mappings's People

Contributors

iamkaveer 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.