Skip to content

holykol/contacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contacts

Usage:

# Run
go run .

# Create
curl -d "name=Jane&phone=88005553535" -X POST http://localhost:8080/contacts
curl -d "name=Alice&phone=89992221122" -X POST http://localhost:8080/contacts

# Get all
curl http://localhost:8080/contacts

# Get contact by ID
curl http://localhost:8080/contact/1

# Edit
curl -X PATCH -d "name=Mary" http://localhost:8080/contact/1

# Delete
curl -X DELETE http://localhost:8080/contact/1

About

Contacts CRUD (test task)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages