API endpoint to remove SERaaS Queries after 24 hours since usage
Closed this issue · 2 comments
wwongandy commented
I would like to: Provide an API endpoint to remove SERaaS Queries after 24 hours since usage
So that I can: Store the SERaaS Queries in a cache-basis without overloading the database
wwongandy commented
Development Note
Endpoint: GET /authentication/flushdata
Description: Removes all of the SERaaS API Query Timestamps that are more than 24 hours old from the database
Output:
{
removedTimestamps: Number
}
Test Cases
- Should be able to remove all SERaaS Query Timestamps that are more than 24 hours old
- Should not remove SERaaS Query Timestamps less than 24 hours old
wwongandy commented
Done in endpoint-flush-data branch.