JSON: Difference between revisions

From OSSelot
Jump to navigation Jump to search
mNo edit summary
(Added SSL mode via port 3263)
Line 4: Line 4:
<pre>
<pre>
http://www.osselot.org:3262/json/<package>/<version>
http://www.osselot.org:3262/json/<package>/<version>
</pre>
or
<pre>
https://www.osselot.org:3263/json/<package>/<version>
</pre>
</pre>
such as in a <i>wget</i> command
such as in a <i>wget</i> command
Line 19: Line 23:
If a browser supports display of JSON data either natively or after having installed an appropriate extension, JSON data may be rendered and interactively inspected using links such as
If a browser supports display of JSON data either natively or after having installed an appropriate extension, JSON data may be rendered and interactively inspected using links such as
<html>
<html>
<a href="http://www.osselot.org:3262/json/dbus/1.15.2">DBus version 1.15.2</a>
<a href="https://www.osselot.org:3263/json/dbus/1.15.2">DBus version 1.15.2</a>
</html>
</html>
or even
or even
<html>
<html>
<a href="http://www.osselot.org:3262/json/dbus">all curated versions of DBus</a>.
<a href="https://www.osselot.org:3263/json/dbus">all curated versions of DBus</a>.
</html>
</html>


<i>(Please note that the above browser commands, particularly the second, may take a long time to render.)</i>
<i>(Please note that the above browser commands, particularly the second, may take a long time to render.)</i>

Revision as of 01:49, 27 July 2023

Obtain curation data in JSON format

Single version

To obtain curation data of a single version of a software package in JSON format, the following REST call may be used:

http://www.osselot.org:3262/json/<package>/<version>

or

https://www.osselot.org:3263/json/<package>/<version>

such as in a wget command

wget -qO - http://www.osselot.org:3262/json/dbus/1.15.2

All available versions of a software package

The command to obtain JSON formatted data of all available versions of a software package is very similar to the above except that the "version" part is not given such as

wget -qO - http://wwww.osselot.org:3262/json/dbus

Format JSON file in browser

If a browser supports display of JSON data either natively or after having installed an appropriate extension, JSON data may be rendered and interactively inspected using links such as DBus version 1.15.2 or even all curated versions of DBus.

(Please note that the above browser commands, particularly the second, may take a long time to render.)