JSON: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Added search box) |
||
Line 31: | Line 31: | ||
<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> | ||
<html> | |||
<script src="/scripts/osadl.js"> | |||
</script> | |||
<h4>Use the below search box to immediately test the REST interface for JSON formatted data and display the <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> curation data in a new window</h4> | |||
<input type="text" onkeyup="searchtextkeyup(event, this, 'restjson');" size="30" /><button onclick="searchOSSelot(this, 'restjson');">Search the <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> repository</button><br /> | |||
<span style="display: none;"></span> | |||
<br /> | |||
</html> |
Revision as of 10:43, 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 calls 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.)
Use the below search box to immediately test the REST interface for JSON formatted data and display the O curation data in a new window