-
Issue Token:
- Endpoint:
/api/tokens
- Method: POST
- Payload:
{ "client_id": "example-client-id" }
- Response:
{ "id": "generated-token-id", "client_id": "example-client-id" }
- Endpoint:
-
Provision Client:
- Endpoint:
/api/client
- Method: POST
- Note: Details not provided in the code. Example is based on typical behavior.
- Payload:
{ "client_name": "example-client-name" }
- Response:
{ "client_id": "generated-client-id", "client_name": "example-client-name" }
- Endpoint:
-
Ingestion (Add Record):
- Endpoint:
/ingestion/:topic
- Method: POST
- Payload:
{ "origin": "example-origin", "data": "record-data-here" }
- Response:
{ "status": "success", "message": "Record added successfully" }
- Endpoint:
-
Fetch Record:
- Endpoint:
/ingestion/:topic/:offset
- Method: GET
- Response:
{ "id": "record-id", "origin": "example-origin", "data": "record-data-here" }
- Endpoint:
-
Get Pipe Configs:
- Endpoint:
/pipe/configs
- Method: GET
- Response:
{ "configs": [ { "id": 1, "pipe": { "section": "config-data" } } ] }
- Endpoint:
-
Set Pipe Config:
- Endpoint:
/pipe/configs
- Method: POST
- Payload:
{ "configs": [ { "id": 1, "pipe": { "section": "config-data" } } ] }
- Response:
{ "status": "success", "message": "Configuration set successfully" }
- Endpoint:
-
List All Clients:
- Endpoint:
/api/clients
- Method: GET
- Response:
{ "clients": [ { "id": "example-client-id" } ] }
- Endpoint:
-
Get UI Metadata:
- Endpoint:
/api/ui-metadata
- Method: GET
- Response:
{ "ui_metadata": { "key": "metadata-value" } }
- Endpoint:
Note: The payloads and responses are hypothetical and based on the provided Rust code's structure. The actual details might differ based on the full implementation and specific requirements.