GET & POST methods.


/ping GET



When calling this method, the server will always respond with:

                        
{
    "status": 200,
    "timestamp": 1705014981,
    "data": {
        "result": "pong"
    }
}
                            
                        

/alert GET



With this method, you will be able to retrieve the text of the currently active alert in RestStudio. Result example:

                        
{
    "status": 200,
    "timestamp": 1705015272,
    "data": {
        "result": "Check out our new <a href=\"https:\/\/api.rest-studio.com\/docs\" class=\"alert-link\">API<\/a>!"
    }
}
                            
                        

/alert-html GET



With this method, you will be able to retrieve the HTML code of the currently active alert in RestStudio. Result example:

                        
{
    "status": 200,
    "timestamp": 1705015272,
    "data": {
        "result": "<div class=\"alert alert-success\" role=\"alert\">Check out our new <a href=\"https:\/\/api.rest-studio.com\/docs\" class=\"alert-link\">API<\/a>!<\/div>"
    }
}
                            
                        

/patreon-check POST



With this method, you will be able to check if an email is a Patron on restonic4's Patreon. You need to provide:

                            
{
    "email": "opEmailAccount@rest.studio.com"
}
                            
                        

You will get 1 if that email is found on restonic4's Patreon.