From 2a845e8b8dc4afd1308281ff444ddf920d348be2 Mon Sep 17 00:00:00 2001 From: IK Date: Mon, 21 Sep 2026 20:34:22 +0700 Subject: [PATCH] chore: publish bulk publish API contract --- apps/api/openapi.json | 74 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/apps/api/openapi.json b/apps/api/openapi.json index 4e222dd..13630cb 100644 --- a/apps/api/openapi.json +++ b/apps/api/openapi.json @@ -1093,6 +1093,24 @@ "title": "ExternalObservationAction", "type": "object" }, + "ExternalObservationBulkAction": { + "properties": { + "items": { + "items": { + "$ref": "#/components/schemas/ExternalObservationBulkItem" + }, + "maxItems": 50, + "minItems": 1, + "title": "Items", + "type": "array" + } + }, + "required": [ + "items" + ], + "title": "ExternalObservationBulkAction", + "type": "object" + }, "ExternalObservationBulkDecision": { "properties": { "items": { @@ -3673,6 +3691,62 @@ "summary": "Admin Map External Observations Bulk" } }, + "/api/v1/admin/external-observations/bulk-publish": { + "post": { + "operationId": "admin_publish_external_observations_bulk_api_v1_admin_external_observations_bulk_publish_post", + "parameters": [ + { + "in": "header", + "name": "authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Authorization" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExternalObservationBulkAction" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExternalObservationBulkResult" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Admin Publish External Observations Bulk" + } + }, "/api/v1/admin/external-observations/bulk-reject": { "patch": { "operationId": "admin_reject_external_observations_bulk_api_v1_admin_external_observations_bulk_reject_patch",