mod-erm-usage-harvester periodic API (v1)

http://localhost/erm-usage-harvester/periodic

Table of contents

mod-erm-usage-harvester periodic API

This documents the API calls that can be made to mod-erm-usage-harvester periodic API

/erm-usage-harvester/periodic

Manage periodic harvesting configuration

GET /erm-usage-harvester/periodic

GET /erm-usage-harvester/periodic

Response 200

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "PeriodicConfig Schema",
  "description": "Settings for periodic harvesting",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "startAt": {
      "description": "the date periodic harvesting should run for the first time",
      "type": "string",
      "format": "date-time"
    },
    "lastTriggeredAt": {
      "description": "the date periodic harvesting was last triggered at",
      "type": "string",
      "format": "date-time"
    },
    "periodicInterval": {
      "description": "period between harvesting attempts",
      "type": "string",
      "enum": [
        "daily",
        "weekly",
        "monthly"
      ]
    }
  },
  "required": [
    "startAt",
    "periodicInterval"
  ],
  "additionalProperties": true
}

POST /erm-usage-harvester/periodic

POST /erm-usage-harvester/periodic
Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "PeriodicConfig Schema",
  "description": "Settings for periodic harvesting",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "startAt": {
      "description": "the date periodic harvesting should run for the first time",
      "type": "string",
      "format": "date-time"
    },
    "lastTriggeredAt": {
      "description": "the date periodic harvesting was last triggered at",
      "type": "string",
      "format": "date-time"
    },
    "periodicInterval": {
      "description": "period between harvesting attempts",
      "type": "string",
      "enum": [
        "daily",
        "weekly",
        "monthly"
      ]
    }
  },
  "required": [
    "startAt",
    "periodicInterval"
  ],
  "additionalProperties": true
}

DELETE /erm-usage-harvester/periodic

DELETE /erm-usage-harvester/periodic