Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amulyakashyap09/go_crud
A very simple JSON CRUD API for User Management in GOLANG
https://github.com/amulyakashyap09/go_crud
crud golang golang-crud-examples golang-tutorials json
Last synced: 22 days ago
JSON representation
A very simple JSON CRUD API for User Management in GOLANG
- Host: GitHub
- URL: https://github.com/amulyakashyap09/go_crud
- Owner: amulyakashyap09
- License: mit
- Created: 2018-06-05T14:50:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-05T14:53:55.000Z (over 6 years ago)
- Last Synced: 2024-11-10T10:30:59.533Z (3 months ago)
- Topics: crud, golang, golang-crud-examples, golang-tutorials, json
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Very simple JSON CRUD | go_crud
> Beginners JSON CRUD API to create, read, update and delete users. JSON file used as DB
## Quick Start
``` bash
# Install mux router
go get -u github.com/gorilla/mux
`````` bash
go build
./go_crud
```## Endpoints
### Get All Users
``` bash
GET /v1/users
```
### Get Single User
``` bash
GET v1/users/{id}
```### Delete User
``` bash
DELETE v1/users/{id}
```### Create User
``` bash
POST v1/users# Request sample
# "username": "amulya1",
# "email": "[email protected]",
# "age": 26,
# "contact": {
# "mobile": "9559974779",
# "address": "Malad West, Mumbai, Maharashtra"
# }
```### Update User
``` bash
PUT v1/users/{id}# Request sample
# "id": "1",
# "username": "amulya1",
# "email": "[email protected]",
# "age": 26,
# "contact": {
# "mobile": "9559974779",
# "address": "Malad West, Mumbai, Maharashtra"
# }```
```
## Project Details
### Author
Amulya Kashyap
(github.com/amulyakashyap09)### Version
1.0.0
### License
This project is licensed under the MIT License