Merfe of api definition. Added methods in api-1.0.js