{# Copyright (C) 2015 The Debsources developers . See the AUTHORS file at the top-level directory of this distribution and at https://salsa.debian.org/qa/debsources/blob/master/AUTHORS License: GNU Affero General Public License, version 3 or above. #} {% set url_prefix = "//" + config.SOURCES_URL + '/patches' %}

Patches

You can query all information available in Debian Sources, and get a JSON object which allows you to navigate packages and source files programmaticaly.
The JSON result will be pretty-printed, unless the X-Requested-With HTTP header is set to XmlHttpRequest.

Note: wherever a specific version number is required, you can use the string "latest" instead to get redirected to the most recent version of the package.

Patches

Package summary

You can retrieve a summary for a package: {{ url_prefix }}/api/packagename/version The package summary contains the names of the patches and some basic information about the package
example

Patch view

The URL for a patch view is: {{ url_prefix }}/api/packagename/version/path Both package name and version are required parameters. The path is the relative path of the patch starting from the debian/patches directory.
This query retrieves the file-deltas, the description and the bug number if they exist. See example

Package list

All packages

{{ url_prefix }}/api/list example

By prefix

{{ url_prefix }}/api/prefix/prefix example

Check the service status

Check service status and retrieve last update timestamp: {{ url_prefix }}/api/ping/ example