aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel R Holland <[email protected]>2024-03-25 11:31:52 -0400
committerGitHub <[email protected]>2024-03-25 11:31:52 -0400
commit266c84d625b72dae5ea7157b016f73aa7b2c6f83 (patch)
tree304c7922052321e4940db08ac34581f4ea126010
parentc4f178532a20a4900458db15ededc46a14ae1d21 (diff)
downloadsimple-comments-widget-266c84d625b72dae5ea7157b016f73aa7b2c6f83.tar.gz
simple-comments-widget-266c84d625b72dae5ea7157b016f73aa7b2c6f83.tar.bz2
simple-comments-widget-266c84d625b72dae5ea7157b016f73aa7b2c6f83.zip
docs: Update readme.md REST != HTTP
"Ackchyually......."
-rw-r--r--readme.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index 4bb90b7..e53efdb 100644
--- a/readme.md
+++ b/readme.md
@@ -2,9 +2,9 @@
This is a comments component for adding to web pages, plus a backend service that stores comments in a database.
-Users can delete their own comments, but the server does not save any user information. This is acheived by generating a key for every new comment, which is cached in the browser of the creator, and also stored in the server's database. Deletion REST requests must include this number, as well as the comment's id.
+Users can delete their own comments, but the server does not save any user information. This is acheived by generating a key for every new comment, which is cached in the browser of the creator, and also stored in the server's database. Deletion HTTP requests must include this number, as well as the comment's id.
-### Server REST API
+### Server HTTP API
- `GET /comments?page_id=add-page-id-here` : returns a json array of comments for the page 'add-page-id-here'.
- `POST /comments` : takes a json body of the form `{"bot":"no", "content": "foo bar", "deletion_key": "3858516384593962266", "page_id":"add-page-id-here"}`. Creates a comment and returns plain text containing the id of the new comment.