Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #2446

Closed
Open
Created Dec 31, 2012 by Administrator@rootOwner

Repo path is not returned by API v3

Created by: m4tthumphrey

In the new API version (v3) you cannot specify a path (or code) when creating a new repo/project. This means that the path is generated automatically based on the project name. There is no way to get this path 100% accurately. Of couse you could write your own regex but it may not match (for whatever reason) with Gitlabs regex. The API needs to return a path attribute when a new repo/project is created via the API; it currently returns this:

        [id] => 33
        [name] => New Test
        [description] => 
        [default_branch] => 
        [owner] => array(
                        [id] => 1
                        [username] => username
                        [email] => [email protected]
                        [name] => User Name
                        [blocked] => 
                        [created_at] => 2012-12-18T13:23:46Z
                    )
        [private] => 1
        [issues_enabled] => 1
        [merge_requests_enabled] => 1
        [wall_enabled] => 1
        [wiki_enabled] => 1
        [created_at] => 2012-12-31T15:35:28Z
Assignee
Assign to
Time tracking