1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Update docs for PUT and DELETE APIs to mention CSRF requirements

This commit is contained in:
jeremy@jermolene.com 2021-04-18 10:09:49 +01:00
parent 55173c17a3
commit 7878e77e96
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,5 @@
created: 20181002112106875
modified: 20181002124355314
modified: 20210418100750769
tags: [[WebServer API]]
title: WebServer API: Delete Tiddler
type: text/vnd.tiddlywiki
@ -14,6 +14,10 @@ Parameters:
* ''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:
* 204 No Content

View File

@ -1,5 +1,5 @@
created: 20181002131341062
modified: 20181002131556452
modified: 20210418100750769
tags: [[WebServer API]]
title: WebServer API: Put Tiddler
type: text/vnd.tiddlywiki
@ -16,6 +16,10 @@ Parameters:
* ''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:
* 204 No Content