Update docs for PUT and DELETE APIs to mention CSRF requirements

tiddlywiki-com
jeremy@jermolene.com 2021-04-18 10:09:49 +01:00
rodzic 55173c17a3
commit 7878e77e96
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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