Fixed mongodb rest API for /:collection/:id access