REST updates.

Rest.cs got a lot of commenting at last.
Redirects and upgrades can now be easily added for REST routes via the `Rest.RegisterRedirect(base, target, upgrade)` method.
Redirects added for all routes. Upgrades added for `/world/bloodmoon` and `/v2/world/autosave`, as they both use old-style REST verbs.
This commit is contained in:
White 2017-02-02 14:28:35 +10:30
parent 9d4ced58b9
commit e3a8112b5b
4 changed files with 346 additions and 31 deletions

View file

@ -34,7 +34,7 @@ namespace Rests
private RestCommandD callback;
/// <summary>
///
/// Creates a new <see cref="RestCommand"/> used with the REST API
/// </summary>
/// <param name="name">Used for identification</param>
/// <param name="uritemplate">Url template</param>
@ -51,7 +51,7 @@ namespace Rests
}
/// <summary>
///
/// Creates a new <see cref="RestCommand"/> used with the REST API
/// </summary>
/// <param name="uritemplate">Url template</param>
/// <param name="callback">Rest Command callback</param>