Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

create a handler to return a list of repository tags #120

Closed
marcelometal opened this issue Jul 23, 2014 · 2 comments
Closed

create a handler to return a list of repository tags #120

marcelometal opened this issue Jul 23, 2014 · 2 comments
Assignees
Labels

Comments

@marcelometal
Copy link
Member

Something like:

GET /repository/:name/tags

That returns:

[
  {
    "name": "0.0.1",
    "ref": "xpto123456",
    "subject": "doing something",
    "author": {
        "name": "andrews medina",
        "email": "andrewsmedina@gmail.com"
    },
    "created_at": "2013-02-20T12:30:12-03:00",
    "_links": {
       "zipArchive": "",
       "tarArchive": ""
    }
  }
]
@ricardodani
Copy link
Contributor

I read this on python`s tornado write method:

    Note that lists are not converted to JSON because of a potential
    cross-site security vulnerability.  All JSON output should be
    wrapped in a dictionary.  More details at
    http://haacked.com/archive/2009/06/25/json-hijacking.aspx/ and
    https://github.com/facebook/tornado/issues/1009

So returning JSON arrays on API's must be avoided

@andrewsmedina
Copy link
Contributor

I think that it will not be a problem. Currently gandalf is not accessed by a browser.

@marcelometal marcelometal self-assigned this Jul 23, 2014
scorphus added a commit to scorphus/gandalf that referenced this issue Jul 23, 2014
…suru#123)

Add a new mock method to create branches on an existing repo
scorphus added a commit to scorphus/gandalf that referenced this issue Jul 23, 2014
…suru#123)

Add a new mock method to create branches on an existing repo
scorphus added a commit to scorphus/gandalf that referenced this issue Jul 23, 2014
…suru#123)

Add a new mock method to create branches on an existing repo
andrewsmedina added a commit that referenced this issue Jul 23, 2014
Implement methods to get branches in a repository (re #120 and #123)
scorphus added a commit to scorphus/gandalf that referenced this issue Jul 24, 2014
scorphus added a commit to scorphus/gandalf that referenced this issue Jul 24, 2014
scorphus added a commit to scorphus/gandalf that referenced this issue Jul 24, 2014
andrewsmedina added a commit that referenced this issue Jul 24, 2014
Warily treat empty or invalid pattern (re #120 and #123)
scorphus added a commit to scorphus/gandalf that referenced this issue Jul 24, 2014
scorphus added a commit to scorphus/gandalf that referenced this issue Jul 24, 2014
scorphus added a commit to scorphus/gandalf that referenced this issue Jul 24, 2014
marcelometal added a commit to marcelometal/gandalf that referenced this issue Jul 25, 2014
andrewsmedina added a commit that referenced this issue Jul 28, 2014
Added handler to return a list of repository tags (Fix #120)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants