This commit is contained in:
Narul Hidayah
2026-02-11 14:05:17 +07:00
parent 9102d5b097
commit c7a15bfe93

View File

@ -1,6 +1,5 @@
const swaggerAutogen = require('swagger-autogen')({ openapi: '3.0.0' });
const config = require('config');
const { Munisipo } = require('entity');
const doc = {
info: {
@ -118,6 +117,29 @@ const doc = {
$poli_id: "uuid-string",
$status: "Y"
},
serviceType: {
$name: "Registration & Tickets",
$status: { "@enum": ["Y", "N"] }
},
serviceClass: {
$name: "Class name"
},
service: {
$name: "e.g. ER Registration",
$service_type_id: "uuid-string",
$room_ids: ["uuid-string"]
},
serviceFare: {
$service_class_id: "uuid-string",
$service_id: "uuid-string",
$fare: 100000
},
servicePackage: {
$name: "Package name",
$service_class_id: "uuid-string",
$fare: 500000,
$service_ids: ["uuid-string"]
},
},
parameters: {