Query to return the inbound api data for the service

This commit is contained in:
Rebecca Law
2017-06-19 16:35:15 +01:00
parent bd3704d123
commit ff5e8c1f33
3 changed files with 24 additions and 2 deletions

View File

@@ -30,3 +30,7 @@ def reset_service_inbound_api(service_inbound_api, updated_by_id, url=None, bear
def get_service_inbound_api(service_inbound_api_id, service_id):
return ServiceInboundApi.query.filter_by(id=service_inbound_api_id,
service_id=service_id).first()
def get_service_inbound_api_for_service(service_id):
return ServiceInboundApi.query.filter_by(service_id=service_id).first()