This project is read-only.

REST GET question - not directly related to WebApi

Topics: Web Api
Feb 6, 2012 at 5:38 PM


I was wondering exactly how one is to appropriately do selects in a REST framework when the input type is complex.

My example:

I am returning an price estimate for a users submission. They send in parameters, and I return the estimate for their sale.

public class PriceEstimate{public PriceEstimate Get(PriceEstimateRequest estimateRequest)
{return new PriceEstimate();}}

public class PriceEstimateRequest{
public string Name;
public string FirstName;
public string LastName;}


P.S. Does the code window work for anyone else? It doesn't work for me in ANY browser. :( Sorry about the formatting.