# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
---
get:
  operationId: get-paths
  summary: Get a list of all paths.
  tags:
    - paths
  responses:
    '200':
      description: Success
      content:
        application/json:
          schema:
              type: array
              items:
                $ref: ../components/schemas/config/path.yaml
          examples:
            example1:
              value:
                - uuid: 251c99af-4b05-9de4-367e-2bb550412e56
                  state: running
                  mode: any
                  enabled: true
                  builtin: true
                  reverse: false
                  original_sequence_no: true
                  last_sequence: false
                  poll: false
                  queuelen: 1024
                  signals: []
                  hooks: []
                  in:
                    - udp_node1
                  out:
                    - web_node1
                - uuid: 61b5674b-95fa-b35f-bff8-c877acf21e3b
                  state: running
                  mode: any
                  enabled: true
                  builtin: true
                  reverse: false
                  original_sequence_no: true
                  last_sequence: false
                  poll: false
                  queuelen: 1024
                  signals: []
                  hooks: []
                  in:
                    - web_node1
                  out:
                    - udp_node1

    '400':
      description: Failure