Skip to content

Commit 6d9b196

Browse files
authored
Update HTTP Response For Not Allowed Requests (#199)
* add type to handle response message Signed-off-by: Jordan Dubrick <[email protected]> * add put/post/delete endpoints and responses Signed-off-by: Jordan Dubrick <[email protected]> * add new endpoint handling for post/put/delete Signed-off-by: Jordan Dubrick <[email protected]> * add unit tests for new endpoint handlers Signed-off-by: Jordan Dubrick <[email protected]> * break down response into function Signed-off-by: Jordan Dubrick <[email protected]> * update codecoverage to exclude generated code Signed-off-by: Jordan Dubrick <[email protected]> --------- Signed-off-by: Jordan Dubrick <[email protected]>
1 parent 19c1c08 commit 6d9b196

File tree

7 files changed

+1911
-104
lines changed

7 files changed

+1911
-104
lines changed

.codecov.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ coverage:
4444
- "vendor/*"
4545
- "Makefile"
4646
- ".travis.yml"
47+
- "**/*.gen.go"
4748

4849
# See http://docs.codecov.io/docs/pull-request-comments-1
4950
comment:

index/server/docs/docs.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,13 @@ type HealthResponse struct {
152152
Message string `json:"message"`
153153
}
154154
}
155+
156+
// Method used is not supported.
157+
//
158+
// swagger:response methodNotAllowedResponse
159+
type MethodNotAllowedResponse struct {
160+
// in: body
161+
Payload struct {
162+
Message string `json:"message"`
163+
}
164+
}

0 commit comments

Comments
 (0)