New in Kiln 2.4
Repositories aliases allow you to create a URL that points to a target repository, which is allowed to change while the alias' URL remains the same. Kiln provides a full read and write API to repo aliases.
Api/{version}/RepoAlias/Create (POST)
Creates a repository alias with the specified name for the given repository. You must be a project administrator to create an alias in a project.
Takes the following parameters:
- ixRepo (required): the repository to attach the alias to.
-
sName (required): the name of the alias. May contain word characters, hyphens, and parentheses (i.e. must match
^[\w- \(\)]+$
)
Returns a repository alias record. The alias's URL will be http://your.kilnhg.com/RepoAlias/sProject/sSlug
, where sProject
is the slug of repository's project, and the sSlug
is the slug of the alias's name.
Api/{version}/RepoAlias/{ixRepoAlias} (GET)
Api/{version}/RepoAlias/{ixRepoAlias} (POST)
- ixRepo
- sName
Any parameter that is not specified remains unchanged. Requires administrator permissions on the repository's project.
Api/{version}/RepoAlias/{ixRepoAlias}/Delete (POST)
Api/{version}/RepoAlias/Find (GET)
http://your.kilnhg.com/RepoAlias/my-project/my-alias
will be found at http://your.kilnhg.com/Api/1.0/RepoAlias/Find?sProjectSlug=my-project&sAliasSlug=my-alias
.