UNPKG

6.3 kBJSONView Raw
1{"openapi":"3.0.0","info":{"contact":{"x-twitter":"deeparteffects"},"title":"Deep Art Effects","version":"2017-02-10T16:24:46Z","x-apisguru-categories":["media"],"x-logo":{"url":"https://twitter.com/deeparteffects/profile_image?size=original"},"x-origin":[{"format":"swagger","url":"http://docs.deeparteffects.com/swagger.json","version":"2.0"}],"x-providerName":"deeparteffects.com"},"paths":{"/noauth/result":{"get":{"parameters":[{"in":"query","name":"submissionId","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"api_key":[]}],"x-amazon-apigateway-integration":{"httpMethod":"GET","passthroughBehavior":"when_no_match","requestParameters":{"integration.request.querystring.apiKey":"context.identity.apiKey","integration.request.querystring.identifier":"method.request.querystring.submissionId"},"responses":{"200":{"responseParameters":{"method.response.header.Access-Control-Allow-Origin":"'*'"},"responseTemplates":{"application/json":"#set($inputRoot = $input.path('$').data)\n{\n \"status\" : \"$inputRoot.status\",\n \"url\" : \"$inputRoot.filepath\"\n}"},"statusCode":"200"},"400":{"responseTemplates":{"application/json":"#set($inputRoot = $input.path('$'))\n{\n \"message\" : \"Invalid request\"\n}"},"statusCode":"400"}},"type":"http","uri":"https://www.deeparteffects.com/service/getsubmissionresultv3"}}},"/noauth/styles":{"get":{"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Styles"}}}}},"security":[{"api_key":[]}],"x-amazon-apigateway-integration":{"httpMethod":"GET","passthroughBehavior":"when_no_match","requestParameters":{"integration.request.querystring.apiKey":"context.identity.apiKey"},"responses":{"200":{"responseParameters":{"method.response.header.Access-Control-Allow-Origin":"'*'"},"responseTemplates":{"application/json":"#set($inputRoot = $input.path('$'))\n{\n \"styles\": [\n#foreach($style in $inputRoot.data)\n {\n \"id\" : \"$style.identifier\",\n \"title\" : \"$style.title\",\n \"url\" : \"$style.url\",\n \"description\" : \"$style.description\"\n }#if($foreach.hasNext),#end\n\t\t\n#end\n ]\n}"},"statusCode":"200"}},"type":"http","uri":"https://www.deeparteffects.com/service/liststyles?e=1"}}},"/noauth/upload":{"post":{"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}},"required":true},"responses":{"200":{"description":"200 response","headers":{"Access-Control-Allow-Origin":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"400":{"description":"400 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"api_key":[]}],"x-amazon-apigateway-integration":{"httpMethod":"POST","passthroughBehavior":"when_no_templates","requestTemplates":{"application/json":"#set($inputRoot = $input.path('$'))\n{\n \"apiKey\" : \"$context.identity.apiKey\",\n #if(\"$!inputRoot.imageSize\"!=\"\")\n \"imageSize\" : $inputRoot.imageSize,\n #end\n #if(\"$!inputRoot.partnerId\"!=\"\")\n \"partnerId\" : \"$inputRoot.partnerId\",\n #end\n #if(\"$!inputRoot.optimizeForPrint\"!=\"\")\n \"optimizeForPrint\" : $inputRoot.optimizeForPrint,\n #end\n #if(\"$!inputRoot.useOriginalColors\"!=\"\")\n \"useOriginalColors\" : $inputRoot.useOriginalColors,\n #end\n \"styleId\" : \"$inputRoot.styleId\",\n \"imageBase64Encoded\" : \"$inputRoot.imageBase64Encoded\"\n}"},"responses":{"200":{"responseParameters":{"method.response.header.Access-Control-Allow-Origin":"'*'"},"responseTemplates":{"application/json":"#set($inputRoot = $input.path('$').data)\n{\n \"submissionId\" : \"$inputRoot.identifier\"\n}"},"statusCode":"200"},"4\\d{2}":{"responseTemplates":{"application/json":"#set($inputRoot = $input.path('$'))\n{\n \"message\" : \"Invalid request\"\n}"},"statusCode":"400"}},"type":"http","uri":"https://www.deeparteffects.com/service/uploadv3"}}}},"servers":[{"url":"https://api.deeparteffects.com/v1"}],"components":{"securitySchemes":{"api_key":{"in":"header","name":"x-api-key","type":"apiKey"},"sigv4":{"in":"header","name":"Authorization","type":"apiKey","x-amazon-apigateway-authtype":"awsSigv4"}},"schemas":{"Empty":{"title":"Empty Schema","type":"object"},"Error":{"properties":{"message":{"type":"string"}},"title":"Error Schema","type":"object"},"Result":{"properties":{"status":{"description":"Submissiond status. Can be 'new', 'error', 'processing', 'finished'","type":"string"},"url":{"description":"Result url for the artwork","type":"string"}},"title":"GetResult Schema","type":"object"},"Style":{"properties":{"description":{"description":"Style description","type":"string"},"id":{"description":"The unique identifier for a style","type":"string"},"title":{"description":"Style title","type":"string"},"url":{"description":"Style URL","type":"string"}},"title":"Style Schema","type":"object"},"Styles":{"properties":{"styles":{"items":{"$ref":"#/components/schemas/Style"},"type":"array"}},"title":"List Styles Schema","type":"object"},"UploadRequest":{"properties":{"imageBase64Encoded":{"description":"Base64 decoded image","type":"string"},"imageSize":{"description":"Image size in px. Picture will be resized for processing.","type":"integer"},"optimizeForPrint":{"description":"Use this flag to get an artwork optimized for print.","type":"boolean"},"partnerId":{"description":"The unique identifier for a partner with dedicated api access.","type":"string"},"styleId":{"description":"The unique identifier for a style","type":"string"},"useOriginalColors":{"description":"Use this flag to use the original color from your photo for the artwork.","type":"boolean"}},"title":"Request schema for a submission","type":"object"},"UploadResponse":{"properties":{"submissionId":{"type":"string"}},"title":"Response Schema for upload request","type":"object"}}}}
\No newline at end of file