8 Service APIs
This section provides a reference for APIs that should be implemented by this Building Block.
Last updated
Was this helpful?
This section provides a reference for APIs that should be implemented by this Building Block.
Last updated
Was this helpful?
A Set of microservices are defined to receive requests from other GovStack-compatible Building Blocks and applications with relevant inputs and return processed results from key digital functionalities of this Building Block. This section provides a reference for APIs that should be implemented by this Building Block. The APIs defined here establish a blueprint for how the Building Block will interact with other Building Blocks. Additional APIs may be implemented by the Building Block, but the listed APIs define a minimal set of functionality that should be provided by any implementation of this Building Block.
Scheduler must expose its microservices through RESTful API interfaces as defined by OpenAPI v3+ standards. The Scheduler must have any response data payload it returns through its API only in the form of JSON formatted datasets. A summary of the APIS exposed by this Building Block is summarized in the table below. The Scheduler Building Block can be used also as an internal sub-block of another Building Block. In such a case the same services APIs will be used to embed the Scheduler Building Block (without having to pass through the Information Mediator).
The GovStack non-functional requirements document provides additional information on how 'adaptors' may be used to translate an existing API to the patterns described here. This section also provides guidance on how candidate products are tested and how GovStack validates a product's API against the API specifications defined here.
The tests for the Scheduler Building Block can be found in this GitHub repository.
This Services APIs is not yet specified, but it should be the purpose of a next iteration of the Scheduler Building Block Specification.
This Services APIs is not yet specified, but it should be the purpose of a next iteration of the Scheduler Building Block Specification.
This Services APIs is not yet specified, but it should be the purpose of a next iteration of the Scheduler Building Block Specification.
This Services APIs is not yet specified, but it should be the purpose of a next iteration of the Scheduler Building Block Specification.
The microservice interfaces are defined as per OPENAPI Ver3.0 standards.
For implementation purposes, it is suggested to refer TMF630_REST_API_Design_Guidelines.
success
ID of created event
"event_id:12345"
success, event updated
success, event cancelled
success,event_list
"12345"
success
ID of created entity
"entity_name:xyz hospital,entity_id:67890"
success, entity updated
success, entity cancelled
success,entity list
"67890"
success
ID of created alert_schedule
"alert_schedule_name:xyz hospital,alert_schedule_id:1"
success, alert_schedule updated
success, alert_schedule cancelled
success,alert_schedule list
"1"
success
ID of created message
"message_name:xyz hospital,message_id:1"
success, message updated
success, message cancelled
success,message list
"1"
success
ID of created resource
"resource_name:xyz hospital,resource_id:54321"
success, resource updated
success, resource cancelled
success,resource list
"54321"
success,resource list
"1"
"abc"
success
ID of created subscriber
"subscriber_name:xyz hospital,subscriber_id:12345"
success, subscriber updated
success, subscriber cancelled
success,message list
"12345"
success
ID of created affiliation
"affiliation_name:xyz hospital,affiliation_id:1"
success, affiliation updated
success, affiliation cancelled
success,affiliation list
"1"
success
ID of created appointment
"[Event_id:12345,appointment_id:1]"
success, appointment updated
success, appointment cancelled
success,appointment_list
"1"
success
ID of created log
"log_name:xyz hospital,log_id:1"
success, log updated
success, log cancelled
success,log list
"1"