Perbaikan Swagger dan ke DB Prod SIMRS
This commit is contained in:
+8
-8
@@ -24,7 +24,7 @@ const docTemplate = `{
|
||||
"host": "{{.Host}}",
|
||||
"basePath": "{{.BasePath}}",
|
||||
"paths": {
|
||||
"/api/v1/auth/login": {
|
||||
"/auth/login": {
|
||||
"post": {
|
||||
"description": "Authenticate user with username and password to receive JWT token",
|
||||
"consumes": [
|
||||
@@ -76,7 +76,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/auth/me": {
|
||||
"/auth/me": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
@@ -110,7 +110,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/auth/refresh": {
|
||||
"/auth/refresh": {
|
||||
"post": {
|
||||
"description": "Refresh the JWT token using a valid refresh token",
|
||||
"consumes": [
|
||||
@@ -165,7 +165,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/auth/register": {
|
||||
"/auth/register": {
|
||||
"post": {
|
||||
"description": "Register a new user account",
|
||||
"consumes": [
|
||||
@@ -214,7 +214,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/token/generate": {
|
||||
"/token/generate": {
|
||||
"post": {
|
||||
"description": "Generate a JWT token for a user",
|
||||
"consumes": [
|
||||
@@ -266,7 +266,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/token/generate-direct": {
|
||||
"/token/generate-direct": {
|
||||
"post": {
|
||||
"description": "Generate a JWT token directly without password verification (for testing)",
|
||||
"consumes": [
|
||||
@@ -312,7 +312,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/ws/broadcast/check": {
|
||||
"/ws/broadcast/check": {
|
||||
"post": {
|
||||
"description": "Creates and broadcasts a WebSocket message with the specified type and data",
|
||||
"consumes": [
|
||||
@@ -363,7 +363,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/ws/broadcast/qris": {
|
||||
"/ws/broadcast/qris": {
|
||||
"post": {
|
||||
"description": "Creates and broadcasts a WebSocket message with the specified type and data for QRIS operations",
|
||||
"consumes": [
|
||||
|
||||
+8
-8
@@ -22,7 +22,7 @@
|
||||
"host": "localhost:8080",
|
||||
"basePath": "/api/v1",
|
||||
"paths": {
|
||||
"/api/v1/auth/login": {
|
||||
"/auth/login": {
|
||||
"post": {
|
||||
"description": "Authenticate user with username and password to receive JWT token",
|
||||
"consumes": [
|
||||
@@ -74,7 +74,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/auth/me": {
|
||||
"/auth/me": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
@@ -108,7 +108,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/auth/refresh": {
|
||||
"/auth/refresh": {
|
||||
"post": {
|
||||
"description": "Refresh the JWT token using a valid refresh token",
|
||||
"consumes": [
|
||||
@@ -163,7 +163,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/auth/register": {
|
||||
"/auth/register": {
|
||||
"post": {
|
||||
"description": "Register a new user account",
|
||||
"consumes": [
|
||||
@@ -212,7 +212,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/token/generate": {
|
||||
"/token/generate": {
|
||||
"post": {
|
||||
"description": "Generate a JWT token for a user",
|
||||
"consumes": [
|
||||
@@ -264,7 +264,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/token/generate-direct": {
|
||||
"/token/generate-direct": {
|
||||
"post": {
|
||||
"description": "Generate a JWT token directly without password verification (for testing)",
|
||||
"consumes": [
|
||||
@@ -310,7 +310,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/ws/broadcast/check": {
|
||||
"/ws/broadcast/check": {
|
||||
"post": {
|
||||
"description": "Creates and broadcasts a WebSocket message with the specified type and data",
|
||||
"consumes": [
|
||||
@@ -361,7 +361,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/ws/broadcast/qris": {
|
||||
"/ws/broadcast/qris": {
|
||||
"post": {
|
||||
"description": "Creates and broadcasts a WebSocket message with the specified type and data for QRIS operations",
|
||||
"consumes": [
|
||||
|
||||
+8
-8
@@ -44,7 +44,7 @@ info:
|
||||
title: API Service
|
||||
version: 1.0.0
|
||||
paths:
|
||||
/api/v1/auth/login:
|
||||
/auth/login:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -78,7 +78,7 @@ paths:
|
||||
summary: Login user and get JWT token
|
||||
tags:
|
||||
- Authentication
|
||||
/api/v1/auth/me:
|
||||
/auth/me:
|
||||
get:
|
||||
description: Get information about the currently authenticated user
|
||||
produces:
|
||||
@@ -99,7 +99,7 @@ paths:
|
||||
summary: Get current user info
|
||||
tags:
|
||||
- Authentication
|
||||
/api/v1/auth/refresh:
|
||||
/auth/refresh:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -135,7 +135,7 @@ paths:
|
||||
summary: Refresh JWT token
|
||||
tags:
|
||||
- Authentication
|
||||
/api/v1/auth/register:
|
||||
/auth/register:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -167,7 +167,7 @@ paths:
|
||||
summary: Register new user
|
||||
tags:
|
||||
- Authentication
|
||||
/api/v1/token/generate:
|
||||
/token/generate:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -201,7 +201,7 @@ paths:
|
||||
summary: Generate JWT token
|
||||
tags:
|
||||
- Token
|
||||
/api/v1/token/generate-direct:
|
||||
/token/generate-direct:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -232,7 +232,7 @@ paths:
|
||||
summary: Generate token directly
|
||||
tags:
|
||||
- Token
|
||||
/api/v1/ws/broadcast/check:
|
||||
/ws/broadcast/check:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -267,7 +267,7 @@ paths:
|
||||
summary: Broadcast a WebSocket message
|
||||
tags:
|
||||
- WebSocket QRIS
|
||||
/api/v1/ws/broadcast/qris:
|
||||
/ws/broadcast/qris:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
|
||||
Reference in New Issue
Block a user