Skip to content

Commit

Permalink
feat (SRS-06) : update docs swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
PickHD committed May 8, 2023
1 parent 63ebd14 commit 68ec32d
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
49 changes: 49 additions & 0 deletions shortener/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions shortener/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,55 @@
}
}
}
},
"/{short_url}": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Shortener"
],
"summary": "Click Shorteners URL",
"parameters": [
{
"type": "string",
"description": "short urls",
"name": "short_url",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/helper.BaseResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/helper.BaseResponse"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/helper.BaseResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/helper.BaseResponse"
}
}
}
}
}
},
"definitions": {
Expand Down
32 changes: 32 additions & 0 deletions shortener/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,38 @@ info:
title: Singkatin Revamp API
version: "1.0"
paths:
/{short_url}:
get:
consumes:
- application/json
parameters:
- description: short urls
in: path
name: short_url
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/helper.BaseResponse'
"400":
description: Bad Request
schema:
$ref: '#/definitions/helper.BaseResponse'
"404":
description: Not Found
schema:
$ref: '#/definitions/helper.BaseResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/helper.BaseResponse'
summary: Click Shorteners URL
tags:
- Shortener
/health-check:
get:
consumes:
Expand Down

0 comments on commit 68ec32d

Please sign in to comment.