Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTful service to delete, cancel and reschedule Export Tasks #598

Closed
gunterze opened this issue Mar 23, 2017 · 0 comments
Closed

RESTful service to delete, cancel and reschedule Export Tasks #598

gunterze opened this issue Mar 23, 2017 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@gunterze
Copy link
Member

gunterze commented Mar 23, 2017

swagger.json

{
    "/monitor/export/{taskPK}": {
      "delete": {
        "tags": [
          "MONITOR-RS",
          "EXPORT-RS"
        ],
        "summary": "Delete Export Task",
        "operationId": "deleteExportTask",
        "parameters": [
          {
            "name": "taskPK",
            "in": "path",
            "description": "pk of task",
            "required": true,
            "type": "integer"
          }
        ],
        "responses": {
          "204": {
            "description": "successful operation"
          },
          "404": {
            "description": "task not found"
          },
          "default": {
            "description": "unexpected error"
          }
        }
      }
    },
    "/monitor/export/{taskPK}/cancel": {
      "post": {
        "tags": [
          "MONITOR-RS",
          "EXPORT-RS"
        ],
        "summary": "Cancel Export Task",
        "operationId": "cancelExportTask",
        "parameters": [
          {
            "name": "taskPK",
            "in": "path",
            "description": "pk of task",
            "required": true,
            "type": "integer"
          }
        ],
        "responses": {
          "204": {
            "description": "successful operation"
          },
          "404": {
            "description": "task not found"
          },
          "409": {
            "description": "tasks with status TO SCHEDULE, CANCELED, COMPLETED, WARNING or FAILED cannot be canceled"
          },
          "default": {
            "description": "unexpected error"
          }
        }
      }
    },
    "/monitor/export/{taskPK}/reschedule/{exporterID}": {
      "post": {
        "tags": [
          "MONITOR-RS",
          "EXPORT-RS"
        ],
        "summary": "Reschedule Export Task to potential different Exporter",
        "operationId": "rescheduleExportTask",
        "parameters": [
          {
            "name": "taskPK",
            "in": "path",
            "description": "pk of task",
            "required": true,
            "type": "integer"
          },
          {
            "name": "exporterID",
            "in": "path",
            "description": "Exporter ID",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "204": {
            "description": "successful operation"
          },
          "404": {
            "description": "task or exporter not found"
          },
          "409": {
            "description": "tasks with status SCHEDULED or IN PROCESS cannot be rescheduled"
          },
          "default": {
            "description": "unexpected error"
          }
        }
      }
    }
}

Related: #596
Requires: #594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants