From 4cf9bf2b6322f0f2fe7e506f0c80b4f4c83f8461 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 12 May 2019 13:26:47 -0500 Subject: [PATCH] add deleteme rest example --- backend/remark.rest | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/remark.rest b/backend/remark.rest index ec6dd3c7..69da7778 100644 --- a/backend/remark.rest +++ b/backend/remark.rest @@ -5,7 +5,7 @@ GET {{host}}/api/v1/find?site={{site}}&sort=-controversy&format=tree&url={{url}} ### find request with plain GET {{host}}/api/v1/find?site={{site}}&sort=-controversy&format=plain&url={{url}} -### find request with plain +### find request with plain. dev token for secret=secret, not admin GET http://127.0.0.1:8080/api/v1/find?site={{site}}&sort=-controversy&format=plain&url={{url}} X-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZW1hcms0MiIsImV4cCI6Mzc4OTE5MTgyMiwianRpIjoicmFuZG9tIGlkIiwiaXNzIjoicmVtYXJrNDIiLCJuYmYiOjE1MjE4ODQyMjIsInVzZXIiOnsibmFtZSI6ImRldmVsb3BlciBvbmUiLCJpZCI6ImRldiIsInBpY3R1cmUiOiJodHRwOi8vZXhhbXBsZS5jb20vcGljLnBuZyIsImlwIjoiMTI3LjAuMC4xIiwiZW1haWwiOiJtZUBleGFtcGxlLmNvbSJ9fQ.aKUAXiZxXypgV7m1wEOgUcyPOvUDXHDi3A06YWKbcLg @@ -112,7 +112,7 @@ GET {{host}}/api/v1/rss/post?site={{site}}&url={{url}} ### site rss GET {{host}}/api/v1/rss/site?site={{site}} -### replie rss +### reply rss GET {{host}}/api/v1/rss/reply?site={{site}}&user={{user}} ### get default avatar @@ -121,5 +121,9 @@ GET {{host}}/api/v1/avatar/blah ### get config GET {{host}}/api/v1/config?site={{site}} +### deleteme. dev token for secret=secret, not admin +POST {{host}}/api/v1/deleteme?site_id={{site}} +X-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZW1hcms0MiIsImV4cCI6Mzc4OTE5MTgyMiwianRpIjoicmFuZG9tIGlkIiwiaXNzIjoicmVtYXJrNDIiLCJuYmYiOjE1MjE4ODQyMjIsInVzZXIiOnsibmFtZSI6ImRldmVsb3BlciBvbmUiLCJpZCI6ImRldiIsInBpY3R1cmUiOiJodHRwOi8vZXhhbXBsZS5jb20vcGljLnBuZyIsImlwIjoiMTI3LjAuMC4xIiwiZW1haWwiOiJtZUBleGFtcGxlLmNvbSJ9fQ.aKUAXiZxXypgV7m1wEOgUcyPOvUDXHDi3A06YWKbcLg + ### ping GET {{host}}/ping