# API: Ativos de Medição

---

- [Index](#index)
- [Show](#show)

<a name="index"></a>
## Index

### Endpoint
|Método|URI|Headers|
|:|:-|:|
|GET|`/ativos-medicao`|Default|

### Body
```json
Empty
```

### Responses
<larecipe-badge type="success" rounded><i class="fa fa-check" style="margin-right:9px"></i>200 - OK</larecipe-badge>
```json
[
    {
        "id": 1,
        "nome": "CO2",
        "unidade_medida": "%"
    },
    {
        "id": 2,
        "nome": "Umidade",
        "unidade_medida": "% Rel"
    },
    {
        "id": 3,
        "nome": "Temperatura",
        "unidade_medida": "ºC"
    }
]
```

<larecipe-badge type="danger" rounded><i class="fa fa-lock" style="margin-right:9px"></i>401 - Unauthorized</larecipe-badge>
```json
{
    "message": "Unauthenticated."
}
```

<a name="show"></a>
## Show

### Endpoint
| Método|URI|Headers|
|:|:-|:|
|GET| `/ativos-medicao/<id>` | Default |

### Body

```json 
Empty
```

### Responses

<larecipe-badge type="success" rounded><i class="fa fa-check" style="margin-right:9px"></i>200 - OK</larecipe-badge>
```json
{
    "id": 1,
    "nome": "CO2",
    "unidade_medida": "%"
}
```

<larecipe-badge type="danger" rounded><i class="fa fa-lock" style="margin-right:9px"></i>401 - Unauthorized</larecipe-badge>
```json
{
    "message": "Unauthenticated."
}
```