Skip to content

This is a Basically a simple API of Garage car management system with the simple CURD opertion to update database when car enter,repair,and exist from the garage.

Khushalpatel499/GoFr_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoFr_API

A Car Garage Management System with CRUD opertion with go language using MongoDB altas to store database and
use Thunder for testing json query for api to add detail of car in garage.

Installation

1.Clone the repository  
    git clone https://github.com/Khushalpatel499/GoFr_API.git
2.Navigate to the directory
3.cd GoFr_API
4.Build and run 

Run

 1.Use Gorilla mux for routing system:     
      go get -u github.com/gorilla/mux  
 2.work with mongo driver to add database:        
      go get go.mongodb.org/mongo-driver/mongo
 3.Build the files:
      go build .
 4.Run the server:
     go run main.go

API

Trying out API by thunder client in VsCode same as Postman:
 1.localhost:5000/api/cars :   
       GET : Get all car detail   
 2./api/car:   
       POST : Enter a new car detail   
 3./api/cars/id:   
       PUT : Update a car detail  
 4./api/cars/id:   
       DELETE: delete a car detail   
 5./api/cars/deleteallcars:
       DELETE : delete all cars   

Description:

 1.Reterive List of cars:

image

 2.Add new car to garage:

image

 3.Update a car:

image

 4.Delete a car detail:

image

DIAGRAM:

 1.File Representation in diagram :

image

 2.Internal Router request in diagram:

image

    3.FlowChart:

image

   4.Sequence diagram:

image

About

This is a Basically a simple API of Garage car management system with the simple CURD opertion to update database when car enter,repair,and exist from the garage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages