forked from p34709852/monkey
Island: Update API spec comments after rebase
This commit is contained in:
parent
c54b3da86d
commit
8b1a82814e
|
@ -155,8 +155,6 @@ def init_api_resources(api: FlaskDIWrapper):
|
|||
api.add_resource(IslandConfiguration)
|
||||
api.add_resource(ConfigurationExport)
|
||||
api.add_resource(ConfigurationImport)
|
||||
# API Spec: Rename to /api/agent-binaries, because information about agent runs
|
||||
# and binary files are different resources
|
||||
api.add_resource(MonkeyDownload)
|
||||
api.add_resource(NetMap)
|
||||
api.add_resource(Edge)
|
||||
|
@ -180,11 +178,8 @@ def init_api_resources(api: FlaskDIWrapper):
|
|||
api.add_resource(FileUpload)
|
||||
|
||||
api.add_resource(PropagationCredentials)
|
||||
# API Spec: Should use RPC convention
|
||||
api.add_resource(RemoteRun)
|
||||
# API Spec: Rename to /version-info
|
||||
api.add_resource(VersionUpdate)
|
||||
# API Spec: Fix endpoint (see comment in StopAgentCheck)
|
||||
api.add_resource(StopAgentCheck)
|
||||
api.add_resource(StopAllAgents)
|
||||
|
||||
|
|
|
@ -20,6 +20,8 @@ class UnsupportedOSError(Exception):
|
|||
|
||||
|
||||
class MonkeyDownload(AbstractResource):
|
||||
# API Spec: Rename to /api/agent-binaries, because information about agent runs
|
||||
# and binary files are different resources
|
||||
urls = ["/api/agent/download/<string:host_os>"]
|
||||
|
||||
# Used by monkey. can't secure.
|
||||
|
|
|
@ -8,6 +8,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class VersionUpdate(AbstractResource):
|
||||
# API Spec: Rename to /version-info
|
||||
urls = ["/api/version-update"]
|
||||
|
||||
def __init__(self):
|
||||
|
|
Loading…
Reference in New Issue