API implementation: basics done