This commit is contained in:
Bernhard Posselt 2016-06-30 11:30:12 +02:00 коммит произвёл adsworth
Родитель 45c3a9a781
Коммит 471af5e71e
2 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -59,6 +59,7 @@ This route will return all releases to display inside Nextcloud's apps admin are
"releases": [
{
"version": "8.8.0",
"nightly": false,
"phpExtensions": [
{
"id": "SimpleXML",
@ -126,6 +127,9 @@ This route will return all releases to display inside Nextcloud's apps admin are
translations
Translated fields are stored inside a translations object. They can have any size, depending on if there is a translation. If a required language is not found, you should fall back to English.
nightly
True if the release is a nightly version. Currently we only support one nightly release because downgrading apps is unsupported. New nightly releases are not required to have a higher version than the previous one. Instead look at the **lastModified** attribute to detect updates.
screenshots
Guaranteed to be HTTPS
@ -290,7 +294,7 @@ Only app owners or co-maintainers are allowed to delete an app release. The owne
* **Url parameters**:
* **app-id**: app id, lower case ASCII characters and underscores are allowed
* **app-version**: app version, semantic version, digits only
* **app-version**: app version, semantic version, digits only or digits-nightly for deleting a nightly (e.g. 7.9.1-nightly)
* **Authentication**: Basic
@ -324,6 +328,7 @@ The following request will create a new app release:
* **Request body**:
* **download**: An Https (Http is not allowed!) link to the archive packaged (maximum size: 20 Megabytes) as tar.gz, info.xml must be smaller than 512Kb
* **nightly (Optional)**: If true this release will be stored as a nightly. All previous nightly releases will be deleted.
* **checksum (Optional)**: If not given we will calculate the sha256sum on the downloaded archive. If you are paranoid or host your packages on a host that you don't trust, you can supply your own sha256sum which can be generated by running::
sha256sum release.tar.gz
@ -332,7 +337,8 @@ The following request will create a new app release:
{
"download": "https://example.com/release.tar.gz",
"checksum": "65e613318107bceb131af5cf8b71e773b79e1a9476506f502c8e2017b52aba15"
"checksum": "65e613318107bceb131af5cf8b71e773b79e1a9476506f502c8e2017b52aba15",
"nightly": false
}

Просмотреть файл

@ -9,7 +9,8 @@ urlpatterns = [
url(r'^apps/releases/?$', AppReleases.as_view(),
name='app-release-create'),
url(r'^apps/(?P<pk>[a-z_]+)/?$', Apps.as_view(), name='app-delete'),
url(r'^apps/(?P<app>[a-z_]+)/releases/(?P<version>\d+\.\d+\.\d+)/?$',
url(r'^apps/(?P<app>[a-z_]+)/releases/(?P<version>\d+\.\d+\.\d+'
r'(?:-nightly)?)/?$',
AppReleases.as_view(), name='app-release-delete'),
url(r'^categories.json$',
etag(category_api_etag)(Categories.as_view()), name='categories'),