Skip to content

Support api-objects which don't have id in api response. #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 24, 2014

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