Skip to content

Official API vs python-gitlab api #2

@dekimsey

Description

@dekimsey

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