Skip to content

Commit

Permalink
chore: mark v2 as deprecated (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer authored Dec 1, 2023
1 parent d7dcd75 commit c168c47
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3023,6 +3023,7 @@ const docTemplate = `{
"v2"
],
"summary": "v2 API",
"deprecated": true,
"responses": {
"200": {
"description": "OK",
Expand All @@ -3038,6 +3039,7 @@ const docTemplate = `{
"v2"
],
"summary": "Allowed HTTP verbs",
"deprecated": true,
"responses": {
"204": {
"description": "No Content"
Expand Down
2 changes: 2 additions & 0 deletions api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3012,6 +3012,7 @@
"v2"
],
"summary": "v2 API",
"deprecated": true,
"responses": {
"200": {
"description": "OK",
Expand All @@ -3027,6 +3028,7 @@
"v2"
],
"summary": "Allowed HTTP verbs",
"deprecated": true,
"responses": {
"204": {
"description": "No Content"
Expand Down
2 changes: 2 additions & 0 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3973,6 +3973,7 @@ paths:
- Transactions
/v2:
get:
deprecated: true
description: Returns general information about the v2 API
responses:
"200":
Expand All @@ -3983,6 +3984,7 @@ paths:
tags:
- v2
options:
deprecated: true
description: Returns an empty response with the HTTP Header "allow" set to the
allowed HTTP verbs
responses:
Expand Down
2 changes: 2 additions & 0 deletions pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ type V2Links struct {
// @Tags v2
// @Success 200 {object} V2Response
// @Router /v2 [get]
// @Deprecated true
func GetV2(c *gin.Context) {
c.JSON(http.StatusOK, V2Response{
Links: V2Links{
Expand All @@ -329,6 +330,7 @@ func GetV2(c *gin.Context) {
// @Tags v2
// @Success 204
// @Router /v2 [options]
// @Deprecated true
func OptionsV2(c *gin.Context) {
httputil.OptionsGet(c)
}
Expand Down

0 comments on commit c168c47

Please sign in to comment.