Metadata Details
Service: Metadata
- Base URL:
https://api.seirpk.com/mrest/metadata
- Description
The Metadata Service is a critical API for syncing data within the SEIR mobile application. This service provides essential data related to:
-
Locations
-
Vaccination Centers
-
Programs
-
Equipment (e.g., fridge tags)
-
Vaccines and Vaccine Pre-requisites
-
Vaccine Stock
-
Location Types
-
User Roles and Permissions
-
Vaccinator Users
This API is integral for the functioning of the mobile app, as syncing the latest metadata is necessary for accurate operation and data management.
-
Request Format
All requests must be sent using HTTP GET method.
- Response Format
- Content-Type:
application/json - Success Response: A 200 OK HTTP status code with the appropriate JSON response body.
- Failure Response: A 200 OK HTTP status code with no JSON content, only a
codevalue of2to indicate failure due to an incomplete operation or unknown reasons. - Server Error Response: A 500 Internal Server Error HTTP status code when a server-side error occurs.
-
Dependencies
The Metadata API fetches data from multiple related tables in the system, including:
-
Users
-
Vaccinators
-
Locations and Location-Related Tables
-
Roles and Role Permissions
-
Vaccines and Vaccine-Related Tables
-
Stock Management
Each of these components is crucial for proper synchronization and the overall functionality of the SEIR application.