← Winnitude! Search  ·  Reader Mode (2515 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 6 LINKS

Official API vs python-gitlab api · Issue #2 · python-gitlab/python-gitlab

Repository navigation

Official API vs python-gitlab api  #2


New issue

New issue

Closed

Closed
Official API vs python-gitlab api #2

Description

@dekimsey's profile dekimsey opened on Jul 2, 2013

The naming is somewhat inconsistent. This makes it difficult to read the official api and then use the console interface. I do not know if this affects the programmatic api.

Documentation:

Gets a user team project.

GET /user_teams/:id/projects/:project_id
Parameters:

id (required) - The ID of a user_team
project_id (required) - The ID of a user

API:

team-project get --id=ARG1 --team-id=ARG2
# id = the ID of a project
# team_id = the ID of a user_team

Should preferably be rewritten as:

team-project get --id=ARG2 --project-id=ARG1
# id = the ID of a user_team
# project_id = the ID of a project

Currently the use of --id appears to be hard-coded in the design. I'm not sure what would be the best way to change this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions