- Notifications
You must be signed in to change notification settings - Fork4
API to list OpenGApps assets on the website
License
opengapps/package-api
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is the implementation of theopengapps.org backend.
This project adheres to the Golangproject-layout structure.
Since the website has transitioned to the SourceForge storage from Github releases, we've lost Github API support.
So, to compensate for that, this service was created.
The service uses Go modules for vendoring.
To install it, starting with Go 1.12 you can just usego get:
go get github.com/opengapps/package-api/cmd/package-apiAlso you can clone this repo and use the build/install/run targets fromMakefile.
You can use any config file format supported byViper library (currently our preferred format isTOML).
In case you don't want to use local config, it will rely on ENV variables with prefixPACKAGE_API_ (can be changed inMakefile).
Example config can be found atconfig_example.toml.
This API only exposes two endpoints:/list and/download.
| Method | Endpoint | Parameters |
|---|---|---|
GET | /list | None |
GET | /download | arch={ARCHITECTURE}&api={API}&variant={VARIANT}&date={DATE} |
- 200: successful response;
- 404: on bad request format or improper parameters;
- 500: mostly on external call failures.
About
API to list OpenGApps assets on the website
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.