Skip to content

Latest commit

 

History

History

endpoints

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Signup:

curl --location --request POST 'localhost:8010/user/signup' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "test3",
    "password": "12345678"
}'

Login:

curl --location --request POST 'localhost:8010/user/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "test3",
    "password": "12345678"
}'

Register URL:

curl --location --request POST 'localhost:8010/url/register-url' \
--header 'Authorization: Bearer jwt token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "google",
    "url": "https://google.com",
    "threshold": "5"
}'

Get URLs:

curl --location --request GET 'localhost:8010/url/urls' \
--header 'Authorization: Bearer jwt token'

Statistics:

curl --location --request POST 'localhost:8010/url/stats' \
--header 'Authorization: Bearer jwt token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "google"
}'

Alerts:

curl --location --request POST 'localhost:8010/alert/alerts' \
--header 'Authorization: Bearer jwt token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "urlname": "google"
}'