{"swagger":"2.0","info":{"description":"This is a API for gistest","version":"1.0.0","title":"API for gistest","contact":{"email":"maxim.altapov@gmail.com"}},"tags":[{"name":"firm","description":"firm info"},{"name":"search","description":"searching firms"},{"name":"building","description":"building info"}],"paths":{"/firm/{id}":{"get":{"tags":["firm"],"summary":"Find firm by ID","description":"Returns a single firm","operationId":"FindFirmByID","produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"ID of firm to return","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"search results matching criteria"},"400":{"description":"bad input parameter"},"404":{"description":"firm with this ID not found"}}}},"/firm/search/building/{id}":{"get":{"tags":["search"],"summary":"Find firms by building ID","description":"Returns all firms in this building","operationId":"FindFirmsByBuildingID","produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"ID of building","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"search results matching criteria"},"400":{"description":"bad input parameter"},"404":{"description":"firm with this building ID not found"}}}},"/firm/search/center/{coords}/{radius}":{"get":{"tags":["search"],"summary":"Find firms around center coordinates","description":"Returns all firms within radius","produces":["application/json"],"parameters":[{"name":"coords","in":"path","description":"coordinates of center","required":true,"type":"string","format":"latitude,longitude"},{"name":"radius","in":"path","description":"radius of circle","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"search results matching criteria"},"400":{"description":"bad input parameter"},"404":{"description":"firms within radius not found"}}}},"/firm/search/center/{coords}/{aSide}/{bSide}":{"get":{"tags":["search"],"summary":"Find firms around center coordinates","description":"Returns all firms within rectangle","produces":["application/json"],"parameters":[{"name":"coords","in":"path","description":"coordinates of center","required":true,"type":"string","format":"latitude,longitude"},{"name":"aSide","in":"path","description":"a side of rectangle","required":true,"type":"integer","format":"int32"},{"name":"bSide","in":"path","description":"b side of rectangle","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"search results matching criteria"},"400":{"description":"bad input parameter"},"404":{"description":"firms within radius not found"}}}},"/firm/search/heading/{name}":{"get":{"tags":["search"],"summary":"Find firms with a this heading_name","description":"Returns all firms that fall under this heading","parameters":[{"name":"name","in":"path","description":"name of heading","required":true,"type":"string","format":"string"},{"in":"query","name":"offset","type":"integer","description":"The number of items to skip before starting to collect the result set."},{"in":"query","name":"limit","type":"integer","description":"The numbers of items to return."}],"responses":{"200":{"description":"search results matching criteria"},"400":{"description":"bad input parameter"},"404":{"description":"firms that fall under this heading not found"}}}},"/firm/search/heading/{name}/deep":{"get":{"tags":["search"],"summary":"Find firms with a this heading_name and his descendants","description":"Returns all firms that fall under this headings","parameters":[{"name":"name","in":"path","description":"name of heading","required":true,"type":"string","format":"string"},{"in":"query","name":"offset","type":"integer","description":"The number of items to skip before starting to collect the result set."},{"in":"query","name":"limit","type":"integer","description":"The numbers of items to return."}],"responses":{"200":{"description":"search results matching criteria"},"400":{"description":"bad input parameter"},"404":{"description":"firms that fall under this heading not found"}}}},"/building/{id}":{"get":{"tags":["building"],"summary":"Find building by ID","description":"Returns a single building","operationId":"FindBuildingByID","produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"ID of building to return","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"search results matching criteria"},"400":{"description":"bad input parameter"},"404":{"description":"building with this ID not found"}}}}},"host":"185.111.219.235:3000","basePath":"/api/v1","schemes":["http"]}