Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

API to list OpenGApps assets on the website

License

NotificationsYou must be signed in to change notification settings

opengapps/package-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the implementation of theopengapps.org backend.

This project adheres to the Golangproject-layout structure.

Purpose

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.

Installation

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-api

Also you can clone this repo and use the build/install/run targets fromMakefile.

Configuration

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.

Usage

This API only exposes two endpoints:/list and/download.

Request format

MethodEndpointParameters
GET/listNone
GET/downloadarch={ARCHITECTURE}&api={API}&variant={VARIANT}&date={DATE}

Response codes

  • 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

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp