raven-erlang icon indicating copy to clipboard operation
raven-erlang copied to clipboard

Wrong RESTAPI endpoint

Open jesperes opened this issue 2 years ago • 4 comments

According to the docs, the endpoint should be

{BASE_URI}/api/{PROJECT_ID}/store/

but the endpoint used in the code is

{BASE_URI}/api/store/

Not sure if this is a bug, or some configuration mishap somewhere, but I wanted to raise it as a possible issue.

jesperes avatar Aug 11 '22 06:08 jesperes

@jesperes sorry, is that your guess or it's a real bug?

artemeff avatar Nov 12 '22 13:11 artemeff

As far as I can tell it is a real bug because two things:

  1. The documentation says the endpoint is '{BASE_URI}/api/{PROJECT_ID}/{ENDPOINT}/'
  2. The URL used in the code ({BASE_URI}/api/store/) didn't work for me, but it works fine when I use the endpoint as specified in the docs.

jesperes avatar Nov 14 '22 06:11 jesperes

ok! I will look into it

artemeff avatar Nov 14 '22 21:11 artemeff

My best guess is that the restapi had a fallback to lookup the project in the payload if the URL was /api/store/, but that fallback was at some point removed.

jesperes avatar Nov 15 '22 07:11 jesperes