4 releases
0.2.2 | Aug 21, 2023 |
---|---|
0.2.1 | Aug 20, 2023 |
0.2.0 | Mar 17, 2023 |
0.1.0 | Oct 22, 2022 |
#1842 in Parser implementations
27KB
437 lines
Description
Rust API wrapper crate for the redesigned TASVideos website (Swagger Docs).
Implementation note: Different endpoints provide a various set of optional filters. For now, this is handled by an enum containing a variant for every filter type. This design is a little clunky to use, but it works. If you provide a filter that's not supported by the endpoint, it will be quietly ignored.
Supported Endpoints
GET /api/v1/Games/{id}
GET /api/v1/Games
GET /api/v1/Publications/{id}
GET /api/v1/Publications
GET /api/v1/Submissions/{id}
GET /api/v1/Submissions
GET /api/v1/Systems/{id}
GET /api/v1/Systems
Movie downloads are also supported for publications, submissions, and userfiles.
User Agent
It's highly recommended that you set a user-agent. A default user-agent will not be provided in any requests unless you set one:
tasvideos_api_rs::set_user_agent("John Smith (johnsmith@gmail.com)");
Building
If you wish to build from source, for your own system, Rust is integrated with the cargo
build system. To install Rust and cargo
, just follow these instructions. Once installed, while in the project directory, run cargo build --release
to build.
Dependencies
~5–19MB
~280K SLoC