https://github.com/nitor-infotech-oss/go-crud-operations
Perform CRUD operations using GoLang & Gorilla Restful APIs
https://github.com/nitor-infotech-oss/go-crud-operations
Last synced: 7 months ago
JSON representation
Perform CRUD operations using GoLang & Gorilla Restful APIs
- Host: GitHub
- URL: https://github.com/nitor-infotech-oss/go-crud-operations
- Owner: nitor-infotech-oss
- Created: 2020-08-07T11:13:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-07T11:26:32.000Z (about 5 years ago)
- Last Synced: 2025-02-01T09:22:08.655Z (8 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RESTful API Example with golang
This is simple example restful api server only with **gorilla/mux**.
For simplifying code, this example uses a mock database that is `map[string]interface{}`## API Endpoint
- http://localhost:8089/api/v1/patient
- `GET`: get list of patients
- `POST`: create patient
- http://localhost:8089/api/v1/patient/{name}
- `GET`: get patient
- `PUT`: update patient
- `DELETE`: remove patient## Data Structure
```json
{
"name": "dattatray",
"tel": "7276246800",
"email": "dattatray.pawar@nitorinfotech.com"
}
```