REST API using golang fiber with React on frontend
https://tuxrace.github.io/golang-api-fiber/.
npm install
npm run start:dev
This will run both front end
and back end
Method | API |
---|---|
GET | /api/appliances |
GET | /api/appliances/1 |
POST | /api/appliances |
DELETE | /api/appliances/1 |
GET | /api/appliances-search?category=model&search=Tub |
CURL /api/v1/appliances
CURL -X POST -H /api/appliances --data "{\"serial_number\": \"1111\", \"brand\": \"Mayer\",
\"model\": \"Gas Range\"}" /api/v1/appliances
CURL /api/v1/appliances/1
CURL -X DELETE /api/v1/appliances/1