The project represents the backend of a customer relationship management (CRM) web application.
Repository link: https://github.com/elisaromondia/CRM-backend-GO
Open your favorite Terminal and run these commands:
Launch server:
go run .
Test:
go test
Swagger APIs docs, after launching the server it's possible to read the docs at:
https://elisaromondia.github.io/CRM-backend-GO/
or
Handler | functionality | method | path |
---|---|---|---|
getCustomers() | Getting a list of all customers | GET | /customers/{id} |
getCustomer() | Getting data for a single customer | GET | /customers/ |
addCustomer() | Adding a customer | POST | /customers/{id} |
updateCustomer() | Updating a customer's information | PUT | /customers/{id} |
deleteCustomer() | Removing a customer | DELETE | /customers/{id} |
field | type | example |
---|---|---|
Name | string | Eric |
Role | string | elite |
string | [email protected] | |
Phone | uint | 31463388 |
Contacted | boolean | false |
- New IDs are autogenerated using Google uuid
- One Test ID is stored as
test-9651-4a8c-9c9e-03a5849d94dd
Thanks goes to these wonderful people:
Elisa Romondia 💬 📖 |