edent/Renault-Zoe-API

Using postman instead

Closed this issue · 3 comments

Hello! Thanks for the good work.
I want to use postman, but I am having trouble.
The headers part is clear, but I don't know where to put the -d of cURL in postman. I tried both body and params, but the result is the same.

In body:
image

In params:
image

Response:

{
    "code": 1203244171,
    "message": "Required request body content is missing: org.springframework.web.method.HandlerMethod$HandlerMethodParameter@77bcca65",
    "timestamp": 1522142947676
}

Is it possible that the API has changed?

edent commented

The API hasn't changed. I'm not familiar with Postman, but it looks like you need to send JSON in the raw tab. See https://www.getpostman.com/docs/v6/postman/sending_api_requests/requests

Thank you very much, that did it, and shame on me for not researching enough.

edent commented

Don't beat yourself up. We were all new once. Glad the API is useful to you.