Let’s assume we want to list all the variables for a project:
- Using an API call, we would use this:
https://github.com/python-gitlab/python-gitlab - Using the Python-GitLab library, one would first create a Gitlab object and then do something like this:
gl.projects.get(1234).variables.list()
In the latter case, since we chain our method calls, would this result in?
- first a call to get the project
- secondly, a call to get the variables
Or is the library smart enough to only call the last endpoint? Fetching the project first would be totally useless.