- Golang Practice
- Functions
-
CreateOwnerProduct // Create a product by entering POST
{ "name": "Cauliflower", "price": 12.00, "instock": true, "quantity": 4 }
-
GetProducts // Get all products by issueing a get request to the endpoint GET
-
GetProduct // Get one product by issueing a get request to the endpoint GET
-
DeleteProduct // Delete a product by issueing a Delete request to the endpoint DELETE
-
UpdateProduct // Update a product info by issueing a Put request to the endpoint PUT
{ "name": "Appless", "price": 10.50, "instock": true, "quantity": 12 }
-
CreateUser // Create a user POST
{ "username": "username", "phone": "0594212599", "email": "e2e7w@gmail.com", "password": "password", "first_name": "Fiden", "user_type":"USER" // or ADMIN }
-
GetUser // Get a user by issueing a get request to the endpoint GET
-
LoginHandler // Login by issueing a POST request to the endpoint POST
{ "username":"username", "password":"password" }
- An expense tracker API
- Medium clone API