Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/test pr #4

Open
wants to merge 77 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
15a8bd9
added openapi.json
airoasis Aug 31, 2021
97fe8dc
Postman updated Wallet Manager 1.0.0
Aug 31, 2021
9acb30b
modified
airoasis Aug 31, 2021
1c21e03
mod
airoasis Aug 31, 2021
29adcec
again
airoasis Aug 31, 2021
dd0470f
Postman updated Wallet Manager 1.0.0
Aug 31, 2021
45e07ad
openapi
airoasis Aug 31, 2021
e230f5d
openapi again
airoasis Aug 31, 2021
57e220d
Postman updated Wallet Manager 1.0.0
Aug 31, 2021
2e3fdb9
test
airoasis Aug 31, 2021
6d6b149
Create go.yml
airoasis Sep 6, 2021
f7d1304
Merge branch 'main' of github.com:sktston/go-rest-project into main
airoasis Sep 6, 2021
60e067a
Update go.yml
airoasis Sep 6, 2021
99ea34d
Update go.yml
airoasis Sep 6, 2021
28a8768
Update go.yml
airoasis Sep 6, 2021
3a16ec2
Update go.yml
airoasis Sep 6, 2021
38af50f
Update go.yml
airoasis Sep 6, 2021
5f973d3
Update go.yml
airoasis Sep 6, 2021
5182004
Update go.yml
airoasis Sep 6, 2021
09a2439
Update go.yml
airoasis Sep 6, 2021
1815102
Update go.yml
airoasis Sep 6, 2021
36cc042
Update go.yml
airoasis Sep 6, 2021
572bd2d
Update go.yml
airoasis Sep 6, 2021
fb3028f
Update go.yml
airoasis Sep 6, 2021
53a5a72
Update go.yml
airoasis Sep 6, 2021
224b0e3
Update go.yml
airoasis Sep 6, 2021
598df98
Update go.yml
airoasis Sep 6, 2021
8b6eb60
Update go.yml
airoasis Sep 6, 2021
6a931a6
Update go.yml
airoasis Sep 6, 2021
0c0660a
Update go.yml
airoasis Sep 6, 2021
1756cf9
Update go.yml
airoasis Sep 6, 2021
7ec92dd
Update go.yml
airoasis Sep 6, 2021
d75c240
Merge branch 'sktston:main' into main
airoasis Sep 7, 2021
89eae86
Update go.yml
airoasis Sep 7, 2021
5661ff8
Update go.yml
airoasis Sep 7, 2021
a6c4284
Update go.yml
airoasis Sep 7, 2021
11da60b
Update go.yml
airoasis Sep 7, 2021
5e95185
Update go.yml
airoasis Sep 7, 2021
f33abea
Update go.yml
airoasis Sep 7, 2021
33cfcb1
Update go.yml
airoasis Sep 7, 2021
45cbece
Update go.yml
airoasis Sep 7, 2021
2242adc
Update go.yml
airoasis Sep 7, 2021
b5318ea
Update go.yml
airoasis Sep 7, 2021
d3efefb
Update go.yml
airoasis Sep 7, 2021
4d8823e
Update go.yml
airoasis Sep 7, 2021
d9a61b9
Update go.yml
airoasis Sep 7, 2021
ba7a93f
Update go.yml
airoasis Sep 7, 2021
e86c84c
Update go.yml
airoasis Sep 7, 2021
c6a1635
Update go.yml
airoasis Sep 7, 2021
45db943
Update go.yml
airoasis Sep 7, 2021
e81c382
Update go.yml
airoasis Sep 7, 2021
a1fa4b6
Update go.yml
airoasis Sep 7, 2021
7ae75e4
Update go.yml
airoasis Sep 7, 2021
446b21f
Update go.yml
airoasis Sep 7, 2021
df2bf92
Update go.yml
airoasis Sep 7, 2021
3efa8da
Update go.yml
airoasis Sep 7, 2021
609a4c0
Update go.yml
airoasis Sep 7, 2021
e74e0ee
Update go.yml
airoasis Sep 8, 2021
cfd9e73
Update go.yml
airoasis Sep 8, 2021
079387f
Update go.yml
airoasis Sep 8, 2021
e1f4270
Update go.yml
airoasis Sep 8, 2021
e953484
Update go.yml
airoasis Sep 8, 2021
b9465f7
Update go.yml
airoasis Sep 8, 2021
29ed77c
Update go.yml
airoasis Sep 10, 2021
283d20b
Update go.yml
airoasis Sep 10, 2021
99df8d7
test
airoasis Sep 10, 2021
5e989f7
test2
airoasis Sep 10, 2021
f3f55ef
test again
airoasis Sep 10, 2021
1f69bd7
test another linter
airoasis Sep 10, 2021
678ae36
asdf
airoasis Sep 10, 2021
9c2a714
test
airoasis Sep 10, 2021
19f320f
again
airoasis Sep 10, 2021
732b908
remove
airoasis Sep 10, 2021
44a3414
again
airoasis Sep 10, 2021
93b64dd
aaa
airoasis Sep 10, 2021
3509515
ggg
airoasis Sep 10, 2021
632d15e
use the reviewdog
airoasis Sep 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Pull Request Checks

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04

steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Build
id: go-build
run: |
wget https://github.com/swaggo/swag/releases/download/v1.7.1/swag_linux_amd64.tar.gz -O - | tar -xz -C /tmp && cp /tmp/swag_linux_amd64/swag /usr/local/bin
make build

golangci-lint:
runs-on: ubuntu-20.04

steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
go_version: 1.16
filter_mode: nofilter

# - name: Set up Go
# uses: actions/setup-go@v2
# with:
# go-version: 1.16
#
# - name: Build
# id: generate-swaager-docs
# run: |
# wget https://github.com/swaggo/swag/releases/download/v1.7.1/swag_linux_amd64.tar.gz -O - | tar -xz -C /tmp && cp /tmp/swag_linux_amd64/swag /usr/local/bin
# make build
217 changes: 217 additions & 0 deletions docs/openapi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
{
"openapi": "3.0.1",
"info": {
"contact": {},
"title": "mobile wallet",
"version": "1.0.0"
},
"servers": [
{
"url": "/"
}
],
"paths": {
"/books": {
"get": {
"tags": [
"books"
],
"summary": "Get books",
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/model.BookResponseDTO"
}
}
}
}
}
}
},
"post": {
"tags": [
"books"
],
"summary": "Create Book",
"requestBody": {
"description": "body",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/model.BookRequestDTO"
}
}
},
"required": false
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/model.BookResponseDTO"
}
}
}
}
},
"x-codegen-request-body-name": "body"
}
},
"/books/{id}": {
"get": {
"tags": [
"books"
],
"summary": "Get the book by id",
"parameters": [
{
"name": "id",
"in": "path",
"description": "id",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/model.BookResponseDTO"
}
}
}
}
}
},
"put": {
"tags": [
"books"
],
"summary": "Update the book information",
"parameters": [
{
"name": "id",
"in": "path",
"description": "id",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"description": "body",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/model.BookRequestDTO"
}
}
},
"required": false
},
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/model.BookResponseDTO"
}
}
}
}
},
"x-codegen-request-body-name": "body"
},
"delete": {
"tags": [
"books"
],
"summary": "Delete the book",
"parameters": [
{
"name": "id",
"in": "path",
"description": "id",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {}
}
}
}
}
},
"components": {
"schemas": {
"model.BookRequestDTO": {
"required": [
"author",
"publisher",
"title"
],
"type": "object",
"properties": {
"author": {
"type": "string",
"description": "book author",
"example": "David Wiesner"
},
"publisher": {
"type": "string",
"description": "book publisher",
"example": "Clarion Books"
},
"title": {
"type": "string",
"description": "book title",
"example": "The Three Pigs"
}
}
},
"model.BookResponseDTO": {
"type": "object",
"properties": {
"author": {
"type": "string",
"description": "book author",
"example": "David Wiesner"
},
"id": {
"type": "integer",
"description": "book id",
"example": 1234
},
"publisher": {
"type": "string",
"description": "book publisher",
"example": "Clarion Books"
},
"title": {
"type": "string",
"description": "book title",
"example": "The Three Pigs"
}
}
}
}
}
}