Skip to content

Commit 9e03aa8

Browse files
committed
swag fix
1 parent 3001bfb commit 9e03aa8

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

docs/docs.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,11 @@ const docTemplate = `{
399399
},
400400
"/vin-profile/{vin}": {
401401
"get": {
402+
"security": [
403+
{
404+
"BearerAuth": []
405+
}
406+
],
402407
"description": "gets VIN profile if we have it.",
403408
"produces": [
404409
"application/json"

docs/swagger.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,11 @@
390390
},
391391
"/vin-profile/{vin}": {
392392
"get": {
393+
"security": [
394+
{
395+
"BearerAuth": []
396+
}
397+
],
393398
"description": "gets VIN profile if we have it.",
394399
"produces": [
395400
"application/json"

docs/swagger.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ paths:
445445
description: Not Found
446446
"500":
447447
description: Internal Server Error
448+
security:
449+
- BearerAuth: []
448450
summary: gets any raw profile info we have on previously decoded VINs. USA Only.
449451
tags:
450452
- device-definitions

internal/api/handlers/device_definition_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func GetDeviceDefinitionByID(m mediator.Mediator) fiber.Handler {
106106
// @Failure 404
107107
// @Failure 400
108108
// @Failure 500
109+
// @Security BearerAuth
109110
// @Router /vin-profile/{vin} [get]
110111
func VINProfile(m mediator.Mediator) fiber.Handler {
111112
return func(c *fiber.Ctx) error {

0 commit comments

Comments
 (0)