# Photos

{% hint style="info" %}
API Base : <https://api.naosandco.me/v1/image.php>
{% endhint %}

{% hint style="info" %}
Texts in <mark style="color:purple;">**purple**</mark> can be clicked for more information.
{% endhint %}

On this page, you will be explained how to use the Naos\&Co API

## The API return 2 JSON datas :&#x20;

* "status" : The status of the api
* "message" : The photo/error message

<table><thead><tr><th>Param</th><th width="248.33333333333331">Method</th><th>Example</th></tr></thead><tbody><tr><td><a data-footnote-ref href="#user-content-fn-1"><mark style="color:purple;"><strong>type</strong></mark></a></td><td><mark style="background-color:blue;">GET</mark></td><td>https://api.naosandco.me/v1/image.php?type=all</td></tr></tbody></table>

| Code Statut | Type   | Définition                                                                                          |
| ----------- | ------ | --------------------------------------------------------------------------------------------------- |
| 200         | String | Status 200 tells you that the desired request was completed without errors.                         |
| 400         | String | Status 400 tells you that the desired request is incorrect (Bad parameter for example)              |
| 404         | String | Status 404 tells you that the desired request does not exist or no longer exists.                   |
| 500         | String | Code 500 indicates a server error.                                                                  |
| 503         | String | Status 503 tells you that the site is inaccessible, this may be due to a site downtime for example. |

[^1]: All valid params : \
    \- all\
    \- dog\
    \- cat
