Skip to content

Conversation

mjmaenpaa
Copy link
Contributor

In gitlab api Repository File and Label objects don't use id on get, post, put or delete. File uses url ending with /files for all operations and Label uses /label.
_created boolean is used to distinguish between create and update instead of presense of id.

In addition to that Label returns list with get and File returns object. getListWhenNoId boolean is used to distinguish between them.

gpocentek pushed a commit that referenced this pull request Oct 24, 2014
Support api-objects which don't have id in api response.
@gpocentek gpocentek merged commit afe0ab4 into python-gitlab:master Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants