merge api and api_service