Merge branch 'swaggerlikeus' of https://bitbucket.org/yackob03/quay into swaggerlikeus

This commit is contained in:
Joseph Schorr 2014-03-24 18:18:40 -04:00
commit acac2a7fa7

View file

@ -299,6 +299,7 @@ def app_view(application):
@resource('/v1/organization/<orgname>/applications') @resource('/v1/organization/<orgname>/applications')
@internal_only
class OrganizationApplications(ApiResource): class OrganizationApplications(ApiResource):
""" Resource for managing applications defined by an organizations. """ """ Resource for managing applications defined by an organizations. """
schemas = { schemas = {
@ -323,11 +324,11 @@ class OrganizationApplications(ApiResource):
'description': 'The URI for the application\'s homepage', 'description': 'The URI for the application\'s homepage',
}, },
'description': { 'description': {
'type': ['string', 'null'], 'type': 'string',
'description': 'The human-readable description for the application', 'description': 'The human-readable description for the application',
}, },
'gravatar_email': { 'gravatar_email': {
'type': ['string', 'null'], 'type': 'string',
'description': 'The e-mail address of the gravatar to use for the application', 'description': 'The e-mail address of the gravatar to use for the application',
} }
}, },
@ -382,6 +383,7 @@ class OrganizationApplications(ApiResource):
@resource('/v1/organization/<orgname>/applications/<client_id>') @resource('/v1/organization/<orgname>/applications/<client_id>')
@internal_only
class OrganizationApplicationResource(ApiResource): class OrganizationApplicationResource(ApiResource):
""" Resource for managing an application defined by an organizations. """ """ Resource for managing an application defined by an organizations. """
schemas = { schemas = {
@ -408,11 +410,11 @@ class OrganizationApplicationResource(ApiResource):
'description': 'The URI for the application\'s homepage', 'description': 'The URI for the application\'s homepage',
}, },
'description': { 'description': {
'type': ['string', 'null'], 'type': 'string',
'description': 'The human-readable description for the application', 'description': 'The human-readable description for the application',
}, },
'gravatar_email': { 'gravatar_email': {
'type': ['string', 'null'], 'type': 'string',
'description': 'The e-mail address of the gravatar to use for the application', 'description': 'The e-mail address of the gravatar to use for the application',
} }
}, },