Skip to content

Commit

Permalink
Update download counter caching system.
Browse files Browse the repository at this point in the history
  • Loading branch information
lewmilburn committed Aug 6, 2024
1 parent 4b4b8d6 commit 985aa4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Writerside/openapi/download-counter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ paths:
type: integer
description: The total latest download statistic across all sources
example: 9000
last_updated:
type: integer
description: Timestamp for when the resource's download count was last updated.
example: 1722940838
'404':
description: Unable to find resource
content:
Expand Down
2 changes: 2 additions & 0 deletions Writerside/topics/Download-Counter-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ https://service.lewmc.net/download-counter?resource=[RESOURCE]

Adding &format=true to the URL formats the number counts as strings with commas for values over 1,000.

Results from this API are cached for 24 hours.

<api-doc openapi-path="../openapi/download-counter.yml"></api-doc>

## Resources
Expand Down

0 comments on commit 985aa4e

Please sign in to comment.