Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

  1. Install go:
https://golang.org/dl/
  1. Clone this repository:
git clone https://github.com/TimeReapz/national-itmx.git
  1. Run script for create database:
sh script.sh
  1. Run main.go:
go run main.go

Example curl command

Create a new customer

curl -X POST -H "Content-Type: application/json" -d '{"name": "Robert Downey Jr", "age": 40}' http://localhost:8080/customers

Get a customer

curl -X GET http://localhost:8080/customers/1

Update a customer

curl -X PUT -H "Content-Type: application/json" -d '{"name": "Robert Downey Jr", "age": 40}' http://localhost:8080/customers/1

Delete a customer

curl -X DELETE http://localhost:8080/customers/1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址