Commits

Tim Pettersen  committed c2aaebe

Trendy README.md

  • Participants
  • Parent commits 0b66a40

Comments (0)

Files changed (1)

+# Stash Redirect Plugin
+
+The Stash Redirect Plugin allows administrators to block access to moved
+repositories, and notify clients of their new location. It is configured
+via a simple REST API.
+
+## REST API
+
+### GET /rest/redirect/1.0/redirects (list all registered redirects)
+
+List redirects for all repositories you have administration rights for.
+
+### GET /rest/redirect/1.0/redirects/1
+
+Display the redirect for the repository with id = 1
+
+### PUT /rest/redirect/1.0/redirects/1?redirect=http://foo
+
+Add add a redirect to http://foo for the repository with id = 1
+
+### DELETE /rest/redirect/1.0/redirects/1
+
+Delete the redirect for the repository with id = 1
+
+## Notes
+
+- You must have administrative permissions for a repository in order
+  to register or view configured redirects for it. In Stash 1.3 this
+  means you must be a project administrator for the project containing
+  the repository, a global administrator or system administrator.
+
+- You need the repository's id to use the above REST API. One way of
+  resolving this is using the excellent [Repository Sys-Info Plugin][1].
+
+[1]: https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.repository-sysinfo-plugin