Island: Update API spec comments after rebase

This commit is contained in:
Shreya Malviya 2022-05-27 23:59:20 +05:30
parent c54b3da86d
commit 8b1a82814e
3 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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.

View File

@ -8,6 +8,7 @@ logger = logging.getLogger(__name__)
class VersionUpdate(AbstractResource):
# API Spec: Rename to /version-info
urls = ["/api/version-update"]
def __init__(self):