added the beginning of a service stack abstraction

This commit is contained in:
LukePulverenti
2013-03-01 21:44:46 -05:00
parent 9f8aa880aa
commit 7bca933af0
13 changed files with 99 additions and 29 deletions

View File

@@ -1,4 +1,5 @@

using System.Collections.Generic;
namespace MediaBrowser.Common.Net
{
/// <summary>
@@ -6,5 +7,10 @@ namespace MediaBrowser.Common.Net
/// </summary>
public interface IRestfulService
{
/// <summary>
/// Gets the routes.
/// </summary>
/// <returns>IEnumerable{RouteInfo}.</returns>
IEnumerable<RouteInfo> GetRoutes();
}
}

View File

@@ -0,0 +1,28 @@
using System;
namespace MediaBrowser.Common.Net
{
/// <summary>
/// Class RouteInfo
/// </summary>
public class RouteInfo
{
/// <summary>
/// Gets or sets the path.
/// </summary>
/// <value>The path.</value>
public string Path { get; set; }
/// <summary>
/// Gets or sets the verbs.
/// </summary>
/// <value>The verbs.</value>
public string Verbs { get; set; }
/// <summary>
/// Gets or sets the type of the request.
/// </summary>
/// <value>The type of the request.</value>
public Type RequestType { get; set; }
}
}