Skip to content

Open API Spec

Ankit malik edited this page Aug 27, 2020 · 1 revision

Yaml file for the Swagger

openapi: 3.0.0
info:
  title: DynamoDB adapter
  contact: {}
  version: '1.0'
servers:
- url: https://localhost:9050/v1
  variables: {}
paths:
  /GetItem:
    post:
      tags:
      - Misc
      summary: GetItem
      description: >-
        The GetItem operation returns a set of attributes for the item with the given primary key.


        ## Parameters


        ##### TableName:

        The name of the table containing the requested item.


        ##### Key:

        A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve.


        ##### ProjectionExpression:

        A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.


        ##### ExpressionAttributeNames:

        One or more substitution tokens for attribute names in an expression.

        * To access an attribute whose name conflicts with a DynamoDB reserved word.

        * To create a placeholder for repeating occurrences of an attribute name in an expression.

        * To prevent special characters in an attribute name from being misinterpreted in an expression.
      operationId: GetItem
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetItemRequest'
            example:
              TableName: employee
              Key:
                emp_id:
                  N: 1
              ProjectionExpression: address, first_name, emp_id
              ExpressionAttributeNames:
                '#emp': emp_id
        required: true
      responses:
        200:
          description: ''
          headers: {}
      deprecated: false
  /BatchGetItem:
    post:
      tags:
      - Misc
      summary: BatchGetItem
      description: >-
        The BatchGetItem operation returns the attributes of one or more items from one or more tables. You identify requested items by primary key.

        ## Parameters

        ##### RequestItems:

        A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table. Each table name can be used only once per BatchGetItem request.

        ##### Keys:

        An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key value. For a composite key, you must provide both the partition key value and the sort key value.

        ##### ProjectionExpression:

        A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

        ##### ExpressionAttributeNames:

        One or more substitution tokens for attribute names in an expression.

        * To access an attribute whose name conflicts with a DynamoDB reserved word.

        * To create a placeholder for repeating occurrences of an attribute name in an expression.

        * To prevent special characters in an attribute name from being misinterpreted in an expression.
      operationId: BatchGetItem
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchGetItemRequest'
            example:
              RequestItems:
                employee:
                  Keys:
                  - emp_id:
                      N: 1
                  - emp_id:
                      N: 5
                  - emp_id:
                      N: 3
                  ProjectionExpression: '#emp, #add, first_name, last_name'
                  ExpressionAttributeNames:
                    '#emp': emp_id
                    '#add': address
                department:
                  Keys:
                  - d_id:
                      N: 100
                  - d_id:
                      N: 300
                  - d_id:
                      N: 200
                  ProjectionExpression: 'd_id, #dn, #ds'
                  ExpressionAttributeNames:
                    '#dn': d_name
                    '#ds': d_specialization
        required: true
      responses:
        200:
          description: ''
          headers: {}
      deprecated: false
  /Query:
    post:
      tags:
      - Misc
      summary: Query
      description: >-
        The Query operation finds items based on primary key values. You can query any table or secondary index that has a composite primary key (a partition key and a sort key).

        ## Parameters


        ##### TableName:

        The name of the table containing the requested item.


        ##### Key:

        A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve.


        ##### ProjectionExpression:

        A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.


        ##### ExpressionAttributeNames:

        One or more substitution tokens for attribute names in an expression.

        * To access an attribute whose name conflicts with a DynamoDB reserved word.

        * To create a placeholder for repeating occurrences of an attribute name in an expression.

        * To prevent special characters in an attribute name from being misinterpreted in an expression.


        ##### ExclusiveStartKey

        The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.


        ##### ExpressionAttributeValues

        One or more values that can be substituted in an expression.


        ##### FilterExpression

        A string that contains conditions that applies after the Query operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.


        ##### IndexName

        The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the IndexName parameter, you must also provide TableName.


        ##### KeyConditionExpression

        The condition that specifies the key values for items to be retrieved by the Query action.

        The condition must perform an equality test on a single partition key value.


        ##### Limit

        The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off.


        ##### ScanIndexForward

        Specifies the order for index traversal: If true (default), the traversal is performed in ascending order; if false, the traversal is performed in descending order.


        ##### Select

        The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.

        * COUNT - Returns the number of matching items, rather than the matching items themselves.
      operationId: Query
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryRequest'
            example:
              TableName: employee
              IndexName: emp_id
              Limit: 3
              ConsistentRead: true
              ProjectionExpression: emp_id, address, first_name
              KeyConditionExpression: '#eid > :v1'
              ExpressionAttributeValues:
                :v1:
                  N: 2
        required: true
      responses:
        200:
          description: ''
          headers: {}
      deprecated: false
  /Scan:
    post:
      tags:
      - Misc
      summary: Scan
      description: >-
        The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB return fewer items, you can provide a FilterExpression operation.


        ## Parameters


        ##### TableName:

        The name of the table containing the requested item.


        ##### Key:

        A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve.


        ##### ProjectionExpression:

        A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.


        ##### ExpressionAttributeNames:

        One or more substitution tokens for attribute names in an expression.

        * To access an attribute whose name conflicts with a DynamoDB reserved word.

        * To create a placeholder for repeating occurrences of an attribute name in an expression.

        * To prevent special characters in an attribute name from being misinterpreted in an expression.


        ##### ExclusiveStartKey

        The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.


        ##### ExpressionAttributeValues

        One or more values that can be substituted in an expression.


        ##### FilterExpression

        A string that contains conditions that applies after the Query operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.


        ##### IndexName

        The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the IndexName parameter, you must also provide TableName.


        ##### Limit

        The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off.


        ##### Select

        The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.

        * COUNT - Returns the number of matching items, rather than the matching items themselves.
      operationId: Scan
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScanRequest'
            example:
              tableName: employee
              Limit: 3
              ProjectionExpression: 'address, #ag, emp_id, first_name, last_name'
              FilterExpression: '#ag > :val1 '
              ExpressionAttributeNames:
                '#ag': age
              ExpressionAttributeValues:
                :val1:
                  N: 10
              ExclusiveStartKey:
                emp_id:
                  N: 4
                offset:
                  N: 3
        required: true
      responses:
        200:
          description: ''
          headers: {}
      deprecated: false
  /UpdateItem:
    post:
      tags:
      - Misc
      summary: UpdateItem
      description: "Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).\n\n## Parameters\n\n##### Key \nThe primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.\n\n##### TableName\nThe name of the table containing the item to update.\n\n##### ConditionExpression\nA condition that must be satisfied in order for a conditional update to succeed.\n\n##### ExpressionAttributeNames\nOne or more substitution tokens for attribute names in an expression.\n* To access an attribute whose name conflicts with a DynamoDB reserved word.\n* To create a placeholder for repeating occurrences of an attribute name in an expression.\n* To prevent special characters in an attribute name from being misinterpreted in an expression.\n\n##### ExpressionAttributeValues\nOne or more values that can be substituted in an expression.\n\n##### ReturnValues\nUse ReturnValues if you want to get the item attributes as they appear before or after they are updated. For UpdateItem, the valid values are:\n\n##### UpdateExpression\nAn expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them.\nOperations: SET, REMOVE, ADD, DELETE"
      operationId: UpdateItem
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateItemRequest'
            example:
              TableName: employee
              Key:
                emp_id:
                  N: 1
              ConditionExpression: '#age > :val2'
              UpdateExpression: 'SET age = :age  '
              ExpressionAttributeValues:
                :age:
                  N: 10
                :val2:
                  N: 9
              ExpressionAttributeNames:
                '#ag': age
              ReturnValues: ALL_NEW
        required: true
      responses:
        200:
          description: ''
          headers: {}
      deprecated: false
  /PutItem:
    post:
      tags:
      - Misc
      summary: PutItem
      operationId: PutItem
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutItemRequest'
            example:
              TableName: employee
              Item:
                age:
                  N: 10
                emp_id:
                  N: 1
              ConditionExpression: age > :val2
              ExpressionAttributeValues:
                :val2:
                  N: 9
              ExpressionAttributeNames:
                '#ag': age
        required: true
      responses:
        200:
          description: ''
          headers: {}
      deprecated: false
  /DeleteItem:
    post:
      tags:
      - Misc
      summary: DeleteItem
      description: >-
        Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.


        ## Parameters


        ##### TableName:

        The name of the table containing the requested item.


        ##### Key:

        A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve.


        ##### ConditionExpression

        A condition that must be satisfied in order for a conditional DeleteItem to succeed.


        ##### ExpressionAttributeNames:

        One or more substitution tokens for attribute names in an expression.

        * To access an attribute whose name conflicts with a DynamoDB reserved word.

        * To create a placeholder for repeating occurrences of an attribute name in an expression.

        * To prevent special characters in an attribute name from being misinterpreted in an expression.


        ##### ExpressionAttributeValues

        One or more values that can be substituted in an expression.
      operationId: DeleteItem
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteItemRequest'
            example:
              TableName: employee
              Key:
                emp_id:
                  N: 6
              ConditionExpression: age > :val2
              ExpressionAttributeValues:
                :val2:
                  N: 9
              ExpressionAttributeNames:
                '#ag': age
        required: true
      responses:
        200:
          description: ''
          headers: {}
      deprecated: false
  /BatchWriteItem:
    post:
      tags:
      - Misc
      summary: BatchWriteItem
      description: "The BatchWriteItem operation puts or deletes multiple items in one or more tables.\n\n## Parameters\n#####  RequestItems\nA map of one or more table names and, for each table, a list of operations to be performed (DeleteRequest or PutRequest). Each element in the map consists of the following:\n##### DeleteRequest:\nPerform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement:\n\n*Key* - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.\n\n##### PutRequest:\n*Item* - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. \nIf you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition."
      operationId: BatchWriteItem
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchWriteItemRequest'
            example:
              RequestItems:
                employee:
                - PutRequest:
                    Item:
                      emp_id:
                        N: 1
                      address:
                        S: Shamli
                      age:
                        N: 10
                      first_name:
                        S: Marc
                      last_name:
                        S: Richards
                - PutRequest:
                    Item:
                      emp_id:
                        N: 2
                      address:
                        S: Ney York
                      age:
                        N: 20
                      first_name:
                        S: Catalina
                      last_name:
                        S: Smith
                - PutRequest:
                    Item:
                      emp_id:
                        N: 3
                      address:
                        S: Pune
                      age:
                        N: 30
                      first_name:
                        S: Alice
                      last_name:
                        S: Trentor
                - DeleteRequest:
                    Key:
                      emp_id:
                        N: 4
                - DeleteRequest:
                    Key:
                      emp_id:
                        N: 5
        required: true
      responses:
        200:
          description: ''
          headers: {}
      deprecated: false
