1 | # Example Queries |
---|
2 | |
---|
3 | 1. Get a list of aggregates in JSON format |
---|
4 | |
---|
5 | http://genimondev.uky.edu/API/info/?q={"obj":{"type":"aggregate"},"output":"json","infoType":"simple"} |
---|
6 | |
---|
7 | 2. Get a list of aggregates in XML format -- this produces an error |
---|
8 | |
---|
9 | http://genimondev.uky.edu/API/info/?q={"obj":{"type":"aggregate"},"output":"xml","infoType":"simple"} |
---|
10 | |
---|
11 | 3. Get information about a single aggregate by short name in JSON format |
---|
12 | |
---|
13 | http://genimondev.uky.edu/API/info/?q={"obj":{"id":["max-ig"],"type":"aggregate"},"output":"json","infoType":"simple"} |
---|
14 | |
---|
15 | 4. Get information about a single aggregate by short name in XML format |
---|
16 | |
---|
17 | http://genimondev.uky.edu/API/info/?q={"obj":{"id":["max-ig"],"type":"aggregate"},"output":"xml","infoType":"simple"} |
---|
18 | |
---|
19 | 5. Get information about a single aggregate by URN in JSON format -- this produces an empty list |
---|
20 | |
---|
21 | http://genimondev.uky.edu/API/info/?q={"obj":{"id":["urn:publicid:IDN+instageni.maxgigapop.net+authority+cm"],"type":"aggregate"},"output":"json","infoType":"simple"} |
---|
22 | |
---|
23 | 6. Get information about a single aggregate by URN in XML format |
---|
24 | |
---|
25 | http://genimondev.uky.edu/API/info/?q={"obj":{"id":["urn:publicid:IDN+instageni.maxgigapop.net+authority+cm"],"type":"aggregate"},"output":"xml","infoType":"simple"} |
---|
26 | |
---|
27 | 7. Get event information about an aggregate |
---|
28 | |
---|
29 | http://genimondev.uky.edu/API/data/?q={"obj":{"id":["max-ig"],"type":"aggregate"},"output":"xml","ts":{"gte":1456260153962,"lt":1456263753962}} |
---|
30 | |
---|
31 | 8. Just is_available for an aggregate |
---|
32 | |
---|
33 | http://genimondev.uky.edu/API/data/?q={"eventType":["is_available"],"obj":{"id":["max-ig"],"type":"aggregate"},"output":"xml","ts":{"gte":1456345005000,"lt":1456348605000}} |
---|
34 | |
---|
35 | * I couldn't get "output":"json" to work with this query, the document was empty |
---|
36 | |
---|
37 | # Slivers |
---|
38 | |
---|
39 | 1. List all slivers in XML |
---|
40 | |
---|
41 | http://genimondev.uky.edu/API/info/?q={"obj":{"type":"sliver"},"output":"xml","infoType":"simple"} |
---|
42 | |
---|
43 | 2. Info about a single sliver in json |
---|
44 | |
---|
45 | http://genimondev.uky.edu/API/info/?q={"obj":{"id":["lan.sdn.uky.edu_sliver_38337"],"type":"sliver"},"output":"json","infoType":"detailed"} |
---|