This is a basic CRM system API built with Go-Fiber
type Lead struct {
gorm.Model
Name string `json:"name"`
Company string `json:"company"`
Email string `json:"email"`
Phone int `json:"phone"`
}
GET |
POST | PUT | DELETE |
---|---|---|---|
"api/v1/lead" * Get all leads |
"api/v1/lead" * Create a lead |
"api/v1/lead/:id" * Update a lead |
"api/v1/lead/:id" * Delete a lead |
"api/v1/lead:id" * Get a lead by id |