{"openapi":"3.0.2","info":{"title":"Metadata event handler","description":"Service for spawning consumer and handling bulk indexing in Elasticsearch","version":"1.0.8"},"paths":{"/v1/health/":{"get":{"tags":["Health"],"summary":"Check the health state of the application.","description":"Return response that represents status of the Elasticsearch connection.","operationId":"get_health_v1_health__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/event-handler/bulk-index":{"post":{"tags":["Bulk Index"],"summary":"Bulk index metadata items updated between date range into Elasticsearch","description":"Bulk index project metadata items into Elasticsearch between date-range.","operationId":"execute_bulk_index_v1_event_handler_bulk_index_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTItemsIndex"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTItemsIndexResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"EAPIResponseCode":{"title":"EAPIResponseCode","enum":[200,404,500],"description":"An enumeration."},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"POSTItemsIndex":{"title":"POSTItemsIndex","required":["last_updated_start","last_updated_end"],"type":"object","properties":{"last_updated_start":{"title":"Last Updated Start","type":"string","format":"date-time"},"last_updated_end":{"title":"Last Updated End","type":"string","format":"date-time"}}},"POSTItemsIndexResponse":{"title":"POSTItemsIndexResponse","type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/EAPIResponseCode"}],"default":200},"error_msg":{"title":"Error Msg","type":"string","default":""},"result":{"title":"Result","type":"array","items":{},"default":[]}}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"}]}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}}}}