David,

api/domains/5/subnets are the subnets that are associated with domain that has and id = 5

api/subnets are all the subnets



----- Original Message -----
> From: "David Davis" <notifications@github.com>
> To: "theforeman/theforeman.org" <theforeman.org@noreply.github.com>
> Cc: "Joseph Magen" <jmagen@redhat.com>
> Sent: Monday, October 21, 2013 11:12:54 PM
> Subject: Re: [theforeman.org] beginning developer documentation for the v2 api standards (#106)
> 
> > @@ -0,0 +1,5 @@
> > +`GET /api/domains/5/subnets` is an example of a nested route. `subnets`
> > would be a nested resource under the `domain` object of id `5`.
> 
> So you give an example but you don't really explain what nested routes are.
> How is `/subnets` different than `domains/5/subnets`?
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/theforeman/theforeman.org/pull/106/files#r7106440