0
DogId (n:n) WalkerId
WalkerId (n:n) WalkPatternId
WalkPatternId (n:n) DogId

I need to pass DogId, WalkerId, WalkPatternIdto my GET method:

public HttpResponseMessage Get(int dogid, int walkerId, int walkPatternId)
{
  return _walkingService(dogid, walkerId, walkPatternId);
}

It doesn't seem to RESTful to have the client GET against a URI that looks like this:

http://mydomain/2342/5312/4345243

On the other hand, I can't do a FromBodyon a GET.

How do I define a RESTful GET method that accepts 3 parameters, all having a many to many relationship with each other?

Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062

0 Answers0