Hi, 

Im trying to use the Gitlab API to simplify some development processes. My 
main use case is to write a script that creates an MR following a template 
(common fields so people don't have to write them over and over).

Im finding the API really cumbersome to use so I want to check if I missing 
something obvious.

For example the create merge_requests API will return the ID, the IID and a 
lot of info about the author of the request but it wont return a HTTP 
access link to the MR request. To get a HTTP link that a user can use, I 
need to get the Group Name, Project Name and build the URL by hand. It can 
be done but to build the request I just made I used ids for all these 
components and now I need fetch the names because the web client will throw 
404 if you use ids instead of the names (in the url).

As far as I can tell all the GET request (Project, Group etc) don't return 
the HTTP links to them so if I write a script to list "all open MRs by user 
X" I need to get all Ids to make the requests and then get all names to 
build the Web link.

Am I missing something obvious like a more info option on GET requests?

PS: I understand that the API use case is independent of the WEB view. 
Maybe my use case is not as common as I think it is (I have scripts like 
this for most of my previous repos). Any help is appreciated!

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/1266c6bd-90ae-4b95-9c04-d69bc7ad901a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to