v2 REST API: Create Repository returns a v1 Repository "model" (BB-14648)

Issue #11811 resolved
Tommy Schaefer created an issue

When creating a repository through the v2 REST API, POSTing to https://api.bitbucket.org/2.0/repositories/owner/slug with repository data, a v1 repository "model" is returned:

{
  "scm": "git",
  "has_wiki": false,
  "last_updated": "2015-09-08T19:52:38.784",
  "no_forks": false,
  "created_on": "2015-09-08T19:52:38.731",
  "owner": "owner",
  "logo": "logo_link", 
  "email_mailinglist": "",
  "is_mq": false,
  "size": 0,
  "read_only": false,
  "fork_of": null,
  "mq_of": null,
  "state": "creating",
  ...
}

I think it would make more sense if it returned a v2 Repository model:

{
    "scm": "git",
    "has_wiki": false,
    "description": "",
    "links": {
        ...
    },
    "fork_policy": "allow_forks",
    "name": "name",
    "language": "",
    "created_on": "2011-12-20T16:35:06.480042+00:00",
    ...
}

Is this something that's in the works now or up for discussion?

Thank you so much!

Comments (3)

  1. Log in to comment