Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kapit4n/mockupero-go
restfull api, golang, gorm
https://github.com/kapit4n/mockupero-go
gin golang gorm graphql rest rest-api
Last synced: about 4 hours ago
JSON representation
restfull api, golang, gorm
- Host: GitHub
- URL: https://github.com/kapit4n/mockupero-go
- Owner: kapit4n
- Created: 2019-06-21T17:00:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T02:43:55.000Z (over 1 year ago)
- Last Synced: 2023-08-01T11:10:16.708Z (over 1 year ago)
- Topics: gin, golang, gorm, graphql, rest, rest-api
- Language: Go
- Homepage:
- Size: 18 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Server
Simple Rest API using gin(framework) & gorm(orm)
https://github.com/wantedly/apig## Start it
- go build main.go
- ./main
- ./main AUTOMIGRATE## Endpoint list
### Features Resource
```
GET /features
GET /features/:id
POST /features
PUT /features/:id
DELETE /features/:id
```### Mockups Resource
```
GET /mockups
GET /mockups/:id
POST /mockups
PUT /mockups/:id
DELETE /mockups/:id
```### Projects Resource
```
GET /projects
GET /projects/:id
POST /projects
PUT /projects/:id
DELETE /projects/:id
```### Users Resource
```
GET /users
GET /users/:id
POST /users
PUT /users/:id
DELETE /users/:id
```server runs at http://localhost:8080
### TOOLS
curl --header "Content-Type: application/json" \
--request POST \
--data '{"name":"Luis","username":"larce", "email": "email", "password": "password123"}' \
http://localhost:8080/users