Open recoilme opened 6 years ago
@vogster Send delete post to FCM
{"to":"/topics/tst_del","data":{"ID":40,..}
Errors
@vogster in case of errors api will return HTTP code 422 and json with error string:
{"error":"Error: key not found"}
Post article
curl -v --header "Content-type:application/json" --header "Authorization:token somebigstring" --request POST --data '{"body":"recoilme5 passwor pssword"}' http://sub.localhost:8081/editor/0
Update article http://sub.localhost:8081/editor/ArticleId
Post comment
curl -v --header "Content-type:application/json" --header "Authorization:token somebigstring" --request POST --data '{"body":"recoilme5 passwor pssword"}' 'http://sub.localhost:8081/comments/@recoilme56/41'
Get last 20 articles curl --header "Content-type:application/json" 'http://sub.localhost:8081/mid'
Get next 20 from article id 20 curl --header "Content-type:application/json" 'http://sub.localhost:8081/mid?p=20' response - similar
Get article curl --header "Content-type:application/json" 'http://sub.localhost:8081/@username/19'
Register curl --header "Content-type:application/json" --request POST --data '{"username":"recoilme56","password":"password","privacy":"privacy","terms":"terms"}' http://sub.localhost:8081/register
Login curl -v --header "Content-type:application/json" --request POST --data '{"username":"recoilme56","password":"password"}' http://sub.localhost:8081/login
Send new post to FCM