Skip to content

Commit

Permalink
API added and YAML changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhanush-2397 committed Dec 11, 2023
1 parent 5dc936a commit 3e63bb4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,42 @@ paths:
description: "Something went wrong"
schema:
$ref: "#/definitions/generic_error"

/spec/change-state:
post:
tags:
- "spec"
summary: "Change the state of a processor group in NiFi"
description: "Change the state of a processor group in NiFi. It can either start the processor group or stop iy."
operationId: "changeState"
produces:
- "application/json"
parameters:
- in: "body"
name: "body"
required: true
schema:
type: "object"
properties:
processor_group_name:
type: "string"
example: "Run_adapters"
state:
type: "string"
example: "STOPPED"
responses:
200:
description: "Successfully changed the state"
schema:
type: "object"
properties:
message:
type: "string"
example: "changed the state of Run_adapters"
400:
description: "Something went wrong"
schema:
$ref: "#/definitions/generic_error"

definitions:
generic_error:
Expand Down

0 comments on commit 3e63bb4

Please sign in to comment.