An open API service indexing awesome lists of open source software.

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

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"
}
```