Random Famous Quotes

부분 유료
분류별 Andres Olvera | 업데이트됨 vor 21 Tagen | Data
인기

9.4 / 10

지연 시간

454ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Incorrect Request Type and Response

Rapid account: Rlgreen 91
rlgreen91
vor 7 Jahren

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 vor 5 Jahren

thanks mate, good job 😃

Rapid account: Rlgreen 91
rlgreen91 Commented vor 7 Jahren

Thanks, I really appreciate it!

Rapid account: Andruxnet
andruxnet Commented vor 7 Jahren

Just added the GET endpoint for you.

Rapid account: Andruxnet
andruxnet Commented vor 7 Jahren

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?

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입