openapi: 3.0.0
info:
  title: WildFork - Product API's
  version: 1.0.0
servers:
  - url: http://{{baseurl}}
  - url: http://{{baseurl}}{{uri}}{{resource}}
tags:
  - name: image
  - name: image > webhook
  - name: mobile
  - name: mobile > token
  - name: inventory
  - name: inventory > rough
  - name: inventory > rough > store
  - name: inventory > rough > store > {storeId}
  - name: inventory > rough > store > {storeId} > sku
  - name: inventory > rough > store > {storeId} > sku > {sku}
paths:
  /image/webhook:
    put:
      tags:
        - image > webhook
      summary: Contentful image webhook sync the main image with commerce tools
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example: {}
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                description: <string>
                status: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                description: <string>
                status: <string>
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example: {}
  /mobile/token:
    get:
      tags:
        - mobile > token
      summary: Returns CT Token for use with Mobile Product APIs
      description: Return a CT token for mobile product apis
      parameters:
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: Ocp-Apim-Subscription-Key
          in: header
          schema:
            type: string
          example: '{{Ocp-Apim-Subscription-Key}}'
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                authToken: <string>
                expiresTimestamp: <integer>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                authToken: <string>
                expiresTimestamp: <integer>
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example: {}
  /inventory/rough/store/{storeId}/sku/{sku}:
    get:
      tags:
        - inventory > rough > store > {storeId} > sku > {sku}
      summary: Get inventory by store id and sku
      description: Get inventory by store id and sku
      parameters:
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: storeId
          in: path
          schema:
            type: string
          required: true
          example: <string>
        - name: sku
          in: path
          schema:
            type: string
          required: true
          example: <string>
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                sku: <string>
                roughInventory: OUT
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /inventory/rough/store/{storeId}:
    get:
      tags:
        - inventory > rough > store > {storeId}
      summary: Get inventory list by store id
      description: Get inventory list by store id
      parameters:
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: storeId
          in: path
          schema:
            type: string
          required: true
          example: <string>
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                items:
                  - sku: <string>
                    roughInventory: HIGH
                  - sku: <string>
                    roughInventory: OUT
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
