Commit 625fee054258d60ea6f2556dc5b2c70cda609f8b
1 parent
d65eaf5f
Exists in
master
and in
39 other branches
Updating open-data
Showing
1 changed file
with
17 additions
and
0 deletions
Show diff stats
src/templates/open-data.html
| ... | ... | @@ -20,6 +20,14 @@ |
| 20 | 20 | <p>{% trans "The following list contains the available models to retrieve data" %}:</p> |
| 21 | 21 | <ul> |
| 22 | 22 | <li> |
| 23 | + <strong><a href="{{ BASE_API_URL }}user/">user</a></strong>: | |
| 24 | + {% trans "Retrieve users with username, institution, role, twitter, facebook, google talk, github, webpage and bio" %} | |
| 25 | + </li> | |
| 26 | + <li> | |
| 27 | + <strong><a href="{{ BASE_API_URL }}emailaddress/">emailaddress</a></strong>: | |
| 28 | + {% trans "Retrieve emailaddress with user and real_name" %} | |
| 29 | + </li> | |
| 30 | + <li> | |
| 23 | 31 | <strong><a href="{{ BASE_API_URL }}message/">message</a></strong>: |
| 24 | 32 | {% trans "Retrieve messages with body, id, received_time and subject" %} |
| 25 | 33 | </li> |
| ... | ... | @@ -53,6 +61,15 @@ |
| 53 | 61 | {% trans "Where n is the index of the first result to appear in the page." %} |
| 54 | 62 | <i>{% trans "Default: 0" %}</i>. |
| 55 | 63 | </li> |
| 64 | + <li> | |
| 65 | + <h4><i>fieldname</i> - {% trans "The field name" %}</h4> | |
| 66 | + {% trans "If you are looking for a specific wiki, and you know the wiki's name, you can filter it as below" %} | |
| 67 | + <p><i>...{{ BASE_API_URL }}wiki/?name={% trans "WikiName" %}</i></p> | |
| 68 | + {% trans "You can also filter using Django lookup fields as below" %} | |
| 69 | + <p><i>...{{ BASE_API_URL }}wiki/?name__startswith={% trans "Wiki" %}</i></p> | |
| 70 | + <p><i>...{{ BASE_API_URL }}wiki/?name__endswith={% trans "Name" %}</i></p> | |
| 71 | + <p><i>...{{ BASE_API_URL }}wiki/?name__contains={% trans "Wiki" %}</i></p> | |
| 72 | + </li> | |
| 56 | 73 | </ul> |
| 57 | 74 | </div> |
| 58 | 75 | {% endblock %} | ... | ... |