From ad7d726b524c57ffb048ff93c6f8e6befcae8db9 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Wed, 25 May 2022 12:35:53 +0300 Subject: [PATCH] Island: Add more comments about URL structure refactoring --- monkey/monkey_island/cc/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monkey/monkey_island/cc/app.py b/monkey/monkey_island/cc/app.py index da027bf62..015c2e4a0 100644 --- a/monkey/monkey_island/cc/app.py +++ b/monkey/monkey_island/cc/app.py @@ -155,6 +155,8 @@ def init_api_resources(api: FlaskDIWrapper): api.add_resource(IslandConfiguration) api.add_resource(ConfigurationExport) api.add_resource(ConfigurationImport) + # Rename to /api/agent-binary, because information about agent runs + # and binary files are different resources api.add_resource(MonkeyDownload) api.add_resource(NetMap) api.add_resource(Edge) @@ -173,12 +175,16 @@ def init_api_resources(api: FlaskDIWrapper): api.add_resource(Log) api.add_resource(IslandLog) + # These two should have the same url syntax api.add_resource(PBAFileDownload) api.add_resource(FileUpload) api.add_resource(PropagationCredentials) + # API Spec: Should use RPC convention api.add_resource(RemoteRun) + # Rename to /version-info api.add_resource(VersionUpdate) + # API Spec: Fix endpoint (see comment in StopAgentCheck) api.add_resource(StopAgentCheck) api.add_resource(StopAllAgents)