Perbaikan Lanjutan

This commit is contained in:
2025-09-01 15:01:30 +07:00
parent c154f96621
commit 980f890a41
27 changed files with 3668 additions and 687 deletions

View File

@@ -699,6 +699,246 @@ const docTemplate = `{
}
}
}
},
"/peserta/:nokartu": {
"get": {
"responses": {
"200": {
"description": "Successfully retrieved PesertaBynokartu data",
"schema": {
"$ref": "#/definitions/peserta.PesertaResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - PesertaBynokartu not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/peserta/nik/:nik": {
"get": {
"responses": {
"200": {
"description": "Successfully retrieved PesertaBynik data",
"schema": {
"$ref": "#/definitions/peserta.PesertaResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - PesertaBynik not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/sep": {
"post": {
"parameters": [
{
"type": "string",
"description": "Request ID for tracking",
"name": "X-Request-ID",
"in": "header"
},
{
"description": "SepSep data",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/sep.SepRequest"
}
}
],
"responses": {
"201": {
"description": "Successfully created SepSep",
"schema": {
"$ref": "#/definitions/sep.SepResponse"
}
},
"400": {
"description": "Bad request - invalid request body or validation error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"409": {
"description": "Conflict - SepSep already exists",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/sep/:nosep": {
"get": {
"responses": {
"200": {
"description": "Successfully retrieved SepSep data",
"schema": {
"$ref": "#/definitions/sep.SepResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - SepSep not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
},
"put": {
"parameters": [
{
"description": "SepSep data",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/sep.SepRequest"
}
}
],
"responses": {
"200": {
"description": "Successfully updated SepSep",
"schema": {
"$ref": "#/definitions/sep.SepResponse"
}
},
"400": {
"description": "Bad request - invalid parameters or request body",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - SepSep not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "Successfully deleted SepSep",
"schema": {
"$ref": "#/definitions/sep.SepResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - SepSep not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
}
},
"definitions": {
@@ -760,6 +1000,27 @@ const docTemplate = `{
}
}
},
"api-service_internal_models.ErrorResponseBpjs": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"errors": {
"type": "object",
"additionalProperties": true
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"api-service_internal_models.MetaResponse": {
"type": "object",
"properties": {
@@ -1127,6 +1388,281 @@ const docTemplate = `{
}
}
},
"peserta.PesertaData": {
"type": "object",
"properties": {
"aktif": {
"type": "string"
},
"asuransi": {
"type": "string"
},
"cob": {
"type": "string"
},
"kdCabang": {
"type": "string"
},
"kdJnsPst": {
"type": "string"
},
"ketAktif": {
"type": "string"
},
"klsRawat": {
"type": "string"
},
"mr": {
"type": "object",
"properties": {
"nmMR": {
"type": "string"
},
"noMR": {
"type": "string"
},
"sex": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglMeninggal": {
"type": "string"
}
}
},
"nama": {
"type": "string"
},
"nik": {
"type": "string"
},
"nmCabang": {
"type": "string"
},
"nmJnsPst": {
"type": "string"
},
"noKartu": {
"type": "string"
},
"noKtp": {
"type": "string"
},
"noSKTM": {
"type": "string"
},
"pisa": {
"type": "string"
},
"sex": {
"type": "string"
},
"statusPeserta": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglTAT": {
"type": "string"
},
"tglTMT": {
"type": "string"
},
"tglTunggak": {
"type": "string"
}
}
},
"peserta.PesertaResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/peserta.PesertaData"
},
"message": {
"type": "string"
},
"metaData": {},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"sep.SepData": {
"type": "object",
"properties": {
"catatan": {
"type": "string"
},
"diagnosa": {
"type": "string"
},
"informasi": {
"type": "object",
"properties": {
"dpjpLayan": {
"type": "string"
},
"noSKDP": {
"type": "string"
},
"noTelp": {
"type": "string"
},
"subSpesialis": {
"type": "string"
}
}
},
"jnsPelayanan": {
"type": "string"
},
"klsRawat": {
"type": "string"
},
"noMR": {
"type": "string"
},
"noSep": {
"type": "string"
},
"peserta": {
"$ref": "#/definitions/peserta.PesertaData"
},
"poli": {
"type": "string"
},
"rujukan": {
"$ref": "#/definitions/sep.SepRujukan"
},
"tglSep": {
"type": "string"
}
}
},
"sep.SepRequest": {
"type": "object",
"required": [
"diagnosa",
"jnsPelayanan",
"klsRawat",
"noKartu",
"noMR",
"poli",
"ppkPelayanan",
"tglSep",
"user"
],
"properties": {
"catatan": {
"type": "string"
},
"diagnosa": {
"type": "string"
},
"jnsPelayanan": {
"type": "string",
"enum": [
"1",
"2"
]
},
"klsRawat": {
"type": "string",
"enum": [
"1",
"2",
"3"
]
},
"noKartu": {
"type": "string"
},
"noMR": {
"type": "string"
},
"noTelp": {
"type": "string"
},
"poli": {
"type": "string"
},
"ppkPelayanan": {
"type": "string"
},
"request_id": {
"type": "string"
},
"rujukan": {
"$ref": "#/definitions/sep.SepRujukan"
},
"tglSep": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"user": {
"type": "string"
}
}
},
"sep.SepResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/sep.SepData"
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"sep.SepRujukan": {
"type": "object",
"required": [
"asalRujukan",
"noRujukan",
"ppkRujukan",
"tglRujukan"
],
"properties": {
"asalRujukan": {
"type": "string",
"enum": [
"1",
"2"
]
},
"noRujukan": {
"type": "string"
},
"ppkRujukan": {
"type": "string"
},
"tglRujukan": {
"type": "string"
}
}
},
"sql.NullString": {
"type": "object",
"properties": {

View File

@@ -696,6 +696,246 @@
}
}
}
},
"/peserta/:nokartu": {
"get": {
"responses": {
"200": {
"description": "Successfully retrieved PesertaBynokartu data",
"schema": {
"$ref": "#/definitions/peserta.PesertaResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - PesertaBynokartu not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/peserta/nik/:nik": {
"get": {
"responses": {
"200": {
"description": "Successfully retrieved PesertaBynik data",
"schema": {
"$ref": "#/definitions/peserta.PesertaResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - PesertaBynik not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/sep": {
"post": {
"parameters": [
{
"type": "string",
"description": "Request ID for tracking",
"name": "X-Request-ID",
"in": "header"
},
{
"description": "SepSep data",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/sep.SepRequest"
}
}
],
"responses": {
"201": {
"description": "Successfully created SepSep",
"schema": {
"$ref": "#/definitions/sep.SepResponse"
}
},
"400": {
"description": "Bad request - invalid request body or validation error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"409": {
"description": "Conflict - SepSep already exists",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/sep/:nosep": {
"get": {
"responses": {
"200": {
"description": "Successfully retrieved SepSep data",
"schema": {
"$ref": "#/definitions/sep.SepResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - SepSep not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
},
"put": {
"parameters": [
{
"description": "SepSep data",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/sep.SepRequest"
}
}
],
"responses": {
"200": {
"description": "Successfully updated SepSep",
"schema": {
"$ref": "#/definitions/sep.SepResponse"
}
},
"400": {
"description": "Bad request - invalid parameters or request body",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - SepSep not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "Successfully deleted SepSep",
"schema": {
"$ref": "#/definitions/sep.SepResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - SepSep not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
}
},
"definitions": {
@@ -757,6 +997,27 @@
}
}
},
"api-service_internal_models.ErrorResponseBpjs": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"errors": {
"type": "object",
"additionalProperties": true
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"api-service_internal_models.MetaResponse": {
"type": "object",
"properties": {
@@ -1124,6 +1385,281 @@
}
}
},
"peserta.PesertaData": {
"type": "object",
"properties": {
"aktif": {
"type": "string"
},
"asuransi": {
"type": "string"
},
"cob": {
"type": "string"
},
"kdCabang": {
"type": "string"
},
"kdJnsPst": {
"type": "string"
},
"ketAktif": {
"type": "string"
},
"klsRawat": {
"type": "string"
},
"mr": {
"type": "object",
"properties": {
"nmMR": {
"type": "string"
},
"noMR": {
"type": "string"
},
"sex": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglMeninggal": {
"type": "string"
}
}
},
"nama": {
"type": "string"
},
"nik": {
"type": "string"
},
"nmCabang": {
"type": "string"
},
"nmJnsPst": {
"type": "string"
},
"noKartu": {
"type": "string"
},
"noKtp": {
"type": "string"
},
"noSKTM": {
"type": "string"
},
"pisa": {
"type": "string"
},
"sex": {
"type": "string"
},
"statusPeserta": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglTAT": {
"type": "string"
},
"tglTMT": {
"type": "string"
},
"tglTunggak": {
"type": "string"
}
}
},
"peserta.PesertaResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/peserta.PesertaData"
},
"message": {
"type": "string"
},
"metaData": {},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"sep.SepData": {
"type": "object",
"properties": {
"catatan": {
"type": "string"
},
"diagnosa": {
"type": "string"
},
"informasi": {
"type": "object",
"properties": {
"dpjpLayan": {
"type": "string"
},
"noSKDP": {
"type": "string"
},
"noTelp": {
"type": "string"
},
"subSpesialis": {
"type": "string"
}
}
},
"jnsPelayanan": {
"type": "string"
},
"klsRawat": {
"type": "string"
},
"noMR": {
"type": "string"
},
"noSep": {
"type": "string"
},
"peserta": {
"$ref": "#/definitions/peserta.PesertaData"
},
"poli": {
"type": "string"
},
"rujukan": {
"$ref": "#/definitions/sep.SepRujukan"
},
"tglSep": {
"type": "string"
}
}
},
"sep.SepRequest": {
"type": "object",
"required": [
"diagnosa",
"jnsPelayanan",
"klsRawat",
"noKartu",
"noMR",
"poli",
"ppkPelayanan",
"tglSep",
"user"
],
"properties": {
"catatan": {
"type": "string"
},
"diagnosa": {
"type": "string"
},
"jnsPelayanan": {
"type": "string",
"enum": [
"1",
"2"
]
},
"klsRawat": {
"type": "string",
"enum": [
"1",
"2",
"3"
]
},
"noKartu": {
"type": "string"
},
"noMR": {
"type": "string"
},
"noTelp": {
"type": "string"
},
"poli": {
"type": "string"
},
"ppkPelayanan": {
"type": "string"
},
"request_id": {
"type": "string"
},
"rujukan": {
"$ref": "#/definitions/sep.SepRujukan"
},
"tglSep": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"user": {
"type": "string"
}
}
},
"sep.SepResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/sep.SepData"
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"sep.SepRujukan": {
"type": "object",
"required": [
"asalRujukan",
"noRujukan",
"ppkRujukan",
"tglRujukan"
],
"properties": {
"asalRujukan": {
"type": "string",
"enum": [
"1",
"2"
]
},
"noRujukan": {
"type": "string"
},
"ppkRujukan": {
"type": "string"
},
"tglRujukan": {
"type": "string"
}
}
},
"sql.NullString": {
"type": "object",
"properties": {

View File

@@ -38,6 +38,20 @@ definitions:
timestamp:
type: string
type: object
api-service_internal_models.ErrorResponseBpjs:
properties:
code:
type: string
errors:
additionalProperties: true
type: object
message:
type: string
request_id:
type: string
status:
type: string
type: object
api-service_internal_models.MetaResponse:
properties:
current_page:
@@ -292,6 +306,192 @@ definitions:
message:
type: string
type: object
peserta.PesertaData:
properties:
aktif:
type: string
asuransi:
type: string
cob:
type: string
kdCabang:
type: string
kdJnsPst:
type: string
ketAktif:
type: string
klsRawat:
type: string
mr:
properties:
nmMR:
type: string
noMR:
type: string
sex:
type: string
tglLahir:
type: string
tglMeninggal:
type: string
type: object
nama:
type: string
nik:
type: string
nmCabang:
type: string
nmJnsPst:
type: string
noKartu:
type: string
noKtp:
type: string
noSKTM:
type: string
pisa:
type: string
sex:
type: string
statusPeserta:
type: string
tglLahir:
type: string
tglTAT:
type: string
tglTMT:
type: string
tglTunggak:
type: string
type: object
peserta.PesertaResponse:
properties:
data:
$ref: '#/definitions/peserta.PesertaData'
message:
type: string
metaData: {}
request_id:
type: string
status:
type: string
timestamp:
type: string
type: object
sep.SepData:
properties:
catatan:
type: string
diagnosa:
type: string
informasi:
properties:
dpjpLayan:
type: string
noSKDP:
type: string
noTelp:
type: string
subSpesialis:
type: string
type: object
jnsPelayanan:
type: string
klsRawat:
type: string
noMR:
type: string
noSep:
type: string
peserta:
$ref: '#/definitions/peserta.PesertaData'
poli:
type: string
rujukan:
$ref: '#/definitions/sep.SepRujukan'
tglSep:
type: string
type: object
sep.SepRequest:
properties:
catatan:
type: string
diagnosa:
type: string
jnsPelayanan:
enum:
- "1"
- "2"
type: string
klsRawat:
enum:
- "1"
- "2"
- "3"
type: string
noKartu:
type: string
noMR:
type: string
noTelp:
type: string
poli:
type: string
ppkPelayanan:
type: string
request_id:
type: string
rujukan:
$ref: '#/definitions/sep.SepRujukan'
tglSep:
type: string
timestamp:
type: string
user:
type: string
required:
- diagnosa
- jnsPelayanan
- klsRawat
- noKartu
- noMR
- poli
- ppkPelayanan
- tglSep
- user
type: object
sep.SepResponse:
properties:
data:
$ref: '#/definitions/sep.SepData'
message:
type: string
request_id:
type: string
status:
type: string
timestamp:
type: string
type: object
sep.SepRujukan:
properties:
asalRujukan:
enum:
- "1"
- "2"
type: string
noRujukan:
type: string
ppkRujukan:
type: string
tglRujukan:
type: string
required:
- asalRujukan
- noRujukan
- ppkRujukan
- tglRujukan
type: object
sql.NullString:
properties:
string:
@@ -767,6 +967,160 @@ paths:
summary: Generate token directly
tags:
- Token
/peserta/:nokartu:
get:
responses:
"200":
description: Successfully retrieved PesertaBynokartu data
schema:
$ref: '#/definitions/peserta.PesertaResponse'
"400":
description: Bad request - invalid parameters
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"401":
description: Unauthorized - invalid API credentials
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"404":
description: Not found - PesertaBynokartu not found
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"500":
description: Internal server error
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
/peserta/nik/:nik:
get:
responses:
"200":
description: Successfully retrieved PesertaBynik data
schema:
$ref: '#/definitions/peserta.PesertaResponse'
"400":
description: Bad request - invalid parameters
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"401":
description: Unauthorized - invalid API credentials
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"404":
description: Not found - PesertaBynik not found
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"500":
description: Internal server error
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
/sep:
post:
parameters:
- description: Request ID for tracking
in: header
name: X-Request-ID
type: string
- description: SepSep data
in: body
name: request
required: true
schema:
$ref: '#/definitions/sep.SepRequest'
responses:
"201":
description: Successfully created SepSep
schema:
$ref: '#/definitions/sep.SepResponse'
"400":
description: Bad request - invalid request body or validation error
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"401":
description: Unauthorized - invalid API credentials
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"409":
description: Conflict - SepSep already exists
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"500":
description: Internal server error
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
/sep/:nosep:
delete:
responses:
"200":
description: Successfully deleted SepSep
schema:
$ref: '#/definitions/sep.SepResponse'
"400":
description: Bad request - invalid parameters
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"401":
description: Unauthorized - invalid API credentials
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"404":
description: Not found - SepSep not found
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"500":
description: Internal server error
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
get:
responses:
"200":
description: Successfully retrieved SepSep data
schema:
$ref: '#/definitions/sep.SepResponse'
"400":
description: Bad request - invalid parameters
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"401":
description: Unauthorized - invalid API credentials
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"404":
description: Not found - SepSep not found
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"500":
description: Internal server error
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
put:
parameters:
- description: SepSep data
in: body
name: request
required: true
schema:
$ref: '#/definitions/sep.SepRequest'
responses:
"200":
description: Successfully updated SepSep
schema:
$ref: '#/definitions/sep.SepResponse'
"400":
description: Bad request - invalid parameters or request body
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"401":
description: Unauthorized - invalid API credentials
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"404":
description: Not found - SepSep not found
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
"500":
description: Internal server error
schema:
$ref: '#/definitions/api-service_internal_models.ErrorResponseBpjs'
schemes:
- http
- https