{"openapi":"3.0.0","info":{"description":"This is the 8Things server.  \n","version":"1.0.0","title":"8Things API","termsOfService":"http://app.8sachen.de/agb","contact":{"email":"hi@8sachen.de"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/8Things/8things/1.0.0"},{"url":"https://api.8sachen.de/v1/"}],"tags":[{"name":"product","description":"Product endpoint","externalDocs":{"description":"Find out more","url":"https://8sachen.de/docs/api"}},{"name":"order","description":"Access to orders"},{"name":"user","description":"Operations about user","externalDocs":{"description":"Find out more","url":"https://8sachen.de/docs/api"}}],"paths":{"/product":{"post":{"tags":["product"],"summary":"Add a new product to inventory","operationId":"addProduct","responses":{"405":{"description":"Invalid input"}},"security":[{"product_auth":["write:products","read:products"]}],"requestBody":{"$ref":"#/components/requestBodies/Product"}}}},"components":{"schemas":{"Product":{"type":"object","required":["name","photoUrls"],"properties":{"id":{"type":"integer","format":"int64"},"categories":{"type":"array","items":{"type":"string"},"example":["Film & Fotografie","Kameras","DSLR Kameras"]},"name_long":{"type":"string","example":"Awesome product name describing the product"},"productpics":{"description":"https urls to the product pics","type":"array","items":{"type":"string"},"example":["https://yourserver.de/pic1.jpg","https://yourserver.de/pic2.jpg","https://yourserver.de/pic3.jpg"]},"sku_vendor":{"type":"string","description":"vendor sku in your store","enum":["available","pending","sold"]}},"xml":{"name":"PRoduct"}},"ApiResponse":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"type":{"type":"string"},"message":{"type":"string"}}}},"requestBodies":{"Product":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Product"}}},"description":"Product object that needs to be added to the store","required":true}},"securitySchemes":{"product_auth":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"http://api.8sachen.de/oauth/dialog","scopes":{"write:products":"modify products in your account","read:products":"read your products"}}}},"api_key":{"type":"apiKey","name":"api_key","in":"header"}}}}