openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_QUERY_API_METHODS:
    post:
      tags:
      - SWOR
      summary: Find API methods
      operationId: /rfc/SWO_QUERY_API_METHODS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language in which texts are read
                METHOD:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: 'Method   (if blank: all)'
                OBJECT_NAME:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: Object name
                OBJTYPE:
                  type: string
                  default: ' '
                  maxLength: 10
                  description: 'Object type (if blank: all)'
                WITH_IMPL_METHODS:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read methods in 'implemented' status as well?
                WITH_INTERNAL_API_METHODS:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'Method   (if blank: all)'
                WITH_OBJECT_NAMES:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read texts as well
                WITH_TEXTS:
                  type: string
                  default: X
                  maxLength: 1
                  description: Read texts as well
                API_METHODS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      METHOD:
                        type: string
                        maxLength: 32
                        description: Method
                      METHODNAME:
                        type: string
                        maxLength: 32
                        description: Element name in upper/lower case
                      DESCRIPT:
                        type: string
                        maxLength: 20
                        description: Name
                      SHORTTEXT:
                        type: string
                        maxLength: 80
                        description: Description
                      FUNCTION:
                        type: string
                        maxLength: 30
                        description: Name of ABAP Function
                      CLASSVERB:
                        type: string
                        maxLength: 1
                        description: 'Instance-independent  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      APITYPE:
                        type: string
                        maxLength: 1
                        description: 'API type  enumValues: ""=Business API,R=Repository API'
                        enum:
                        - ''
                        - R
                      OBJECTNAME:
                        type: string
                        maxLength: 32
                        description: Object name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  API_METHODS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        METHOD:
                          type: string
                          maxLength: 32
                          description: Method
                        METHODNAME:
                          type: string
                          maxLength: 32
                          description: Element name in upper/lower case
                        DESCRIPT:
                          type: string
                          maxLength: 20
                          description: Name
                        SHORTTEXT:
                          type: string
                          maxLength: 80
                          description: Description
                        FUNCTION:
                          type: string
                          maxLength: 30
                          description: Name of ABAP Function
                        CLASSVERB:
                          type: string
                          maxLength: 1
                          description: 'Instance-independent  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        APITYPE:
                          type: string
                          maxLength: 1
                          description: 'API type  enumValues: ""=Business API,R=Repository API'
                          enum:
                          - ''
                          - R
                        OBJECTNAME:
                          type: string
                          maxLength: 32
                          description: Object name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
