API: Generate invite link
Problem to solve
We generate projects via API and add members via UI manually (since this is still not implemented via API: https://gitlab.com/gitlab-org/gitlab-ce/issues/33626).
From the invite the person invited via email address receives a mail from GitLab that contains a "invite" link. This "invite" link allows the receiver to join the project with what every GitLab account he already has besides the email address he got invited with.
Currently there is no way to generate this invite link and send it to the intended person.
Proposal
We would like to be able to generate this link via the API (a respective UI implementation is probably interesting too but doesn't concern us).
This would allow us to send this invite link directly to the intended person.
What does success look like, and how can we measure that?
The API has a endpoint that returns a invite link for a specified project with specified role (guest, dev, ...). By pressing this link, the GitLab account of the one who pressed the link is added to the project (requires the link presser to be signed into GitLab). The link works according to the link send by GitLab.