Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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 1 month ago
JSON representation

restfull api, golang, gorm

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