sudo dpkg -i oauthd_1.0.0.debcurl -X POST \
--user <client_id>:<client_secret> \
--data "grant_type=password" \
--data "username=<login>" \
--data "password=<password>" \
http://localhost:8081/oauth/tokencurl "http://localhost:8081/user/check-login-free?login=<login>"curl -X POST \
--header "Content-Type: application/json;charset=UTF-8" \
--data '{ "login" : "<login>", "password" : "<password>" }' \
http://localhost:8081/usercurl --header "Authorization: Bearer <your token here>" http://localhost:8081/usercurl -X PATCH \
--header "Authorization: Bearer <your token here>" \
--header "Content-Type: application/json;charset=UTF-8" \
--data '{ "password" : "<new_password>" }' \
http://localhost:8081/usercurl -X DELETE \
--header "Authorization: Bearer <your token here>" \
http://localhost:8081/userAvailable for root user only
curl http://localhost:8081/clientcurl -X POST \
--header "Content-Type: application/json;charset=UTF-8" \
--data '{ "client_id" : "<client_id>", "client_secret" : "<client_secret>" }' \
http://localhost:8081/clientcurl -X PATCH \
--header "Content-Type: application/json;charset=UTF-8" \
--data '{ "client_secret" : "<client_secret>" }' \
http://localhost:8081/client/<client_id>curl -X DELETE \
--user <client_id>:<client_secret> \
http://localhost:8081/client