This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
api #108
Comments
@vogster
|
This was referenced Oct 16, 2018
Errors @vogster in case of errors api will return HTTP code 422 and json with error string:
|
Post article
Update article |
Post comment
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: