forked from p15670423/monkey
Island: Add comment about 204 status code to AgentConfiguration resource
This commit is contained in:
parent
efab944e8b
commit
c86b637598
|
@ -26,6 +26,7 @@ class AgentConfiguration(AbstractResource):
|
||||||
try:
|
try:
|
||||||
configuration_object = AgentConfigurationObject.from_mapping(request.json)
|
configuration_object = AgentConfigurationObject.from_mapping(request.json)
|
||||||
self._agent_configuration_repository.store_configuration(configuration_object)
|
self._agent_configuration_repository.store_configuration(configuration_object)
|
||||||
|
# API Spec: Should return 204 (NO CONTENT)
|
||||||
return make_response({}, 200)
|
return make_response({}, 200)
|
||||||
except (InvalidConfigurationError, json.JSONDecodeError) as err:
|
except (InvalidConfigurationError, json.JSONDecodeError) as err:
|
||||||
return make_response(
|
return make_response(
|
||||||
|
|
Loading…
Reference in New Issue