# Receitas e ferramentas para depurar a API

**URL:** <https://meta.discourse.org/t/recipes-and-tools-for-debugging-the-api/222904>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2 Abril , 2022 00:58 UTC](https://meta.discourse.org/t/recipes-and-tools-for-debugging-the-api/222904 "2022-04-02T00:58:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Seluj78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seluj78/32/254589_2.png) [@Seluj78](https://meta.discourse.org/u/Seluj78)\
**Post date:** [4 Abril , 2022 07:54 UTC](https://meta.discourse.org/t/recipes-and-tools-for-debugging-the-api/222904/5 "2022-04-04T07:54:02Z")

</div>

Olá @maiki, obrigado por investigar isso!

Aqui está uma solicitação CURL que você pode usar, que foi gerada do Postman (se desejar). Isso gera um 500:

```plaintext
curl --location --request POST 'https://XXX.com/users.json' \
--header 'Api-Key: XXX' \
--header 'Api-Username: XXX' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "XXX",
    "email": "XXX@mail.com",
    "password": "aTestPAssword",
    "username": 1,
    "active": true,
    "approved": true
}'

```

---

_[View the full topic](https://meta.discourse.org/t/recipes-and-tools-for-debugging-the-api/222904)._
