Random Famous Quotes

FREEMIUM
Par Andres Olvera | Mise à jour 21 दिन पहले | Data
Popularité

9.4 / 10

Latence

454ms

Niveau de service

100%

Health Check

N/A

Retour à toutes les discussions

Incorrect Request Type and Response

Rapid account: Rlgreen 91
rlgreen91
7 वर्ष पहले

Why do you have a POST endpoint to get data? That doesn’t make sense - you use a POST request to create data. This should become a GET endpoint. Then, the response status of 200 will make sense - a POST endpoint creates data, so it should return a 204 - Created upon success. The 200 - ok status fits with a successful GET request.

Rapid account: Nitran
Nitran Commented 5 वर्ष पहले

thanks mate, good job 😃

Rapid account: Rlgreen 91
rlgreen91 Commented 7 वर्ष पहले

Thanks, I really appreciate it!

Rapid account: Andruxnet
andruxnet Commented 7 वर्ष पहले

Just added the GET endpoint for you.

Rapid account: Andruxnet
andruxnet Commented 7 वर्ष पहले

I understand what you mean, but this is the way it was setup at the beginning, and I have used it in many projects that I no longer have access to, so if I change it those projects will misbehave.

What I can do is create another endpoint, GET, and you can consume the API using the new one. Will that work?

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires