Skip to content

A service that allows you to create a delivery order from point A to point B

License

Notifications You must be signed in to change notification settings

P1ecful/ApplyToCourier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Restful API ApplyToCourier

Features

The following functions are a set for creating this web APIs:

Start Application

  • Clone this repository
  • Create a postgres database. See table code here.
  • Change Data in config/local.env
  • Run the application: go run main.go

API Routes

Path Method Request Desription
/create POST { "Creator Id": 0, "Item category": "", "Item weight": "", "First Address Phone": "", "Second Address Phone": "", "First Address": { "Street": "", "Home": 0, "Housing": 0, "Entrance": 0,"Floor": 0, "Flat": 0, "Intercom Code": ""}, "Second Address": { "Street": "", "Home": 0, "Housing": 0, "Entrance": 0, "Floor": 0, "Flat": 0, "Intercom Code": ""}} Create order in response you wil get ID of your order
/delete DELETE { "Order Id": 0 } Delete order by order ID
/get-by-creator GET { "Creator Id": 0 } Get order by Creator ID
/get-order GET { "Order Id": 768933 } Get order by order ID
In development...

About

A service that allows you to create a delivery order from point A to point B

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages