{"swagger":"2.0","info":{"title":"CoffeeShop V1","version":"v1"},"paths":{"/api/ClientCertificate":{"get":{"tags":["ClientCertificate"],"operationId":"GETCertificate","responses":{"200":{"description":"OK"}}}},"/api/Coffees/{id}":{"delete":{"tags":["Coffees"],"summary":"Delete a coffee","description":"Deletes the coffee with the given id. If no coffee with the given id exists, nothing is deleted.","operationId":"DELETECoffeeById","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}},"get":{"tags":["Coffees"],"summary":"Get coffee by id","description":"Returns the coffee which has the given id. Returns \u0027null\u0027 if no coffee with the given id exists.","operationId":"GETCoffeeById","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}}},"/api/Coffees":{"get":{"tags":["Coffees"],"summary":"Get all coffees","description":"Returns all coffees.","operationId":"GETCoffees","responses":{"200":{"description":"OK"}}},"post":{"tags":["Coffees"],"summary":"Add a new coffee","description":"Adds a new coffee at the end of the list.","operationId":"POSTCoffee","consumes":["application/json","text/json","application/*\u002Bjson","application/xml","text/xml","application/*\u002Bxml"],"parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Coffee"}}],"responses":{"200":{"description":"OK"}}},"put":{"tags":["Coffees"],"summary":"Update an existing coffee","description":"Updates the name and description of an existing coffee (identified by its id). If no coffee with the given id exists, nothing is updated.","operationId":"PUTCoffee","consumes":["application/json","text/json","application/*\u002Bjson","application/xml","text/xml","application/*\u002Bxml"],"parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Coffee"}}],"responses":{"200":{"description":"OK"}}}},"/EchoService.svc":{"post":{"tags":["EchoService"],"summary":"Echo request body","description":"Returns the request body unchanged, preserving the Content-Type.","operationId":"POSTEcho","responses":{"200":{"description":"OK"}}}},"/EchoService.svc/headers":{"get":{"tags":["EchoService"],"summary":"Echo request headers as XML","description":"Returns all request headers serialized as an XML payload.","operationId":"GETEchoHeaders","responses":{"200":{"description":"OK"}}},"post":{"tags":["EchoService"],"summary":"Echo request headers as XML","description":"Returns all request headers serialized as an XML payload.","operationId":"GETEchoHeaders","responses":{"200":{"description":"OK"}}}},"/api/Employee":{"get":{"tags":["Employee"],"summary":"Get all employees","description":"Returns all employees.","operationId":"GETEmployees","responses":{"200":{"description":"OK"}}},"put":{"tags":["Employee"],"summary":"Update an existing employee","description":"Updates the first and last name and address of an existing employee (identified by its id). If no employee with the given id exists, nothing is updated.","operationId":"PUTEmployee","consumes":["application/json","text/json","application/*\u002Bjson","application/xml","text/xml","application/*\u002Bxml"],"parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Employee"}}],"responses":{"200":{"description":"OK"}}}},"/api/Employee/{id}":{"get":{"tags":["Employee"],"summary":"Get employee by id","description":"Returns the employee which has the given id. Returns \u0027null\u0027 if no employee with the given id exists.","operationId":"GETEmployeeById","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}}},"/api/Files/{id}":{"delete":{"tags":["Files"],"summary":"Delete a file","description":"Deletes the file with the given id. If no file with the given id exists, nothing is deleted.","operationId":"DELETEFileById","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}},"get":{"tags":["Files"],"summary":"Get file by id","description":"Returns the file which has the given id. Returns \u0027null\u0027 if no file with the given id exists.","operationId":"GETFileById","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}}},"/api/Files":{"get":{"tags":["Files"],"summary":"Get all files","description":"Returns all files as a multipart response.","operationId":"GETFiles","responses":{"200":{"description":"OK"}}},"post":{"tags":["Files"],"summary":"Add a new file","description":"Reads the uploaded parts and reports their content type, disposition and size.","operationId":"POSTFile","responses":{"200":{"description":"OK"}}},"put":{"tags":["Files"],"summary":"Update an existing file","description":"Updates the content and content type of an existing file (identified by its id). If no file with the given id exists, nothing is updated.","operationId":"PUTFile","consumes":["application/json","text/json","application/*\u002Bjson","application/xml","text/xml","application/*\u002Bxml"],"parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.File"}}],"responses":{"200":{"description":"OK"}}}},"/api/Profiles/{id}":{"delete":{"tags":["Profiles"],"summary":"Delete a profile","description":"Deletes the profile with the given id. If no profile with the given id exists, nothing is deleted.","operationId":"DELETEProfileById","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}},"get":{"tags":["Profiles"],"summary":"Get profile by id","description":"Returns the profile which has the given id. Returns \u0027null\u0027 if no profile with the given id exists.","operationId":"GETProfileById","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}}},"/api/Profiles":{"get":{"tags":["Profiles"],"summary":"Get all profiles","description":"Returns all profiles.","operationId":"GETProfiles","responses":{"200":{"description":"OK"}}},"post":{"tags":["Profiles"],"summary":"Add a new profile","description":"Adds a new profile at the end of the list.","operationId":"POSTProfile","consumes":["application/json","text/json","application/*\u002Bjson","application/xml","text/xml","application/*\u002Bxml"],"parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Profile"}}],"responses":{"200":{"description":"OK"}}},"put":{"tags":["Profiles"],"summary":"Update an existing profile","description":"Updates the name of an existing profile (identified by its id). If no profile with the given id exists, nothing is updated.","operationId":"PUTProfile","consumes":["application/json","text/json","application/*\u002Bjson","application/xml","text/xml","application/*\u002Bxml"],"parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Profile"}}],"responses":{"200":{"description":"OK"}}}},"/api/Profiles/{id}/Photos":{"get":{"tags":["Profiles"],"summary":"Get all photos from a profile","description":"Returns all photos from a profile which has the given id. Returns \u0027null\u0027 if no profile with the given id exists.","operationId":"GETPhotosByProfileId","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}}},"/Protocol/http2":{"get":{"tags":["Protocol"],"summary":"Get HTTP/2 connection info","description":"Returns the current HTTP protocol version. Requires an HTTP/2 connection; HTTP/1.x clients receive 426 Upgrade Required.","operationId":"GETHttp2Info","responses":{"200":{"description":"HTTP/2 connection confirmed"},"426":{"description":"HTTP/2 is required but the client is using an older protocol version"}}}},"/api/Shops/{id}":{"delete":{"tags":["Shops"],"summary":"Delete a shop","description":"Deletes the shop with the given id. If no shop with the given id exists, nothing is deleted.","operationId":"DELETEShopById","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}},"get":{"tags":["Shops"],"summary":"Get shop by id","description":"Returns the shop which has the given id. Returns \u0027null\u0027 if no shop with the given id exists.","operationId":"GETShopById","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}}},"/api/Shops":{"get":{"tags":["Shops"],"summary":"Get all shops","description":"Returns all shops.","operationId":"GETShops","responses":{"200":{"description":"OK"}}},"post":{"tags":["Shops"],"summary":"Add a new shop","description":"Adds a new shop at the end of the list.","operationId":"POSTShop","consumes":["application/json","text/json","application/*\u002Bjson","application/xml","text/xml","application/*\u002Bxml"],"parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Shop"}}],"responses":{"200":{"description":"OK"}}},"put":{"tags":["Shops"],"summary":"Update an existing shop","description":"Updates the name, city and country of an existing shop (identified by its id). If no shop with the given id exists, nothing is updated.","operationId":"PUTShop","consumes":["application/json","text/json","application/*\u002Bjson","application/xml","text/xml","application/*\u002Bxml"],"parameters":[{"in":"body","name":"body","schema":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Shop"}}],"responses":{"200":{"description":"OK"}}}},"/api/Shops/{id}/Coffees":{"get":{"tags":["Shops"],"summary":"Get all coffees in a shop","description":"Returns a random number of the first coffees for the shop with the given id. Returns \u0027null\u0027 if no shop with the given id exists.","operationId":"GETCoffeesByShopId","parameters":[{"in":"path","name":"id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK"}}}}},"definitions":{"Tricentis.Demo.Rest.Models.Address":{"type":"object","properties":{"city":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true},"country":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true},"street":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true},"zipCode":{"type":"integer","format":"int32"}},"additionalProperties":false},"Tricentis.Demo.Rest.Models.Coffee":{"type":"object","properties":{"description":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true},"id":{"type":"integer","format":"int32"},"name":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true}},"additionalProperties":false},"Tricentis.Demo.Rest.Models.Comment":{"type":"object","properties":{"content":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true},"id":{"type":"integer","format":"int32"},"profile":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Profile"}},"additionalProperties":false},"Tricentis.Demo.Rest.Models.Employee":{"type":"object","properties":{"address":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Address"},"firstName":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true},"id":{"type":"integer","format":"int32"},"lastName":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true}},"additionalProperties":false},"Tricentis.Demo.Rest.Models.File":{"type":"object","properties":{"content":{"type":"string","format":"byte","x-nullable":true},"contentType":{"type":"string","maxLength":100,"minLength":0,"x-nullable":true},"id":{"type":"integer","format":"int32"}},"additionalProperties":false},"Tricentis.Demo.Rest.Models.Photo":{"type":"object","properties":{"comments":{"type":"array","maxItems":10,"items":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Comment"},"x-nullable":true},"content":{"type":"string","format":"byte","maxLength":65536,"x-nullable":true},"contentType":{"type":"string","maxLength":100,"minLength":0,"x-nullable":true},"id":{"type":"integer","format":"int32"},"name":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true}},"additionalProperties":false},"Tricentis.Demo.Rest.Models.Profile":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true},"photos":{"type":"array","maxItems":10,"items":{"$ref":"#/definitions/Tricentis.Demo.Rest.Models.Photo"},"x-nullable":true}},"additionalProperties":false},"Tricentis.Demo.Rest.Models.Shop":{"type":"object","properties":{"city":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true},"country":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true},"id":{"type":"integer","format":"int32"},"name":{"type":"string","maxLength":2000,"minLength":0,"x-nullable":true}},"additionalProperties":false}},"tags":[{"name":"ClientCertificate"},{"name":"Coffees"},{"name":"EchoService"},{"name":"Employee"},{"name":"Files"},{"name":"Profiles"},{"name":"Protocol"},{"name":"Shops"}],"host":"webservice.toscacloud.com","basePath":"/","schemes":["https"]}