{"swagger":"2.0","info":{"title":"questlog api","description":"Adventure planing tool.","contact":{"name":"Alexander Poole","url":"https://github.com/owodunni/questlog","email":"alexander@poole.solutions"},"license":{"name":"MIT","url":"http://opensource.org/licenses/MIT"},"version":"0.0.1-dev"},"host":"api.questlog.io","basePath":"/","schemes":["https"],"consumes":["application/json"],"produces":["application/json"],"paths":{"/adventures":{"post":{"parameters":[{"name":"adventure","in":"form","required":true}],"responses":{"201":{"description":"201 response","schema":{"$ref":"#/definitions/adventure"}},"409":{"description":"409 response","schema":{"type":"array","items":{"$ref":"#/definitions/error"}}}}},"get":{"parameters":[{"name":"guid","in":"query","required":false,"type":"string","format":"uuid"},{"name":"name","in":"query","required":false,"type":"string"}],"responses":{"200":{"description":"200 response","schema":{"type":"array","items":{"$ref":"#/definitions/adventure"}}}}}},"/adventures/{guid}":{"get":{"parameters":[{"name":"guid","in":"path","required":true,"type":"string","format":"uuid"}],"responses":{"200":{"description":"200 response","schema":{"$ref":"#/definitions/adventure"}}}}}},"definitions":{"adventure":{"type":"object","description":"Represents an adventure.","title":"adventure","required":["guid","name"],"properties":{"guid":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"location":{"type":"string"},"participants":{"type":"array","items":{"$ref":"#/definitions/participant"}},"pack_lists":{"type":"array","items":{"$ref":"#/definitions/item"}}}},"error":{"type":"object","description":"Represents a validation error from the application.","title":"error","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},"guest":{"type":"object","title":"guest","properties":{"email":{"type":"string"},"name":{"type":"string"}}},"item":{"type":"object","title":"item","required":["name"],"properties":{"name":{"type":"string"},"size":{"type":"number","format":"double"},"description":{"type":"string"},"type":{"type":"string","enum":["Food","Clothes","Camp","Utensils","Gear"]}}},"participant":{"type":"object","description":"Represents a adventure participant and what items they will bring.","title":"participant","required":["person"],"properties":{"person":{"$ref":"#/definitions/person"},"items":{"type":"array","items":{"$ref":"#/definitions/item"}}}},"user":{"type":"object","title":"user","required":["guid"],"properties":{"guid":{"type":"string","format":"uuid"},"email":{"type":"string"},"name":{"type":"string"}}},"person":{"type":"object","title":"person","allOf":[{"$ref":"#/definitions/guest"},{"$ref":"#/definitions/user"}]}}}