Skip to content

Instantly share code, notes, and snippets.

@fix
Created January 23, 2013 10:29
Show Gist options
  • Save fix/4604157 to your computer and use it in GitHub Desktop.
Save fix/4604157 to your computer and use it in GitHub Desktop.
Grails.org API

From the URLMapping.groovy file:

        "/api/v1.0/downloads"(controller: "download", action: "apiList")
        "/api/v1.0/download/$version"(controller: "download", action: "apiShow")

        "/api/v1.0/publish"(controller:"repository", action:"publish")
        "/api/v1.0/publish/$plugin/$version"(controller:"repository", action:"publish")
        "/api/v1.0/plugins/$category?"(controller: "plugin", action: "apiList")
        "/api/v1.0/plugin/$name/$version"(controller: "plugin") {
            action = [GET: "apiShow", PUT: "apiUpdate"]
            parseRequest = true
        }
        "/api/v1.0/plugin/$name"(controller: "plugin") {
            action = [GET: "apiShow", PUT: "apiUpdate"]
            parseRequest = true
        }
        "/api/v1.0/plugin/status/$name/$version"(controller: "pendingRelease", action: "status")
@pledbrook
Copy link

I'm wondering whether we should deprecate those URLs (again - I changed them once before). I don't see how versions in the URL really help matters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment