POST /projects/:id/merge_requests does not include a project based merge request id
I'm trying to create a merge-request through the API and follow the documentation here.
Looking at the response, I would assume that id
is the ID of the newly created merge request though this seems to be the global MR ID and the the project specific one. I am trying to construct a url in the form of mygitlab.com/group/project/merge_requests/<new_id>
but the id does not fit in there.
Am I supposed to make a second API call to GET /projects/:id/merge_requests/:merge_request_id to retrieve the project based MR id or is there a gitlab routing endpoint that will automatically redirect to the correct MR?