githubEdit

8 Service APIs

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.

The GovStack non-functional requirements documentarrow-up-right 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.

circle-check

8.1 Administrative APIs

create a new event, in eventList with given eventDetails, returns new event id or failure error code

post
Query parameters
requestorIdstringRequiredExample: healthngoadmin1
requestTokenstringRequiredExample: Organizer
Responses
chevron-right
200

success

application/json
Responsestring

ID of created event

Example: eventId:12345
post
/event/new

changes values of specific details (as given by eventDetails) of given event (selected by eventFilter) in eventList and returns success or error code

put
Query parameters
requestorIdstringRequiredExample: healthngoadmin1
requestTokenstringRequiredExample: Organizer
eventIdstringRequiredExample: 12345
Responses
chevron-right
200

success, event updated

No content

put
/event/modifications

No content

delete a predefined event in eventList and returns success or error code

delete
Query parameters
requestorIdstringRequiredExample: healthngoadmin1
requestTokenstringRequiredExample: Organizer
eventIdstringRequiredExample: 12345
Responses
chevron-right
200

success, event cancelled

No content

delete
/event

No content

8.2 User APIs

Last updated

Was this helpful?