Quick Start

1. Download the source.
2. Add the RestUpMVC.dll assembly as a reference in your project.
3. Register the XML value provider factories at application start
protected void Application_Start()
{
    ValueProviderFactories.Factories.Add(new XmlValueProviderFactory());
}
4. Register your resources at application start. This will automatically create routes to that resource for the common HTTP methods. RestUpMVC follows certain conventions which allow you to easily expose resources with minimal configuration.
protected void Application_Start()
{
    RestUpMVCConfiguration.Current.RegisterResource(typeof(Project));
}
5. In your controller action, return the correct response.
public ActionResult List()
{
    var project = from p in new MyDataContext().Projects where p.name = "my project" select p;
    return this.RestOk(project);
}
6. See the RestUpMVC.SampleWeb application included with the release to get started quickly.
7. See the full documentation for to learn more.

Last edited Feb 16, 2011 at 7:29 PM by Broncanus, version 14

Comments

No comments yet.