JSONSchema Perbaikan MMEA
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "Schema Perbaikan MMEA",
"description": "JSON Schema untuk Perbaikan MMEA.",
"properties": {
"idCk4": {
"type": "string",
"format": "uuid",
"description": "ID CK4."
},
"nomorPemberitahuan": {
"type": "string",
"description": "Nomor pemberitahuan."
},
"totalJumlahKemasan": {
"type": "integer",
"description": "Total jumlah kemasan."
},
"totalJumlahProduksi": {
"type": "integer",
"description": "Total jumlah produksi."
},
"nomorSurat": {
"type": "string",
"description": "Nomor surat."
},
"tanggalSurat": {
"type": "string",
"format": "date",
"description": "Tanggal surat."
},
"details": {
"type": "array",
"description": "Data detail produksi.",
"items": {
"type": "object",
"properties": {
"idCk4Detail": {
"type": "string",
"format": "uuid",
"description": "ID detail CK4."
},
"idMerkMmea": {
"type": "string",
"format": "uuid",
"description": "ID merk MMEA."
},
"isi": {
"type": "integer",
"description": "Isi per kemasan."
},
"jenisKemasan": {
"type": "string",
"description": "Jenis kemasan."
},
"jumlahKemasan": {
"type": "integer",
"description": "Jumlah kemasan."
},
"jumlahKemasanDilekatiPita": {
"type": "integer",
"description": "Jumlah kemasan yang dilekati pita."
},
"jumlahProduksi": {
"type": "integer",
"description": "Jumlah produksi."
},
"kadar": {
"type": "number",
"description": "Kadar."
},
"merkMmea": {
"type": "string",
"description": "Nama merk MMEA."
},
"nomorProduksi": {
"type": "string",
"description": "Nomor produksi."
},
"tanggalProduksi": {
"type": "string",
"format": "date",
"description": "Tanggal produksi."
},
"tarif": {
"type": "integer",
"description": "Tarif."
}
},
"required": [
"idCk4Detail",
"idMerkMmea",
"isi",
"jenisKemasan",
"jumlahKemasan",
"jumlahKemasanDilekatiPita",
"jumlahProduksi",
"kadar",
"merkMmea",
"nomorProduksi",
"tanggalProduksi",
"tarif"
]
}
}
},
"required": [
"idCk4",
"nomorPemberitahuan",
"totalJumlahKemasan",
"totalJumlahProduksi",
"nomorSurat",
"tanggalSurat",
"details"
]
}
Example Request : Perbaikan MMEA
--boundary
Content-Disposition: form-data; name="details[0].idCk4Detail"
5a3c655d-e2a9-4ea6-be3a-826f940c5622
--boundary
Content-Disposition: form-data; name="details[0].idMerkMmea"
189c6a4b-2aea-42f5-bbb2-5aa16305da6c
--boundary
Content-Disposition: form-data; name="details[0].isi"
1500
--boundary
Content-Disposition: form-data; name="details[0].jenisKemasan"
Botol
--boundary
Content-Disposition: form-data; name="details[0].jumlahKemasan"
200
--boundary
Content-Disposition: form-data; name="details[0].jumlahKemasanDilekatiPita"
200
--boundary
Content-Disposition: form-data; name="details[0].jumlahProduksi"
200
--boundary
Content-Disposition: form-data; name="details[0].kadar"
10
--boundary
Content-Disposition: form-data; name="details[0].merkMmea"
ICELAND VODKA MIX LONG ISLAND
--boundary
Content-Disposition: form-data; name="details[0].nomorProduksi"
TES/PER/MMEA/01
--boundary
Content-Disposition: form-data; name="details[0].tanggalProduksi"
2023-08-20
--boundary
Content-Disposition: form-data; name="details[0].tarif"
14000
--boundary
Content-Disposition: form-data; name="idCk4"
f88e8632-1b93-4417-92bd-f64390769e6e
--boundary
Content-Disposition: form-data; name="nomorPemberitahuan"
TES/PER/MMEA/01/head
--boundary
Content-Disposition: form-data; name="totalJumlahKemasan"
200
--boundary
Content-Disposition: form-data; name="totalJumlahProduksi"
200
--boundary
Content-Disposition: form-data; name="nomorSurat"
TEST/PERBAIK/01
--boundary
Content-Disposition: form-data; name="tanggalSurat"
2023-12-11
--boundary--