openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/STREE_STRUCTURE_TYPE_READ:
    post:
      tags:
      - SHI2
      summary: Read the data for one or more structure types
      operationId: /rfc/STREE_STRUCTURE_TYPE_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                E_ALLOWED_NODE_TYPES:
                  type: array
                  items:
                    type: object
                    properties:
                      TREE_TYPE:
                        type: string
                        maxLength: 5
                        description: Structure Type
                      NODE_TYPE:
                        type: string
                        maxLength: 4
                        description: Valid Node Types in Structure Repository
                E_STRUCTURE_TYPES:
                  type: array
                  items:
                    type: object
                    properties:
                      TREE_TYPE:
                        type: string
                        maxLength: 5
                        description: Structure Type
                      ACTIVE:
                        type: string
                        maxLength: 1
                        description: 'Flag whether active or inactive  enumValues: X=Active,""=Inactive'
                        enum:
                        - X
                        - ''
                      DB_IDENT:
                        type: string
                        maxLength: 5
                        description: Structure Type
                      DB_TABLE:
                        type: string
                        maxLength: 15
                        description: General hierarchy tool structure type table name
                      TRANS_OBJ:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OWN_DATA:
                        type: string
                        maxLength: 1
                        description: 'Flag: 0 = negative; 1 = positive  enumValues: 0=Negative,1=Positive'
                        enum:
                        - '0'
                        - '1'
                      CHANGEDOC:
                        type: string
                        maxLength: 1
                        description: 'Use of change documents  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      NO_TEXT:
                        type: string
                        maxLength: 1
                        description: 'Structure Contains No Text  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      FUSER:
                        type: string
                        maxLength: 12
                        description: Created by
                      FDATE:
                        type: string
                        format: date
                        description: Created on
                      FTIME:
                        type: string
                        maxLength: 6
                        description: Created at
                      FRELEASE:
                        type: string
                        maxLength: 4
                        description: Release Status of SAP System
                      LUSER:
                        type: string
                        maxLength: 12
                        description: Last changed by
                      LDATE:
                        type: string
                        format: date
                        description: Last Changed On
                      LTIME:
                        type: string
                        maxLength: 6
                        description: Time of Last Change
                      LRELEASE:
                        type: string
                        maxLength: 4
                        description: Release Status of SAP System
                E_STRUCTURE_TYPES_TEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Documentation language
                      TREE_TYPE:
                        type: string
                        maxLength: 5
                        description: Structure Type
                      TEXT:
                        type: string
                        maxLength: 75
                        description: Explanatory text
                I_STRUCTURE_TYPES:
                  type: array
                  items:
                    type: object
                    properties:
                      TREE_TYPE:
                        type: string
                        maxLength: 5
                        description: Structure Type
                      TEXT:
                        type: string
                        maxLength: 75
                        description: Explanatory text
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language Key
                      CHANGEDOC:
                        type: string
                        maxLength: 1
                        description: 'Use of change documents  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      DB_IDENT:
                        type: string
                        maxLength: 5
                        description: Structure Type
                      DB_TABLE:
                        type: string
                        maxLength: 15
                        description: General hierarchy tool structure type table name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESSAGE:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGTXT:
                        type: string
                        maxLength: 256
                        description: Text, 256 Characters
                  E_ALLOWED_NODE_TYPES:
                    type: array
                    items:
                      type: object
                      properties:
                        TREE_TYPE:
                          type: string
                          maxLength: 5
                          description: Structure Type
                        NODE_TYPE:
                          type: string
                          maxLength: 4
                          description: Valid Node Types in Structure Repository
                  E_STRUCTURE_TYPES:
                    type: array
                    items:
                      type: object
                      properties:
                        TREE_TYPE:
                          type: string
                          maxLength: 5
                          description: Structure Type
                        ACTIVE:
                          type: string
                          maxLength: 1
                          description: 'Flag whether active or inactive  enumValues: X=Active,""=Inactive'
                          enum:
                          - X
                          - ''
                        DB_IDENT:
                          type: string
                          maxLength: 5
                          description: Structure Type
                        DB_TABLE:
                          type: string
                          maxLength: 15
                          description: General hierarchy tool structure type table name
                        TRANS_OBJ:
                          type: string
                          maxLength: 4
                          description: Object Type
                        OWN_DATA:
                          type: string
                          maxLength: 1
                          description: 'Flag: 0 = negative; 1 = positive  enumValues: 0=Negative,1=Positive'
                          enum:
                          - '0'
                          - '1'
                        CHANGEDOC:
                          type: string
                          maxLength: 1
                          description: 'Use of change documents  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        NO_TEXT:
                          type: string
                          maxLength: 1
                          description: 'Structure Contains No Text  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        FUSER:
                          type: string
                          maxLength: 12
                          description: Created by
                        FDATE:
                          type: string
                          format: date
                          description: Created on
                        FTIME:
                          type: string
                          maxLength: 6
                          description: Created at
                        FRELEASE:
                          type: string
                          maxLength: 4
                          description: Release Status of SAP System
                        LUSER:
                          type: string
                          maxLength: 12
                          description: Last changed by
                        LDATE:
                          type: string
                          format: date
                          description: Last Changed On
                        LTIME:
                          type: string
                          maxLength: 6
                          description: Time of Last Change
                        LRELEASE:
                          type: string
                          maxLength: 4
                          description: Release Status of SAP System
                  E_STRUCTURE_TYPES_TEXT:
                    type: array
                    items:
                      type: object
                      properties:
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Documentation language
                        TREE_TYPE:
                          type: string
                          maxLength: 5
                          description: Structure Type
                        TEXT:
                          type: string
                          maxLength: 75
                          description: Explanatory text
                  I_STRUCTURE_TYPES:
                    type: array
                    items:
                      type: object
                      properties:
                        TREE_TYPE:
                          type: string
                          maxLength: 5
                          description: Structure Type
                        TEXT:
                          type: string
                          maxLength: 75
                          description: Explanatory text
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language Key
                        CHANGEDOC:
                          type: string
                          maxLength: 1
                          description: 'Use of change documents  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        DB_IDENT:
                          type: string
                          maxLength: 5
                          description: Structure Type
                        DB_TABLE:
                          type: string
                          maxLength: 15
                          description: General hierarchy tool structure type table name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
