========= Agent API ========= The Agent API is the API provided by the Server that the Agent uses to download its Longship, its Hammars and to upload its results. API Endpoints ------------- Longship ******** * GET /api/v1/longship/ Send ^^^^ * Hostname in the path Return ^^^^^^ .. code-block:: json { "hammars": [ "", "", ... ], "gobalrigging": { "": , ... }, "localrigging": { "": , ... }, "strikes": [ "": { "": , ... } ] } * variablevalue can be any valid JSON type Hammar ****** * GET /api/v1/hammar/ * GET /api/v1/hammar// Send ^^^^ * Hostname in path * Version in path (optional) Return ^^^^^^ * Hammar as a gzipped tar file Chronicle ****** * POST /api/v1/chronicle/ Send ^^^^ * Hostname in path * Report in body .. code-block:: json { "date": "", "hammars": [ "", ... ], "strikes": [ "": { "starttime": "", "endtime": "", "log": [ "", ... ] }, ... ] } Return ^^^^^^ .. code-block:: json { status: 'ok|rejected' }