-{"swagger":"2.0","info":{"title":"@socialtables/apidoc-swagger","version":"1.0.1","description":"Convert api doc json to swagger json"},"paths":{"/team/{id}":{"get":{"tags":["Team"],"summary":"Get team information","x-admin-only":true,"consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"number","description":"Team Id."}],"responses":{"200":{"description":"successful operation","schema":{"type":"Number","items":{"$ref":"#/definitions/GetTeam"}}}}}},"/user":{"post":{"tags":["User"],"summary":"Create a new user. Email needs to be unique","deprecated":true,"consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"body","description":"Create a new user. Email needs to be unique","required":true,"schema":{"$ref":"#/definitions/CreateUser"}}],"responses":{"200":{"description":"successful operation","schema":{"type":null,"items":{"$ref":"#/definitions/CreateUser"}}}}}},"/user/{id}":{"get":{"tags":["User"],"summary":"Get user information and optionally include the picture","deprecated":true,"consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"number","description":"Users unique ID."},{"name":"includePicture","in":"query","required":false,"type":"boolean","description":"Whether to include the picture in the response"},{"name":"includeOptional","in":"query","required":false,"type":"string","description":"Example of a optionally including a querystring"},{"name":"accept","in":"header","required":false,"type":"string","description":"Specify image/png to recieve an image response"}],"responses":{"200":{"description":"successful operation","schema":{"type":"String","items":{"$ref":"#/definitions/GetUser"}}}}}}},"definitions":{"GetTeam":{"properties":{"id":{"type":"number","description":"Id of the team"},"name":{"type":"string","description":"Name of the team"}},"required":["id","name"]},"CreateUser":{"properties":{"firstname":{"type":"string","description":"First Name for the new user"},"lastname":{"type":"string","description":"Last Name for the new user"},"email":{"type":"string","description":"Email Address"},"opt_in":{"type":"string","description":"Opt in to marketing things"}},"required":["firstname","lastname","email"]},"GetUser":{"properties":{"includePicture":{"type":"boolean","description":"Whether to include the picture in the response"},"includeOptional":{"type":"string","description":"Example of a optionally including a querystring"},"firstname":{"type":"string","description":"Firstname of the User"},"lastname":{"type":"string","description":"Lastname of the User"},"picture":{"type":"string","description":"Optional picture of the User"}},"required":["firstname","lastname"]}}}
0 commit comments