Technical Workshops/Custom Plugin Calling Webservice/Plugins/Reflection/API_Plugin_Reflection_OAPI_GET_Params.yaml [1:52]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
openapi: 3.0.0

info:
    title: REST API Reflection using GET params
    description: Skills for getting reflection input for a GET REST API call using Params
    version: "v1"

servers:
    # Replace this with your own URL where the OpenAPI spec file is located.
    - url: http://172.13.112.25:5000
 
paths:
    /params/{input}:
        get:
            operationId: ReflectionDataGETParams
            summary: A Reflection Data Plugin that reads values from URL Params and returns them
            parameters:
                - in: path
                  name: input
                  schema:
                      type: string
                  required: true
                  description: Parameter Input
                - in: query
                  name: value1
                  schema:
                      type: string
                  required: true
                  description: Value Parameter 1, default to "Dummy Value 1"
                - in: query
                  name: value2
                  schema:
                      type: string
                  required: true
                  description: Value Parameter 2, default to "Dummy Value 2"
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: "#/components/schemas/ReflectionDataParamsPluginResponse"

# This is referred to by $ref
components:
    schemas:
        ReflectionDataParamsPluginResponse:
            type: object
            properties:
                objecttype:
                    type: string
                    description: Object type
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Technical Workshops/Custom Plugin Calling Webservice/Plugins/Reflection/API_Plugin_Reflection_OAPI_GET_Params_Partial_JSON.yaml [1:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
openapi: 3.0.0

info:
    title: REST API Reflection using GET params
    description: Skills for getting reflection input for a GET REST API call using Params
    version: "v1"

servers:
    # Replace this with your own URL where the OpenAPI spec file is located.
    - url: http://172.13.112.25:5000
 
paths:
    /params/{input}:
        get:
            operationId: ReflectionDataGETParams
            summary: A Reflection Data Plugin that reads values from URL Params and returns them
            parameters:
                - in: path
                  name: input
                  schema:
                      type: string
                  required: true
                  description: Parameter Input
                - in: query
                  name: value1
                  schema:
                      type: string
                  required: true
                  description: Value Parameter 1, default to "Dummy Value 1"
                - in: query
                  name: value2
                  schema:
                      type: string
                  required: true
                  description: Value Parameter 2, default to "Dummy Value 2"
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: "#/components/schemas/ReflectionDataParamsPluginResponse"

# This is referred to by $ref, 
# several fields will be in orig. REST API but not accounted for in following schema.
# Copilot will be able to display the json values not specified explicitly below, but since their
# description field is missing it wont be able to format them correctly.
components:
    schemas:
        ReflectionDataParamsPluginResponse:
            type: object
            properties:
                objecttype:
                    type: string
                    description: Object type
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



