docs/api: add info about wildcards

This commit is contained in:
rr- 2017-02-05 21:46:24 +01:00
parent 6cc18be68d
commit 1f14f2fc16
3 changed files with 32 additions and 32 deletions

54
API.md
View file

@ -431,21 +431,21 @@ data.
**Named tokens** **Named tokens**
| `<key>` | Description | | `<key>` | Description |
| ------------------- | ------------------------------------- | | ------------------- | ----------------------------------------- |
| `name` | having given name (accepts wildcards) | | `name` | having given name (accepts wildcards) |
| `category` | having given category | | `category` | having given category (accepts wildcards) |
| `creation-date` | created at given date | | `creation-date` | created at given date |
| `creation-time` | alias of `creation-date` | | `creation-time` | alias of `creation-date` |
| `last-edit-date` | edited at given date | | `last-edit-date` | edited at given date |
| `last-edit-time` | alias of `last-edit-date` | | `last-edit-time` | alias of `last-edit-date` |
| `edit-date` | alias of `last-edit-date` | | `edit-date` | alias of `last-edit-date` |
| `edit-time` | alias of `last-edit-date` | | `edit-time` | alias of `last-edit-date` |
| `usages` | used in given number of posts | | `usages` | used in given number of posts |
| `usage-count` | alias of `usages` | | `usage-count` | alias of `usages` |
| `post-count` | alias of `usages` | | `post-count` | alias of `usages` |
| `suggestion-count` | with given number of suggestions | | `suggestion-count` | with given number of suggestions |
| `implication-count` | with given number of implications | | `implication-count` | with given number of implications |
**Sort style tokens** **Sort style tokens**
@ -699,13 +699,13 @@ data.
| `<key>` | Description | | `<key>` | Description |
| ------------------ | ---------------------------------------------------------- | | ------------------ | ---------------------------------------------------------- |
| `id` | having given post number | | `id` | having given post number |
| `tag` | having given tag | | `tag` | having given tag (accepts wildcards) |
| `score` | having given score | | `score` | having given score |
| `uploader` | uploaded by given user | | `uploader` | uploaded by given user (accepts wildcards) |
| `upload` | alias of upload | | `upload` | alias of upload |
| `submit` | alias of upload | | `submit` | alias of upload |
| `comment` | commented by given user | | `comment` | commented by given user (accepts wildcards) |
| `fav` | favorited by given user | | `fav` | favorited by given user (accepts wildcards) |
| `tag-count` | having given number of tags | | `tag-count` | having given number of tags |
| `comment-count` | having given number of comments | | `comment-count` | having given number of comments |
| `fav-count` | favorited by given number of users | | `fav-count` | favorited by given number of users |
@ -1555,14 +1555,14 @@ data.
**Named tokens** **Named tokens**
| `<key>` | Description | | `<key>` | Description |
| ----------------- | --------------------------------------------- | | ----------------- | ---------------------------------------------------------------- |
| `type` | involving given resource type | | `type` | involving given resource type |
| `id` | involving given resource id | | `id` | involving given resource id |
| `date` | created at given date | | `date` | created at given date |
| `time` | alias of `date` | | `time` | alias of `date` |
| `operation` | `modified`, `created`, `deleted` or `merged` | | `operation` | `modified`, `created`, `deleted` or `merged` |
| `user` | name of the user that created given snapshot | | `user` | name of the user that created given snapshot (accepts wildcards) |
**Sort style tokens** **Sort style tokens**

View file

@ -12,7 +12,7 @@
</tr> </tr>
<tr> <tr>
<td><code>tag</code></td> <td><code>tag</code></td>
<td>having given tag</td> <td>having given tag (accepts wildcards)</td>
</tr> </tr>
<tr> <tr>
<td><code>score</code></td> <td><code>score</code></td>
@ -20,7 +20,7 @@
</tr> </tr>
<tr> <tr>
<td><code>uploader</code></td> <td><code>uploader</code></td>
<td>uploaded by given user</td> <td>uploaded by given use (accepts wildcards)r</td>
</tr> </tr>
<tr> <tr>
<td><code>upload</code></td> <td><code>upload</code></td>
@ -32,11 +32,11 @@
</tr> </tr>
<tr> <tr>
<td><code>comment</code></td> <td><code>comment</code></td>
<td>commented by given user</td> <td>commented by given user (accepts wildcards)</td>
</tr> </tr>
<tr> <tr>
<td><code>fav</code></td> <td><code>fav</code></td>
<td>favorited by given user</td> <td>favorited by given user (accepts wildcards)</td>
</tr> </tr>
<tr> <tr>
<td><code>tag-count</code></td> <td><code>tag-count</code></td>

View file

@ -12,7 +12,7 @@
</tr> </tr>
<tr> <tr>
<td><code>category</code></td> <td><code>category</code></td>
<td>having given category</td> <td>having given category (accepts wildcards)</td>
</tr> </tr>
<tr> <tr>
<td><code>creation-date</code></td> <td><code>creation-date</code></td>