mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Update docs for PUT and DELETE APIs to mention CSRF requirements
This commit is contained in:
parent
55173c17a3
commit
7878e77e96
@ -1,5 +1,5 @@
|
|||||||
created: 20181002112106875
|
created: 20181002112106875
|
||||||
modified: 20181002124355314
|
modified: 20210418100750769
|
||||||
tags: [[WebServer API]]
|
tags: [[WebServer API]]
|
||||||
title: WebServer API: Delete Tiddler
|
title: WebServer API: Delete Tiddler
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
@ -14,6 +14,10 @@ Parameters:
|
|||||||
|
|
||||||
* ''title'' - URI encoded title of the tiddler to delete
|
* ''title'' - URI encoded title of the tiddler to delete
|
||||||
|
|
||||||
|
Headers:
|
||||||
|
|
||||||
|
* ''x-requested-with'' - must be set to `TiddlyWiki` in order for the request to succeed, unless [[WebServer Parameter: csrf-disable]] is set to `yes`
|
||||||
|
|
||||||
Response:
|
Response:
|
||||||
|
|
||||||
* 204 No Content
|
* 204 No Content
|
@ -1,5 +1,5 @@
|
|||||||
created: 20181002131341062
|
created: 20181002131341062
|
||||||
modified: 20181002131556452
|
modified: 20210418100750769
|
||||||
tags: [[WebServer API]]
|
tags: [[WebServer API]]
|
||||||
title: WebServer API: Put Tiddler
|
title: WebServer API: Put Tiddler
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
@ -16,6 +16,10 @@ Parameters:
|
|||||||
|
|
||||||
* ''title'' - URI encoded title of the tiddler to save
|
* ''title'' - URI encoded title of the tiddler to save
|
||||||
|
|
||||||
|
Headers:
|
||||||
|
|
||||||
|
* ''x-requested-with'' - must be set to `TiddlyWiki` in order for the request to succeed, unless [[WebServer Parameter: csrf-disable]] is set to `yes`
|
||||||
|
|
||||||
Response:
|
Response:
|
||||||
|
|
||||||
* 204 No Content
|
* 204 No Content
|
||||||
|
Loading…
Reference in New Issue
Block a user