{
  "openapi": "3.0.4",
  "info": {
    "title": "PATS Services API",
    "description": "HTTP API for PATS services.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://maxfd-gateway.azurewebsites.net"
    }
  ],
  "paths": {
    "/api/v1/linear/feedback": {
      "post": {
        "tags": [
          "Feedback"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Linear.Feedback.Api.Models.SubmitFeedbackRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Linear.Feedback.Api.Models.SubmitFeedbackRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Linear.Feedback.Api.Models.SubmitFeedbackRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[Linear.Feedback.Api.Models.SubmitFeedbackResponse, Linear.Feedback.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[Linear.Feedback.Api.Models.SubmitFeedbackResponse, Linear.Feedback.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[Linear.Feedback.Api.Models.SubmitFeedbackResponse, Linear.Feedback.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
                }
              }
            }
          }
        },
        "x-request-format": "{\r\n  \"title\": \"string\",\r\n  \"description\": \"string\",\r\n  \"context\": {\r\n    \"surface\": \"string\",\r\n    \"routePath\": \"string\",\r\n    \"appVersion\": \"string\",\r\n    \"buildSha\": \"string\",\r\n    \"locale\": \"string\",\r\n    \"userAgent\": \"string\",\r\n    \"viewport\": {\r\n      \"width\": 0,\r\n      \"height\": 0,\r\n      \"devicePixelRatio\": 0\r\n    },\r\n    \"darkMode\": true,\r\n    \"metadata\": {}\r\n  },\r\n  \"screenshots\": [\r\n    {\r\n      \"caption\": \"string\",\r\n      \"dataUrl\": \"string\"\r\n    }\r\n  ]\r\n}",
        "x-response-format": "{\r\n  \"data\": {\r\n    \"issueKey\": \"string\",\r\n    \"issueUrl\": \"string\"\r\n  },\r\n  \"success\": true,\r\n  \"message\": \"string\"\r\n}"
      }
    },
    "/swagger/format-preview.js": {
      "get": {
        "tags": [
          "Linear.Feedback.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-request-format": "{}",
        "x-response-format": "{}"
      }
    },
    "/swagger/format-preview.css": {
      "get": {
        "tags": [
          "Linear.Feedback.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-request-format": "{}",
        "x-response-format": "{}"
      }
    },
    "/": {
      "get": {
        "tags": [
          "Linear.Feedback.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-request-format": "{}",
        "x-response-format": "{}"
      }
    }
  },
  "components": {
    "schemas": {
      "Application.WebApi.ApiResponse`1[[Linear.Feedback.Api.Models.SubmitFeedbackResponse, Linear.Feedback.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Linear.Feedback.Api.Models.SubmitFeedbackResponse"
          },
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Application.WebApi.ApiResponse`1[[System.Object, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]": {
        "type": "object",
        "properties": {
          "data": {
            "enum": [
              null
            ],
            "nullable": true
          },
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Linear.Feedback.Api.Models.FeedbackContextRequest": {
        "type": "object",
        "properties": {
          "surface": {
            "type": "string",
            "nullable": true
          },
          "routePath": {
            "type": "string",
            "nullable": true
          },
          "appVersion": {
            "type": "string",
            "nullable": true
          },
          "buildSha": {
            "type": "string",
            "nullable": true
          },
          "locale": {
            "type": "string",
            "nullable": true
          },
          "userAgent": {
            "type": "string",
            "nullable": true
          },
          "viewport": {
            "$ref": "#/components/schemas/Linear.Feedback.Api.Models.FeedbackViewportRequest"
          },
          "darkMode": {
            "type": "boolean"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "Linear.Feedback.Api.Models.FeedbackScreenshotRequest": {
        "type": "object",
        "properties": {
          "caption": {
            "type": "string",
            "nullable": true
          },
          "dataUrl": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Linear.Feedback.Api.Models.FeedbackViewportRequest": {
        "type": "object",
        "properties": {
          "width": {
            "type": "integer",
            "format": "int32"
          },
          "height": {
            "type": "integer",
            "format": "int32"
          },
          "devicePixelRatio": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Linear.Feedback.Api.Models.SubmitFeedbackRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "context": {
            "$ref": "#/components/schemas/Linear.Feedback.Api.Models.FeedbackContextRequest"
          },
          "screenshots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Linear.Feedback.Api.Models.FeedbackScreenshotRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Linear.Feedback.Api.Models.SubmitFeedbackResponse": {
        "type": "object",
        "properties": {
          "issueKey": {
            "type": "string"
          },
          "issueUrl": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "System.Void": {
        "type": "object",
        "additionalProperties": false
      }
    }
  },
  "tags": [
    {
      "name": "Feedback"
    },
    {
      "name": "Linear.Feedback.Api"
    }
  ]
}