changed api spec
Added routes for API, updated API