Merge pull request #1327 from alphagov/create-inbound-api

Create inbound api
This commit is contained in:
kentsanggds
2017-06-22 12:36:28 +01:00
committed by GitHub
7 changed files with 350 additions and 10 deletions

View File

@@ -56,11 +56,14 @@ def service_json(
created_at=None,
letter_contact_block=None,
permissions=None,
inbound_api=None,
):
if users is None:
users = []
if permissions is None:
permissions = []
if inbound_api is None:
inbound_api = []
return {
'id': id_,
'name': name,
@@ -80,6 +83,7 @@ def service_json(
'letter_contact_block': letter_contact_block,
'dvla_organisation': '001',
'permissions': permissions,
'inbound_api': inbound_api,
}