new API: GET /api/resources/:id.

This API will respond the id of resource data with type.