components:
  schemas:
    GetItemRequest:
      title: GetItemRequest
      required:
      - TableName
      - Key
      - ProjectionExpression
      - ExpressionAttributeNames
      type: object
      properties:
        TableName:
          type: string
        Key:
          $ref: '#/components/schemas/Key'
        ProjectionExpression:
          type: string
        ExpressionAttributeNames:
          $ref: '#/components/schemas/ExpressionAttributeNames'
      example:
        TableName: employee
        Key:
          emp_id:
            N: 1
        ProjectionExpression: address, first_name, emp_id
        ExpressionAttributeNames:
          '#emp': emp_id
    Key:
      title: Key
      required:
      - emp_id
      type: object
      properties:
        emp_id:
          $ref: '#/components/schemas/EmpId'
      example:
        emp_id:
          N: 1
    EmpId:
      title: EmpId
      required:
      - N
      type: object
      properties:
        N:
          type: string
      example:
        N: 1
    ExpressionAttributeNames:
      title: ExpressionAttributeNames
      required:
      - '#emp'
      type: object
      properties:
        '#emp':
          type: string
      example:
        '#emp': emp_id
    BatchGetItemRequest:
      title: BatchGetItemRequest
      required:
      - RequestItems
      type: object
      properties:
        RequestItems:
          $ref: '#/components/schemas/RequestItems'
      example:
        RequestItems:
          employee:
            Keys:
            - emp_id:
                N: 1
            - emp_id:
                N: 5
            - emp_id:
                N: 3
            ProjectionExpression: '#emp, #add, first_name, last_name'
            ExpressionAttributeNames:
              '#emp': emp_id
              '#add': address
          department:
            Keys:
            - d_id:
                N: 100
            - d_id:
                N: 300
            - d_id:
                N: 200
            ProjectionExpression: 'd_id, #dn, #ds'
            ExpressionAttributeNames:
              '#dn': d_name
              '#ds': d_specialization
    RequestItems:
      title: RequestItems
      required:
      - employee
      - department
      type: object
      properties:
        employee:
          $ref: '#/components/schemas/Employee'
        department:
          $ref: '#/components/schemas/Department'
      example:
        employee:
          Keys:
          - emp_id:
              N: 1
          - emp_id:
              N: 5
          - emp_id:
              N: 3
          ProjectionExpression: '#emp, #add, first_name, last_name'
          ExpressionAttributeNames:
            '#emp': emp_id
            '#add': address
        department:
          Keys:
          - d_id:
              N: 100
          - d_id:
              N: 300
          - d_id:
              N: 200
          ProjectionExpression: 'd_id, #dn, #ds'
          ExpressionAttributeNames:
            '#dn': d_name
            '#ds': d_specialization
    Employee:
      title: Employee
      required:
      - Keys
      - ProjectionExpression
      - ExpressionAttributeNames
      type: object
      properties:
        Keys:
          type: array
          items:
            $ref: '#/components/schemas/Key'
          description: ''
        ProjectionExpression:
          type: string
        ExpressionAttributeNames:
          $ref: '#/components/schemas/ExpressionAttributeNames1'
      example:
        Keys:
        - emp_id:
            N: 1
        - emp_id:
            N: 5
        - emp_id:
            N: 3
        ProjectionExpression: '#emp, #add, first_name, last_name'
        ExpressionAttributeNames:
          '#emp': emp_id
          '#add': address
    ExpressionAttributeNames1:
      title: ExpressionAttributeNames1
      required:
      - '#emp'
      - '#add'
      type: object
      properties:
        '#emp':
          type: string
        '#add':
          type: string
      example:
        '#emp': emp_id
        '#add': address
    Department:
      title: Department
      required:
      - Keys
      - ProjectionExpression
      - ExpressionAttributeNames
      type: object
      properties:
        Keys:
          type: array
          items:
            $ref: '#/components/schemas/Key2'
          description: ''
        ProjectionExpression:
          type: string
        ExpressionAttributeNames:
          $ref: '#/components/schemas/ExpressionAttributeNames2'
      example:
        Keys:
        - d_id:
            N: 100
        - d_id:
            N: 300
        - d_id:
            N: 200
        ProjectionExpression: 'd_id, #dn, #ds'
        ExpressionAttributeNames:
          '#dn': d_name
          '#ds': d_specialization
    Key2:
      title: Key2
      required:
      - d_id
      type: object
      properties:
        d_id:
          $ref: '#/components/schemas/DId'
      example:
        d_id:
          N: 100
    DId:
      title: DId
      required:
      - N
      type: object
      properties:
        N:
          type: string
      example:
        N: 100
    ExpressionAttributeNames2:
      title: ExpressionAttributeNames2
      required:
      - '#dn'
      - '#ds'
      type: object
      properties:
        '#dn':
          type: string
        '#ds':
          type: string
      example:
        '#dn': d_name
        '#ds': d_specialization
    QueryRequest:
      title: QueryRequest
      required:
      - TableName
      - IndexName
      - Limit
      - ConsistentRead
      - ProjectionExpression
      - KeyConditionExpression
      - ExpressionAttributeValues
      type: object
      properties:
        TableName:
          type: string
        IndexName:
          type: string
        Limit:
          type: integer
          format: int32
        ConsistentRead:
          type: boolean
        ProjectionExpression:
          type: string
        KeyConditionExpression:
          type: string
        ExpressionAttributeValues:
          $ref: '#/components/schemas/ExpressionAttributeValues'
      example:
        TableName: employee
        IndexName: emp_id
        Limit: 3
        ConsistentRead: true
        ProjectionExpression: emp_id, address, first_name
        KeyConditionExpression: '#eid > :v1'
        ExpressionAttributeValues:
          :v1:
            N: 2
    ExpressionAttributeValues:
      title: ExpressionAttributeValues
      required:
      - :v1
      type: object
      properties:
        :v1:
          $ref: '#/components/schemas/V1'
      example:
        :v1:
          N: 2
    V1:
      title: V1
      required:
      - N
      type: object
      properties:
        N:
          type: string
      example:
        N: 2
    ScanRequest:
      title: ScanRequest
      required:
      - tableName
      - Limit
      - ProjectionExpression
      - FilterExpression
      - ExpressionAttributeNames
      - ExpressionAttributeValues
      - ExclusiveStartKey
      type: object
      properties:
        tableName:
          type: string
        Limit:
          type: integer
          format: int32
        ProjectionExpression:
          type: string
        FilterExpression:
          type: string
        ExpressionAttributeNames:
          $ref: '#/components/schemas/ExpressionAttributeNames3'
        ExpressionAttributeValues:
          $ref: '#/components/schemas/ExpressionAttributeValues1'
        ExclusiveStartKey:
          $ref: '#/components/schemas/ExclusiveStartKey'
      example:
        tableName: employee
        Limit: 3
        ProjectionExpression: 'address, #ag, emp_id, first_name, last_name'
        FilterExpression: '#ag > :val1 '
        ExpressionAttributeNames:
          '#ag': age
        ExpressionAttributeValues:
          :val1:
            N: 10
        ExclusiveStartKey:
          emp_id:
            N: 4
          offset:
            N: 3
    ExpressionAttributeNames3:
      title: ExpressionAttributeNames3
      required:
      - '#ag'
      type: object
      properties:
        '#ag':
          type: string
      example:
        '#ag': age
    ExpressionAttributeValues1:
      title: ExpressionAttributeValues1
      required:
      - :val1
      type: object
      properties:
        :val1:
          $ref: '#/components/schemas/Val1'
      example:
        :val1:
          N: 10
    Val1:
      title: Val1
      required:
      - N
      type: object
      properties:
        N:
          type: string
      example:
        N: 10
    ExclusiveStartKey:
      title: ExclusiveStartKey
      required:
      - emp_id
      - offset
      type: object
      properties:
        emp_id:
          $ref: '#/components/schemas/EmpId'
        offset:
          $ref: '#/components/schemas/Offset'
      example:
        emp_id:
          N: 4
        offset:
          N: 3
    Offset:
      title: Offset
      required:
      - N
      type: object
      properties:
        N:
          type: string
      example:
        N: 3
    UpdateItemRequest:
      title: UpdateItemRequest
      required:
      - TableName
      - Key
      - ConditionExpression
      - UpdateExpression
      - ExpressionAttributeValues
      - ExpressionAttributeNames
      - ReturnValues
      type: object
      properties:
        TableName:
          type: string
        Key:
          $ref: '#/components/schemas/Key'
        ConditionExpression:
          type: string
        UpdateExpression:
          type: string
        ExpressionAttributeValues:
          $ref: '#/components/schemas/ExpressionAttributeValues2'
        ExpressionAttributeNames:
          $ref: '#/components/schemas/ExpressionAttributeNames3'
        ReturnValues:
          type: string
      example:
        TableName: employee
        Key:
          emp_id:
            N: 1
        ConditionExpression: '#age > :val2'
        UpdateExpression: 'SET age = :age  '
        ExpressionAttributeValues:
          :age:
            N: 10
          :val2:
            N: 9
        ExpressionAttributeNames:
          '#ag': age
        ReturnValues: ALL_NEW
    ExpressionAttributeValues2:
      title: ExpressionAttributeValues2
      required:
      - :age
      - :val2
      type: object
      properties:
        :age:
          $ref: '#/components/schemas/Age'
        :val2:
          $ref: '#/components/schemas/Val1'
      example:
        :age:
          N: 10
        :val2:
          N: 9
    Age:
      title: Age
      required:
      - N
      type: object
      properties:
        N:
          type: string
      example:
        N: 10
    PutItemRequest:
      title: PutItemRequest
      required:
      - TableName
      - Item
      - ConditionExpression
      - ExpressionAttributeValues
      - ExpressionAttributeNames
      type: object
      properties:
        TableName:
          type: string
        Item:
          $ref: '#/components/schemas/Item'
        ConditionExpression:
          type: string
        ExpressionAttributeValues:
          $ref: '#/components/schemas/ExpressionAttributeValues3'
        ExpressionAttributeNames:
          $ref: '#/components/schemas/ExpressionAttributeNames3'
      example:
        TableName: employee
        Item:
          age:
            N: 10
          emp_id:
            N: 1
        ConditionExpression: age > :val2
        ExpressionAttributeValues:
          :val2:
            N: 9
        ExpressionAttributeNames:
          '#ag': age
    Item:
      title: Item
      required:
      - age
      - emp_id
      type: object
      properties:
        age:
          $ref: '#/components/schemas/Age'
        emp_id:
          $ref: '#/components/schemas/EmpId'
      example:
        age:
          N: 10
        emp_id:
          N: 1
    ExpressionAttributeValues3:
      title: ExpressionAttributeValues3
      required:
      - :val2
      type: object
      properties:
        :val2:
          $ref: '#/components/schemas/Val1'
      example:
        :val2:
          N: 9
    DeleteItemRequest:
      title: DeleteItemRequest
      required:
      - TableName
      - Key
      - ConditionExpression
      - ExpressionAttributeValues
      - ExpressionAttributeNames
      type: object
      properties:
        TableName:
          type: string
        Key:
          $ref: '#/components/schemas/Key'
        ConditionExpression:
          type: string
        ExpressionAttributeValues:
          $ref: '#/components/schemas/ExpressionAttributeValues3'
        ExpressionAttributeNames:
          $ref: '#/components/schemas/ExpressionAttributeNames3'
      example:
        TableName: employee
        Key:
          emp_id:
            N: 6
        ConditionExpression: age > :val2
        ExpressionAttributeValues:
          :val2:
            N: 9
        ExpressionAttributeNames:
          '#ag': age
    BatchWriteItemRequest:
      title: BatchWriteItemRequest
      required:
      - RequestItems
      type: object
      properties:
        RequestItems:
          $ref: '#/components/schemas/RequestItems1'
      example:
        RequestItems:
          employee:
          - PutRequest:
              Item:
                emp_id:
                  N: 1
                address:
                  S: Shamli
                age:
                  N: 10
                first_name:
                  S: Marc
                last_name:
                  S: Richards
          - PutRequest:
              Item:
                emp_id:
                  N: 2
                address:
                  S: Ney York
                age:
                  N: 20
                first_name:
                  S: Catalina
                last_name:
                  S: Smith
          - PutRequest:
              Item:
                emp_id:
                  N: 3
                address:
                  S: Pune
                age:
                  N: 30
                first_name:
                  S: Alice
                last_name:
                  S: Trentor
          - DeleteRequest:
              Key:
                emp_id:
                  N: 4
          - DeleteRequest:
              Key:
                emp_id:
                  N: 5
    RequestItems1:
      title: RequestItems1
      required:
      - employee
      type: object
      properties:
        employee:
          type: array
          items:
            $ref: '#/components/schemas/Employee1'
          description: ''
      example:
        employee:
        - PutRequest:
            Item:
              emp_id:
                N: 1
              address:
                S: Shamli
              age:
                N: 10
              first_name:
                S: Marc
              last_name:
                S: Richards
        - PutRequest:
            Item:
              emp_id:
                N: 2
              address:
                S: Ney York
              age:
                N: 20
              first_name:
                S: Catalina
              last_name:
                S: Smith
        - PutRequest:
            Item:
              emp_id:
                N: 3
              address:
                S: Pune
              age:
                N: 30
              first_name:
                S: Alice
              last_name:
                S: Trentor
        - DeleteRequest:
            Key:
              emp_id:
                N: 4
        - DeleteRequest:
            Key:
              emp_id:
                N: 5
    Employee1:
      title: Employee1
      type: object
      properties:
        PutRequest:
          $ref: '#/components/schemas/PutRequest'
        DeleteRequest:
          $ref: '#/components/schemas/DeleteRequest'
      example:
        PutRequest:
          Item:
            emp_id:
              N: 1
            address:
              S: Shamli
            age:
              N: 10
            first_name:
              S: Marc
            last_name:
              S: Richards
    PutRequest:
      title: PutRequest
      required:
      - Item
      type: object
      properties:
        Item:
          $ref: '#/components/schemas/Item1'
      example:
        Item:
          emp_id:
            N: 1
          address:
            S: Shamli
          age:
            N: 10
          first_name:
            S: Marc
          last_name:
            S: Richards
    Item1:
      title: Item1
      required:
      - emp_id
      - address
      - age
      - first_name
      - last_name
      type: object
      properties:
        emp_id:
          $ref: '#/components/schemas/EmpId'
        address:
          $ref: '#/components/schemas/Address'
        age:
          $ref: '#/components/schemas/Age'
        first_name:
          $ref: '#/components/schemas/FirstName'
        last_name:
          $ref: '#/components/schemas/LastName'
      example:
        emp_id:
          N: 1
        address:
          S: Shamli
        age:
          N: 10
        first_name:
          S: Marc
        last_name:
          S: Richards
    Address:
      title: Address
      required:
      - S
      type: object
      properties:
        S:
          type: string
      example:
        S: Shamli
    FirstName:
      title: FirstName
      required:
      - S
      type: object
      properties:
        S:
          type: string
      example:
        S: Marc
    LastName:
      title: LastName
      required:
      - S
      type: object
      properties:
        S:
          type: string
      example:
        S: Richards
    DeleteRequest:
      title: DeleteRequest
      required:
      - Key
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/Key'
      example:
        Key:
          emp_id:
            N: 4
tags:
- name: Misc
  description: ''

Clone this wiki locally