{% api-method method="post" host="https://smallen.xyz" path="/api/getUrl" %} {% api-method-summary %} Get Cakes {% endapi-method-summary %}
{% api-method-description %} This endpoint allows you to get free cakes. {% endapi-method-description %}
{% api-method-spec %} {% api-method-request %} {% api-method-body-parameters %} {% api-method-parameter name="id" type="string" required=true %} Shortened ID, For example in https://smallen.xyz/PQRST , PQRST is the id {% endapi-method-parameter %} {% endapi-method-body-parameters %} {% endapi-method-request %}
{% api-method-response %} {% api-method-response-example httpCode=200 %} {% api-method-response-example-description %} Cake successfully retrieved. {% endapi-method-response-example-description %}
{ "name": "Cake's name", "recipe": "Cake's recipe name", "cake": "Binary cake"}
{% endapi-method-response-example %}
{% api-method-response-example httpCode=404 %} {% api-method-response-example-description %} Could not find a cake matching this query. {% endapi-method-response-example-description %}
{ "message": "Ain't no cake like that."}
{% endapi-method-response-example %} {% endapi-method-response %} {% endapi-method-spec %} {% endapi-method %}