Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
polydb:rest:intro [2020/04/01 12:02] – paffenholz | polydb:rest:intro [2023/03/24 21:52] – [polyDB REST API] paffenholz | ||
---|---|---|---|
Line 5: | Line 5: | ||
Base path: | Base path: | ||
< | < | ||
- | https:// | + | https:// |
</ | </ | ||
Line 21: | Line 21: | ||
* count | * count | ||
* distinct | * distinct | ||
+ | * id | ||
- | For more information | + | Some examples are below. |
==== Obtain info on available collections ==== | ==== Obtain info on available collections ==== | ||
Line 30: | Line 31: | ||
This returns section documentation and a list of subsections and collections in this section: | This returns section documentation and a list of subsections and collections in this section: | ||
< | < | ||
- | https:// | + | https:// |
</ | </ | ||
with possible parameters < | with possible parameters < | ||
< | < | ||
- | https:// | + | https:// |
</ | </ | ||
returns | returns | ||
Line 74: | Line 75: | ||
Here is an example: | Here is an example: | ||
< | < | ||
- | https:// | + | https:// |
</ | </ | ||
Line 86: | Line 87: | ||
Example: | Example: | ||
< | < | ||
- | https:// | + | https:// |
</ | </ | ||
returns | returns | ||
Line 108: | Line 109: | ||
Example: | Example: | ||
< | < | ||
- | https:// | + | https:// |
</ | </ | ||
will return at most 10 reflexive polytopes with 5 vertices, skipping the first 100 matches. | will return at most 10 reflexive polytopes with 5 vertices, skipping the first 100 matches. | ||
Line 118: | Line 119: | ||
Example: | Example: | ||
< | < | ||
- | https:// | + | https:// |
</ | </ | ||
Line 128: | Line 129: | ||
This counts the number of results that match a given query. Example: | This counts the number of results that match a given query. Example: | ||
< | < | ||
- | https:// | + | https:// |
</ | </ | ||
returns | returns | ||
< | < | ||
139983 | 139983 | ||
+ | </ | ||
+ | |||
+ | === id === | ||
+ | |||
+ | Returns a single document by its id. | ||
+ | |||
+ | Example | ||
+ | < | ||
+ | https:// | ||
</ | </ | ||
Line 142: | Line 152: | ||
Example | Example | ||
< | < | ||
- | https:// | + | https:// |
</ | </ | ||