-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
79 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
...tation/HTTPAPI/get-fetch-tiddler-html.tid → ...ation/HTTPAPI/get-tiddlers-fetch-html.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
title: $:/plugins/OokTech/Bob/Documentation/HTTPAPI/get-fetch-tiddler-html | ||
tags: [[HTTP API]] | ||
verb: GET | ||
route: /api/fetch/tiddler/html | ||
route: /api/tiddlers/fetch/html/:wiki | ||
response: The rendered html of the requested tiddler | ||
parameters: `wiki` `tiddler` | ||
parameters: `tiddler` | ||
description: get the rendered html of a tiddler | ||
|
||
Note: Because of how Bob handles different wikis, this doesn't render the | ||
static css in the expected way. | ||
|
||
Get the rendered html version of a tiddler. | ||
|
||
Example: | ||
|
||
* `/api/fetch/tiddler/html?wiki=SomeWiki&tiddler=tiddlerTitle` | ||
* `/api/tiddlers/fetch/html/SomeWiki?tiddler=tiddlerTitle` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
title: $:/plugins/OokTech/Bob/Documentation/HTTPAPI/get-fetch-tiddlers | ||
tags: [[HTTP API]] | ||
verb: GET | ||
route: /api/tiddlers/fetch/:wikiname | ||
response: Tiddlers in JSON format | ||
parameters: `filter` `tiddler` | ||
description: fetch tiddlers from the server | ||
|
||
Return a set of tiddlers using a filter, from the named wiki. | ||
|
||
|
||
Parameters: | ||
|
||
* `filter` the filter to evaluate in the wiki to select tiddlers to fetch | ||
* `fields` a space separated list of field names that get included in the `info` part of the returned data | ||
|
||
the returned json object has the form: | ||
|
||
``` | ||
{ | ||
list: ["title1", "title2"], | ||
tiddlers: { | ||
title1: {\* tiddler fields *\}, | ||
title2: {\* tiddler fields *\} | ||
}, | ||
info: { | ||
title1: {\* fields listed in the fields paramater *\}, | ||
title2: {\* fields listed in the fields paramater *\} | ||
} | ||
} | ||
``` | ||
|
||
Examples: | ||
|
||
* `/api/fetch?wiki=someWiki&filter=[tag[foo]]` | ||
* `/api/fetch?wiki=someWiki&filter=[tag[foo]]&fields=foo bar` |
2 changes: 1 addition & 1 deletion
2
Documentation/HTTPAPI/get-list-wikis.tid → Documentation/HTTPAPI/get-wikis-list.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...mentation/HTTPAPI/post-delete-tiddler.tid → ...entation/HTTPAPI/post-tiddlers-delete.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Documentation/HTTPAPI/post-push.tid → Documentation/HTTPAPI/post-tiddlers-push.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
Documentation/HTTPAPI/post-delete-wiki.tid → Documentation/HTTPAPI/post-wiki-delete.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
title: $:/plugins/OokTech/Bob/Documentation/HTTPAPI/post-wiki-rename | ||
tags: [[HTTP API]] | ||
verb: POST | ||
route: /api/wiki/rename/:wikiname | ||
response: | ||
parameters: newname | ||
description: rename a wiki | ||
|
||
This renames a wiki. | ||
|
||
`:wikiname` in the url is the wiki to rename, the `newname` parameter is the | ||
new name. | ||
|
||
Anything in the POST body will be ignored. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters