-
Notifications
You must be signed in to change notification settings - Fork 94
Next Version TODOs
Jakub Filak edited this page Aug 13, 2019
·
3 revisions
Current:
create_request = northwind.entity_sets.Employees.create_entity()
create_request.set(**employee_data)
Proposed:
create_request = northwind.entity_sets.Employees.create_entity(**employee_data)
Current:
data = client.entity_sets.Releases.get_entities().select('releaseId,releaseName,releaseType').execute()
Proposed:
data = client.Releases.get_entities().select('releaseId,releaseName,releaseType').execute()
Current:
data = client.entity_sets.Releases.get_entities().select('releaseId,releaseName,releaseType').execute()
Proposed:
data = client.entity_sets.Releases.select('releaseId,releaseName,releaseType').execute()
Current:
products = northwind.functions.GetProductsByRating.parameter('rating', 16).execute()
Proposed:
products = northwind.GetProductsByRating.parameter('rating', 16).execute()
Current:
products = northwind.functions.GetProductsByRating.parameter('rating', 16).execute()
Proposed:
products = northwind.functions.GetProductsByRating(rating=16).execute()
Current:
customer = client.entity_sets.Customers.get_entity('ALFKI').execute()
Proposed:
customer = client.entity_sets.Customers('ALFKI').execute()
Current:
client.entity_sets.Employees.get_entities().select('City,Orders').filter("Country eq 'USA'").expand('Orders').execute()
Proposed:
client.entity_sets.Employees.get_entities().execute(select='City,Orders', filter="Country eq 'USA'", expand='Orders')