--- swagger: "2.0" info: description: "AI Photo Search application, built during the Cloud and Big Data course\ \ at Columbia University." version: "1.0.0" title: "AI Photo Search" host: "9egv53y2c5.execute-api.us-east-1.amazonaws.com" basePath: "/v6" schemes: - "https" paths: /search: get: operationId: "searchPhotos" produces: - "application/json" parameters: - name: "q" in: "query" required: false type: "string" responses: "200": description: "200 response" schema: $ref: "#/definitions/SearchResponse" headers: Access-Control-Allow-Origin: type: "string" Access-Control-Allow-Methods: type: "string" Access-Control-Allow-Headers: type: "string" "500": description: "500 response" schema: $ref: "#/definitions/Error" "403": description: "403 response" schema: $ref: "#/definitions/Error" options: consumes: - "application/json" produces: - "application/json" parameters: - name: "q" in: "query" required: false type: "string" responses: "200": description: "200 response" headers: Access-Control-Allow-Origin: type: "string" Access-Control-Allow-Methods: type: "string" Access-Control-Allow-Headers: type: "string" /upload/{bucket}/{key}: put: consumes: - "image/jpeg" - "image/png" - "image/jpg" produces: - "application/json" parameters: - name: "Content-Type" in: "header" required: false type: "string" - name: "Accept" in: "header" required: false type: "string" - name: "x-amz-meta-customLabels" in: "header" required: false type: "string" - name: "key" in: "path" required: true type: "string" - name: "bucket" in: "path" required: true type: "string" responses: "200": description: "200 response" schema: $ref: "#/definitions/PutResponse" headers: Access-Control-Allow-Origin: type: "string" Access-Control-Allow-Methods: type: "string" Access-Control-Allow-Headers: type: "string" "500": description: "500 response" schema: $ref: "#/definitions/Error" "403": description: "403 response" schema: $ref: "#/definitions/Error" options: consumes: - "application/json" produces: - "application/json" parameters: - name: "key" in: "path" required: true type: "string" - name: "bucket" in: "path" required: true type: "string" responses: {} definitions: Error: type: "object" properties: code: type: "integer" format: "int32" message: type: "string" Photo: type: "object" properties: url: type: "string" labels: type: "array" items: type: "string" SearchResponse: type: "object" properties: results: type: "array" items: $ref: "#/definitions/Photo" PutResponse: type: "object" properties: message: type: "string"