Some questions about calling APIs, parsing the data, then using some sort of aggregation to display the data.
Using the parsed API request and record tables, produce a daily summary for successful requests only.
endpoint, request_date, parsed_record_count, total_value, and average_value.request_date, then endpoint.| Column | Type | Description |
|---|---|---|
| request_idPK | INT | Unique identifier for an API request |
| endpoint | VARCHAR(100) | API endpoint that was called |
| requested_at | TIMESTAMP | Timestamp when the request was made |
| http_status | INT | HTTP response status code |
| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique identifier for a parsed API record |
| request_id | INT | API request that produced the parsed record |
| record_type | VARCHAR(50) | Type of parsed record |
| value | NUMERIC(10,2) | Numeric value extracted from the API response |