openAPISpec.yaml 118 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905
  1. openapi: "3.0.0"
  2. info:
  3. version: 1.0.0
  4. title: SensLog Telemetry
  5. servers:
  6. - url: http://127.0.0.1:8085
  7. - url: https://theros.wirelessinfo.cz
  8. paths:
  9. /info:
  10. get:
  11. operationId: infoGET
  12. summary: Information about running instance
  13. tags:
  14. - Server
  15. responses:
  16. 200:
  17. description: Instance information
  18. content:
  19. application/json:
  20. schema:
  21. $ref: "#/components/schemas/Info"
  22. default:
  23. description: unexpected error
  24. content:
  25. application/json:
  26. schema:
  27. $ref: "#/components/schemas/Error"
  28. /campaigns:
  29. get:
  30. operationId: campaignsGET
  31. summary: Publish info about all campaigns
  32. tags:
  33. - Campaign
  34. security:
  35. - bearerAuth: [read:personal]
  36. - bearerAuth: [read:infrastructure]
  37. parameters:
  38. - $ref: '#/components/parameters/zoneParam'
  39. - $ref: '#/components/parameters/navigationLinksParam'
  40. responses:
  41. 200:
  42. description: JSON array of basic info of each campaign
  43. content:
  44. application/json:
  45. schema:
  46. type: array
  47. items:
  48. $ref: '#/components/schemas/CampaignBasicInfo'
  49. default:
  50. description: unexpected error
  51. content:
  52. application/json:
  53. schema:
  54. $ref: '#/components/schemas/Error'
  55. /campaigns/{campaignId}:
  56. get:
  57. operationId: campaignIdGET
  58. summary: Publish info about a campaign
  59. tags:
  60. - Campaign
  61. security:
  62. - bearerAuth: [read:personal]
  63. - bearerAuth: [read:infrastructure]
  64. parameters:
  65. - $ref: '#/components/parameters/campaignIdParam'
  66. - $ref: '#/components/parameters/zoneParam'
  67. - $ref: '#/components/parameters/navigationLinksParam'
  68. responses:
  69. 200:
  70. description: JSON object containing info about a campaign
  71. content:
  72. application/json:
  73. schema:
  74. $ref: '#/components/schemas/CampaignDetailInfo'
  75. default:
  76. description: unexpected error
  77. content:
  78. application/json:
  79. schema:
  80. $ref: '#/components/schemas/Error'
  81. /campaigns/{campaignId}/units:
  82. get:
  83. operationId: campaignIdUnitsGET
  84. summary: Publish info about the campaign's units
  85. tags:
  86. - Unit
  87. security:
  88. - bearerAuth: [read:personal]
  89. - bearerAuth: [read:infrastructure]
  90. parameters:
  91. - $ref: '#/components/parameters/campaignIdParam'
  92. - $ref: '#/components/parameters/zoneParam'
  93. - $ref: '#/components/parameters/navigationLinksParam'
  94. responses:
  95. 200:
  96. description: JSON Array containing info about campaign's units
  97. content:
  98. application/json:
  99. schema:
  100. type: array
  101. items:
  102. $ref: '#/components/schemas/CampaignUnitBasicInfo'
  103. default:
  104. description: unexpected error
  105. content:
  106. application/json:
  107. schema:
  108. $ref: '#/components/schemas/Error'
  109. /campaigns/{campaignId}/units/observations:
  110. get:
  111. operationId: campaignIdUnitsObservationsGET
  112. summary: Publish info about all data of units merged together within the campaign
  113. tags:
  114. - Observation
  115. security:
  116. - bearerAuth: [read:personal]
  117. - bearerAuth: [read:infrastructure]
  118. parameters:
  119. - $ref: '#/components/parameters/campaignIdParam'
  120. - $ref: '#/components/parameters/fromParam'
  121. - $ref: '#/components/parameters/toParam'
  122. - $ref: '#/components/parameters/zoneParam'
  123. - $ref: '#/components/parameters/offsetParam'
  124. - $ref: '#/components/parameters/limitParam'
  125. - $ref: '#/components/parameters/formatParam'
  126. - $ref: '#/components/parameters/filterParam'
  127. - $ref: '#/components/parameters/navigationLinksParam'
  128. responses:
  129. 200:
  130. description: JSON containing stream of telemetry data
  131. content:
  132. application/json:
  133. schema:
  134. $ref: '#/components/schemas/CampaignObservationPaging'
  135. application/geojson:
  136. schema:
  137. $ref: '#/components/schemas/GeoFeatureCollectionUnit'
  138. default:
  139. description: unexpected error
  140. content:
  141. application/json:
  142. schema:
  143. $ref: '#/components/schemas/Error'
  144. post:
  145. operationId: campaignIdUnitsObservationsPOST
  146. tags:
  147. - Observation
  148. security:
  149. - bearerAuth: [write:infrastructure]
  150. parameters:
  151. - $ref: '#/components/parameters/campaignIdParam'
  152. requestBody:
  153. required: true
  154. content:
  155. application/json:
  156. schema:
  157. type: array
  158. items:
  159. $ref: '#/components/schemas/CampaignDataObservation'
  160. application/geojson:
  161. schema:
  162. $ref: '#/components/schemas/GeoFeatureCollectionUnit'
  163. responses:
  164. 200:
  165. description: JSON
  166. content:
  167. application/json:
  168. schema:
  169. $ref: '#/components/schemas/PostResponse'
  170. default:
  171. description: unexpected error
  172. content:
  173. application/json:
  174. schema:
  175. $ref: '#/components/schemas/Error'
  176. /campaigns/{campaignId}/units/observations/locations:
  177. get:
  178. operationId: campaignIdUnitsObservationsLocationsGET
  179. summary: Publish info about all data of units merged together within the campaign
  180. tags:
  181. - Observation
  182. security:
  183. - bearerAuth: [read:personal]
  184. - bearerAuth: [read:infrastructure]
  185. parameters:
  186. - $ref: '#/components/parameters/campaignIdParam'
  187. - $ref: '#/components/parameters/limitPerUnitParam'
  188. - $ref: '#/components/parameters/fromParam'
  189. - $ref: '#/components/parameters/toParam'
  190. - $ref: '#/components/parameters/zoneParam'
  191. - $ref: '#/components/parameters/sortParam'
  192. - $ref: '#/components/parameters/formatParam'
  193. - $ref: '#/components/parameters/filterParam'
  194. - $ref: '#/components/parameters/navigationLinksParam'
  195. responses:
  196. 200:
  197. description: JSON containing stream of telemetry data
  198. content:
  199. application/geojson:
  200. schema:
  201. $ref: '#/components/schemas/GeoCampaignUnitsMultiLocations'
  202. application/json:
  203. schema:
  204. $ref: '#/components/schemas/CampaignUnitsLocationsPaging'
  205. default:
  206. description: unexpected error
  207. content:
  208. application/json:
  209. schema:
  210. $ref: '#/components/schemas/Error'
  211. put:
  212. operationId: campaignIdUnitsObservationsLocationsPUT
  213. summary: Adjusting locations of all observations within 'fromTime' to 'toTime' interval.
  214. tags:
  215. - Observation
  216. security:
  217. - bearerAuth: [ read:infrastructure ]
  218. parameters:
  219. - $ref: '#/components/parameters/campaignIdParam'
  220. requestBody:
  221. required: true
  222. content:
  223. application/json:
  224. schema:
  225. $ref: '#/components/schemas/CampaignUnitsLocationArray'
  226. application/geojson:
  227. schema:
  228. $ref: '#/components/schemas/GeoCampaignUnitsSingleLocations'
  229. responses:
  230. 200:
  231. description: JSON Object containing number of updated observations.
  232. content:
  233. application/json:
  234. schema:
  235. type: object
  236. default:
  237. description: unexpected error
  238. content:
  239. application/json:
  240. schema:
  241. $ref: '#/components/schemas/Error'
  242. /campaigns/{campaignId}/units/{unitId}:
  243. get:
  244. operationId: campaignIdUnitIdGET
  245. summary: Publish info about the unit within its campaign's scope
  246. tags:
  247. - Unit
  248. security:
  249. - bearerAuth: [read:personal]
  250. - bearerAuth: [read:infrastructure]
  251. parameters:
  252. - $ref: '#/components/parameters/campaignIdParam'
  253. - $ref: '#/components/parameters/unitIdParam'
  254. - $ref: '#/components/parameters/zoneParam'
  255. - $ref: '#/components/parameters/navigationLinksParam'
  256. responses:
  257. 200:
  258. description: JSON Object containing info about the unit within its campaign' scope
  259. content:
  260. application/json:
  261. schema:
  262. $ref: '#/components/schemas/CampaignUnitDetailInfo'
  263. default:
  264. description: unexpected error
  265. content:
  266. application/json:
  267. schema:
  268. $ref: '#/components/schemas/Error'
  269. /campaigns/{campaignId}/units/{unitId}/observations:
  270. get:
  271. operationId: campaignIdUnitIdObservationsGET
  272. summary: Publish info about all data of the unit within the campaign
  273. tags:
  274. - Observation
  275. security:
  276. - bearerAuth: [read:personal]
  277. - bearerAuth: [read:infrastructure]
  278. parameters:
  279. - $ref: '#/components/parameters/campaignIdParam'
  280. - $ref: '#/components/parameters/unitIdParam'
  281. - $ref: '#/components/parameters/fromParam'
  282. - $ref: '#/components/parameters/toParam'
  283. - $ref: '#/components/parameters/zoneParam'
  284. - $ref: '#/components/parameters/offsetParam'
  285. - $ref: '#/components/parameters/limitParam'
  286. - $ref: '#/components/parameters/formatParam'
  287. - $ref: '#/components/parameters/filterParam'
  288. - $ref: '#/components/parameters/navigationLinksParam'
  289. responses:
  290. 200:
  291. description: JSON containing stream of telemetry data
  292. content:
  293. application/json:
  294. schema:
  295. $ref: '#/components/schemas/CampaignUnitObservationPaging'
  296. application/geojson:
  297. schema:
  298. $ref: '#/components/schemas/GeoFeatureCollectionUnit'
  299. default:
  300. description: unexpected error
  301. content:
  302. application/json:
  303. schema:
  304. $ref: '#/components/schemas/Error'
  305. /campaigns/{campaignId}/units/{unitId}/observations/locations:
  306. get:
  307. operationId: campaignIdUnitIdLocationsGET
  308. summary: Publish locations of the unit within the campaign
  309. tags:
  310. - Observation
  311. security:
  312. - bearerAuth: [read:personal]
  313. - bearerAuth: [read:infrastructure]
  314. parameters:
  315. - $ref: '#/components/parameters/campaignIdParam'
  316. - $ref: '#/components/parameters/unitIdParam'
  317. - $ref: '#/components/parameters/fromParam'
  318. - $ref: '#/components/parameters/toParam'
  319. - $ref: '#/components/parameters/zoneParam'
  320. - $ref: '#/components/parameters/offsetParam'
  321. - $ref: '#/components/parameters/limitParam'
  322. - $ref: '#/components/parameters/filterParam'
  323. - $ref: '#/components/parameters/formatParam'
  324. - $ref: '#/components/parameters/navigationLinksParam'
  325. responses:
  326. 200:
  327. description: JSON containing stream of locations
  328. content:
  329. application/json:
  330. schema:
  331. $ref: '#/components/schemas/CampaignUnitLocationPaging'
  332. application/geojson:
  333. schema:
  334. $ref: '#/components/schemas/GeoFeatureUnitMultiLocation'
  335. default:
  336. description: unexpected error
  337. content:
  338. application/json:
  339. schema:
  340. $ref: '#/components/schemas/Error'
  341. /campaigns/{campaignId}/units/{unitId}/sensors:
  342. get:
  343. operationId: campaignIdUnitIdSensorsGET
  344. summary: Publish info about all sensors of the unit within the campaign
  345. tags:
  346. - Sensor
  347. security:
  348. - bearerAuth: [read:personal]
  349. - bearerAuth: [read:infrastructure]
  350. parameters:
  351. - $ref: '#/components/parameters/campaignIdParam'
  352. - $ref: '#/components/parameters/unitIdParam'
  353. - $ref: '#/components/parameters/navigationLinksParam'
  354. responses:
  355. 200:
  356. description: JSON containing information of sensors assigned to the unit within its campaign
  357. content:
  358. application/json:
  359. schema:
  360. type: array
  361. items:
  362. $ref: '#/components/schemas/CampaignUnitBasicSensor'
  363. default:
  364. description: unexpected error
  365. content:
  366. application/json:
  367. schema:
  368. $ref: '#/components/schemas/Error'
  369. /campaigns/{campaignId}/units/{unitId}/sensors/{sensorId}:
  370. get:
  371. operationId: campaignIdUnitIdSensorIdGET
  372. summary: Publish info about all sensors associated with the unit and the campaign
  373. tags:
  374. - Sensor
  375. security:
  376. - bearerAuth: [read:personal]
  377. - bearerAuth: [read:infrastructure]
  378. parameters:
  379. - $ref: '#/components/parameters/campaignIdParam'
  380. - $ref: '#/components/parameters/unitIdParam'
  381. - $ref: '#/components/parameters/sensorIdParam'
  382. - $ref: '#/components/parameters/navigationLinksParam'
  383. responses:
  384. 200:
  385. description: JSON Object containing info about the sensor
  386. content:
  387. application/json:
  388. schema:
  389. $ref: '#/components/schemas/CampaignUnitDetailedSensor'
  390. default:
  391. description: unexpected error
  392. content:
  393. application/json:
  394. schema:
  395. $ref: '#/components/schemas/Error'
  396. /campaigns/{campaignId}/units/{unitId}/sensors/{sensorId}/observations:
  397. get:
  398. operationId: campaignIdUnitIdSensorIdObservationsGET
  399. summary: Publish info about all data of the unit within the campaign
  400. tags:
  401. - Observation
  402. security:
  403. - bearerAuth: [read:personal]
  404. - bearerAuth: [read:infrastructure]
  405. parameters:
  406. - $ref: '#/components/parameters/campaignIdParam'
  407. - $ref: '#/components/parameters/unitIdParam'
  408. - $ref: '#/components/parameters/sensorIdParam'
  409. - $ref: '#/components/parameters/fromParam'
  410. - $ref: '#/components/parameters/toParam'
  411. - $ref: '#/components/parameters/zoneParam'
  412. - $ref: '#/components/parameters/offsetParam'
  413. - $ref: '#/components/parameters/limitParam'
  414. - $ref: '#/components/parameters/formatParam'
  415. - $ref: '#/components/parameters/filterParam'
  416. - $ref: '#/components/parameters/navigationLinksParam'
  417. responses:
  418. 200:
  419. description: JSON containing stream of telemetry data
  420. content:
  421. application/json:
  422. schema:
  423. $ref: '#/components/schemas/CampaignUnitSensorObservationPaging'
  424. application/geojson:
  425. schema:
  426. $ref: '#/components/schemas/GeoFeatureCollectionUnit'
  427. default:
  428. description: unexpected error
  429. content:
  430. application/json:
  431. schema:
  432. $ref: '#/components/schemas/Error'
  433. /units:
  434. get:
  435. operationId: unitsGET
  436. summary: Publish info about all units
  437. tags:
  438. - Unit
  439. security:
  440. - bearerAuth: [read:personal]
  441. - bearerAuth: [read:infrastructure]
  442. parameters:
  443. - $ref: '#/components/parameters/navigationLinksParam'
  444. responses:
  445. 200:
  446. description: JSON array of basic info of each unit
  447. content:
  448. application/json:
  449. schema:
  450. type: array
  451. items:
  452. $ref: '#/components/schemas/UnitBasicInfo'
  453. default:
  454. description: unexpected error
  455. content:
  456. application/json:
  457. schema:
  458. $ref: '#/components/schemas/Error'
  459. /units/{unitId}:
  460. get:
  461. operationId: unitIdGET
  462. summary: Publish info about the unit
  463. tags:
  464. - Unit
  465. security:
  466. - bearerAuth: [read:personal]
  467. - bearerAuth: [read:infrastructure]
  468. parameters:
  469. - $ref: '#/components/parameters/unitIdParam'
  470. - $ref: '#/components/parameters/navigationLinksParam'
  471. responses:
  472. 200:
  473. description: JSON Object of info of the unit
  474. content:
  475. application/json:
  476. schema:
  477. $ref: '#/components/schemas/UnitDetailInfo'
  478. default:
  479. description: unexpected error
  480. content:
  481. application/json:
  482. schema:
  483. $ref: '#/components/schemas/Error'
  484. /units/{unitId}/sensors:
  485. get:
  486. operationId: unitIdSensorsGET
  487. summary: Publish info about sensors assigned to the unit
  488. tags:
  489. - Sensor
  490. security:
  491. - bearerAuth: [read:personal]
  492. - bearerAuth: [read:infrastructure]
  493. parameters:
  494. - $ref: '#/components/parameters/unitIdParam'
  495. - $ref: '#/components/parameters/navigationLinksParam'
  496. responses:
  497. 200:
  498. description: JSON Array of info of the sensors
  499. content:
  500. application/json:
  501. schema:
  502. type: array
  503. items:
  504. $ref: '#/components/schemas/UnitSensorBasicInfo'
  505. default:
  506. description: unexpected error
  507. content:
  508. application/json:
  509. schema:
  510. $ref: '#/components/schemas/Error'
  511. /units/{unitId}/campaigns:
  512. get:
  513. operationId: unitIdCampaignsGET
  514. summary: Publish info about campaigns where the unit was/is assigned
  515. tags:
  516. - Campaign
  517. security:
  518. - bearerAuth: [read:personal]
  519. - bearerAuth: [read:infrastructure]
  520. parameters:
  521. - $ref: '#/components/parameters/unitIdParam'
  522. - $ref: '#/components/parameters/zoneParam'
  523. - $ref: '#/components/parameters/navigationLinksParam'
  524. responses:
  525. 200:
  526. description: JSON Array of info about campaigns
  527. content:
  528. application/json:
  529. schema:
  530. type: array
  531. items:
  532. $ref: '#/components/schemas/UnitCampaignBasicInfo'
  533. default:
  534. description: unexpected error
  535. content:
  536. application/json:
  537. schema:
  538. $ref: '#/components/schemas/Error'
  539. /units/{unitId}/entities:
  540. get:
  541. operationId: unitIdEntitiesGET
  542. summary: Publish basic info about entities who performed actions upon the unit
  543. tags:
  544. - Entity
  545. security:
  546. - bearerAuth: [read:personal]
  547. - bearerAuth: [read:infrastructure]
  548. parameters:
  549. - $ref: '#/components/parameters/unitIdParam'
  550. - $ref: '#/components/parameters/navigationLinksParam'
  551. responses:
  552. 200:
  553. description: JSON Array of entities
  554. content:
  555. application/json:
  556. schema:
  557. type: array
  558. items:
  559. $ref: '#/components/schemas/UnitEntityBasicInfo'
  560. default:
  561. description: unexpected error
  562. content:
  563. application/json:
  564. schema:
  565. $ref: '#/components/schemas/Error'
  566. /sensors:
  567. get:
  568. operationId: sensorsGET
  569. summary: Publish info about all sensors
  570. tags:
  571. - Sensor
  572. security:
  573. - bearerAuth: [read:personal]
  574. - bearerAuth: [read:infrastructure]
  575. parameters:
  576. - $ref: '#/components/parameters/navigationLinksParam'
  577. responses:
  578. 200:
  579. description: JSON Array of info about sensors
  580. content:
  581. application/json:
  582. schema:
  583. type: array
  584. items:
  585. $ref: '#/components/schemas/SensorBasicInfo'
  586. default:
  587. description: unexpected error
  588. content:
  589. application/json:
  590. schema:
  591. $ref: '#/components/schemas/Error'
  592. /sensors/{sensorId}:
  593. get:
  594. operationId: sensorIdGET
  595. summary: Publish info about the sensor
  596. tags:
  597. - Sensor
  598. security:
  599. - bearerAuth: [read:personal]
  600. - bearerAuth: [read:infrastructure]
  601. parameters:
  602. - $ref: '#/components/parameters/sensorIdParam'
  603. - $ref: '#/components/parameters/navigationLinksParam'
  604. responses:
  605. 200:
  606. description: JSON Object of info about the sensor
  607. content:
  608. application/json:
  609. schema:
  610. $ref: '#/components/schemas/SensorDetailInfo'
  611. default:
  612. description: unexpected error
  613. content:
  614. application/json:
  615. schema:
  616. $ref: '#/components/schemas/Error'
  617. /sensors/{sensorId}/units:
  618. get:
  619. operationId: sensorIdUnitsGET
  620. summary: Publish info about units to whom the sensor is assigned
  621. tags:
  622. - Unit
  623. security:
  624. - bearerAuth: [read:personal]
  625. - bearerAuth: [read:infrastructure]
  626. parameters:
  627. - $ref: '#/components/parameters/sensorIdParam'
  628. - $ref: '#/components/parameters/navigationLinksParam'
  629. responses:
  630. 200:
  631. description: JSON Array of info about the units
  632. content:
  633. application/json:
  634. schema:
  635. type: array
  636. items:
  637. $ref: '#/components/schemas/SensorUnitBasicInfo'
  638. default:
  639. description: unexpected error
  640. content:
  641. application/json:
  642. schema:
  643. $ref: '#/components/schemas/Error'
  644. /phenomenons:
  645. get:
  646. operationId: phenomenonsGET
  647. summary: Publish info about all phenomenons
  648. tags:
  649. - Phenomenon
  650. security:
  651. - bearerAuth: [read:personal]
  652. - bearerAuth: [read:infrastructure]
  653. parameters:
  654. - $ref: '#/components/parameters/navigationLinksParam'
  655. responses:
  656. 200:
  657. description: JSON Array of info about phenomenons
  658. content:
  659. application/json:
  660. schema:
  661. type: array
  662. items:
  663. $ref: '#/components/schemas/PhenomenonBasicInfo'
  664. default:
  665. description: unexpected error
  666. content:
  667. application/json:
  668. schema:
  669. $ref: '#/components/schemas/Error'
  670. /phenomenons/{phenomenonId}:
  671. get:
  672. operationId: phenomenonIdGET
  673. summary: Publish info about the phenomenon
  674. tags:
  675. - Phenomenon
  676. security:
  677. - bearerAuth: [read:personal]
  678. - bearerAuth: [read:infrastructure]
  679. parameters:
  680. - $ref: '#/components/parameters/phenomenonIdParam'
  681. - $ref: '#/components/parameters/navigationLinksParam'
  682. responses:
  683. 200:
  684. description: JSON Object of info about the phenomenon
  685. content:
  686. application/json:
  687. schema:
  688. $ref: '#/components/schemas/PhenomenonDetailInfo'
  689. default:
  690. description: unexpected error
  691. content:
  692. application/json:
  693. schema:
  694. $ref: '#/components/schemas/Error'
  695. /phenomenons/{phenomenonId}/sensors:
  696. get:
  697. operationId: phenomenonIdSensorsGET
  698. summary: Publish info about sensors of the phenomenon
  699. tags:
  700. - Sensor
  701. security:
  702. - bearerAuth: [read:personal]
  703. - bearerAuth: [read:infrastructure]
  704. parameters:
  705. - $ref: '#/components/parameters/phenomenonIdParam'
  706. - $ref: '#/components/parameters/navigationLinksParam'
  707. responses:
  708. 200:
  709. description: JSON Array of info about sensors
  710. content:
  711. application/json:
  712. schema:
  713. type: array
  714. items:
  715. $ref: '#/components/schemas/PhenomenonSensorBasicInfo'
  716. default:
  717. description: unexpected error
  718. content:
  719. application/json:
  720. schema:
  721. $ref: '#/components/schemas/Error'
  722. /entities:
  723. get:
  724. operationId: entitiesGET
  725. summary: Publish basic info about all entities
  726. tags:
  727. - Entity
  728. security:
  729. - bearerAuth: [read:personal]
  730. - bearerAuth: [read:infrastructure]
  731. parameters:
  732. - $ref: '#/components/parameters/navigationLinksParam'
  733. responses:
  734. 200:
  735. description: JSON Array of basic info about entities
  736. content:
  737. application/json:
  738. schema:
  739. type: array
  740. items:
  741. $ref: '#/components/schemas/EntityBasicInfo'
  742. default:
  743. description: unexpected error
  744. content:
  745. application/json:
  746. schema:
  747. $ref: '#/components/schemas/Error'
  748. /entities/{entityId}:
  749. get:
  750. operationId: entityIdGET
  751. summary: Publish detailed info about the entity
  752. tags:
  753. - Entity
  754. security:
  755. - bearerAuth: [read:personal]
  756. - bearerAuth: [read:infrastructure]
  757. parameters:
  758. - $ref: '#/components/parameters/entityIdParam'
  759. - $ref: '#/components/parameters/navigationLinksParam'
  760. responses:
  761. 200:
  762. description: JSON Object of detailed info about the entity
  763. content:
  764. application/json:
  765. schema:
  766. $ref: '#/components/schemas/EntityDetailInfo'
  767. default:
  768. description: unexpected error
  769. content:
  770. application/json:
  771. schema:
  772. $ref: '#/components/schemas/Error'
  773. /entities/{entityId}/units:
  774. get:
  775. operationId: entityIdUnitsGET
  776. summary: Publish basic info about entity's units
  777. tags:
  778. - Unit
  779. security:
  780. - bearerAuth: [read:personal]
  781. - bearerAuth: [read:infrastructure]
  782. parameters:
  783. - $ref: '#/components/parameters/entityIdParam'
  784. - $ref: '#/components/parameters/fromParam'
  785. - $ref: '#/components/parameters/toParam'
  786. - $ref: '#/components/parameters/navigationLinksParam'
  787. responses:
  788. 200:
  789. description: JSON Array of basic info about units
  790. content:
  791. application/json:
  792. schema:
  793. type: array
  794. items:
  795. $ref: '#/components/schemas/EntityUnitBasicInfo'
  796. default:
  797. description: unexpected error
  798. content:
  799. application/json:
  800. schema:
  801. $ref: '#/components/schemas/Error'
  802. /entities/{entityId}/units/{unitId}:
  803. get:
  804. operationId: entityIdUnitIdGET
  805. summary: Publish detailed info about entity's unit
  806. tags:
  807. - Unit
  808. security:
  809. - bearerAuth: [read:personal]
  810. - bearerAuth: [read:infrastructure]
  811. parameters:
  812. - $ref: '#/components/parameters/entityIdParam'
  813. - $ref: '#/components/parameters/unitIdParam'
  814. - $ref: '#/components/parameters/navigationLinksParam'
  815. responses:
  816. 200:
  817. description: JSON Object of detailed info about entity's unit
  818. content:
  819. application/json:
  820. schema:
  821. $ref: '#/components/schemas/EntityUnitDetailInfo'
  822. default:
  823. description: unexpected error
  824. content:
  825. application/json:
  826. schema:
  827. $ref: '#/components/schemas/Error'
  828. /entities/{entityId}/units/{unitId}/actions:
  829. get:
  830. operationId: entityIdUnitIdActionsGET
  831. summary: Publish basic info actions performed on the unit by the entity
  832. tags:
  833. - Action
  834. security:
  835. - bearerAuth: [read:personal]
  836. - bearerAuth: [read:infrastructure]
  837. parameters:
  838. - $ref: '#/components/parameters/entityIdParam'
  839. - $ref: '#/components/parameters/unitIdParam'
  840. - $ref: '#/components/parameters/navigationLinksParam'
  841. responses:
  842. 200:
  843. description: JSON Object of actions
  844. content:
  845. application/json:
  846. schema:
  847. type: array
  848. items:
  849. $ref: '#/components/schemas/EntityUnitActionBasicInfo'
  850. default:
  851. description: unexpected error
  852. content:
  853. application/json:
  854. schema:
  855. $ref: '#/components/schemas/Error'
  856. /entities/{entityId}/actions:
  857. get:
  858. operationId: entityIdActionsGET
  859. summary: Publish basic info about entity's actions
  860. tags:
  861. - Action
  862. security:
  863. - bearerAuth: [read:personal]
  864. - bearerAuth: [read:infrastructure]
  865. parameters:
  866. - $ref: '#/components/parameters/entityIdParam'
  867. - $ref: '#/components/parameters/fromParam'
  868. - $ref: '#/components/parameters/toParam'
  869. - $ref: '#/components/parameters/navigationLinksParam'
  870. responses:
  871. 200:
  872. description: JSON Array of basic info about entity's actions'
  873. content:
  874. application/json:
  875. schema:
  876. type: array
  877. items:
  878. $ref: '#/components/schemas/EntityActionBasicInfo'
  879. default:
  880. description: unexpected error
  881. content:
  882. application/json:
  883. schema:
  884. $ref: '#/components/schemas/Error'
  885. /entities/{entityId}/actions/{actionId}:
  886. get:
  887. operationId: entityIdActionIdGET
  888. summary: Publish detailed info about the entity's action
  889. tags:
  890. - Action
  891. security:
  892. - bearerAuth: [read:personal]
  893. - bearerAuth: [read:infrastructure]
  894. parameters:
  895. - $ref: '#/components/parameters/entityIdParam'
  896. - $ref: '#/components/parameters/actionIdParam'
  897. - $ref: '#/components/parameters/navigationLinksParam'
  898. responses:
  899. 200:
  900. description: JSON Object of detailed info about the entity's action
  901. content:
  902. application/json:
  903. schema:
  904. $ref: '#/components/schemas/EntityActionDetailInfo'
  905. default:
  906. description: unexpected error
  907. content:
  908. application/json:
  909. schema:
  910. $ref: '#/components/schemas/Error'
  911. /entities/{entityId}/actions/{actionId}/units:
  912. get:
  913. operationId: entityIdActionIdUnitsGET
  914. summary: Publish basic info about units on which the entity performed its action
  915. tags:
  916. - Unit
  917. security:
  918. - bearerAuth: [read:personal]
  919. - bearerAuth: [read:infrastructure]
  920. parameters:
  921. - $ref: '#/components/parameters/entityIdParam'
  922. - $ref: '#/components/parameters/actionIdParam'
  923. - $ref: '#/components/parameters/navigationLinksParam'
  924. responses:
  925. 200:
  926. description: JSON Array of units
  927. content:
  928. application/json:
  929. schema:
  930. type: array
  931. items:
  932. $ref: '#/components/schemas/EntityActionUnitBasicInfo'
  933. default:
  934. description: unexpected error
  935. content:
  936. application/json:
  937. schema:
  938. $ref: '#/components/schemas/Error'
  939. /entities/{entityId}/actions/{actionId}/units/{unitId}:
  940. get:
  941. operationId: entityIdActionIdUnitIdGET
  942. summary: Publish detail info about the unit on which the entity performed the action
  943. tags:
  944. - Unit
  945. security:
  946. - bearerAuth: [read:personal]
  947. - bearerAuth: [read:infrastructure]
  948. parameters:
  949. - $ref: '#/components/parameters/entityIdParam'
  950. - $ref: '#/components/parameters/actionIdParam'
  951. - $ref: '#/components/parameters/unitIdParam'
  952. - $ref: '#/components/parameters/navigationLinksParam'
  953. responses:
  954. 200:
  955. description: JSON Object of the unit
  956. content:
  957. application/json:
  958. schema:
  959. $ref: '#/components/schemas/EntityActionUnitDetailInfo'
  960. default:
  961. description: unexpected error
  962. content:
  963. application/json:
  964. schema:
  965. $ref: '#/components/schemas/Error'
  966. /entities/{entityId}/units/{unitId}/actions/{actionId}:
  967. get:
  968. operationId: entityIdUnitIdActionIdGET
  969. summary: Publish detailed info about the action performed on the unit by the entity
  970. tags:
  971. - Action
  972. security:
  973. - bearerAuth: [read:personal]
  974. - bearerAuth: [read:infrastructure]
  975. parameters:
  976. - $ref: '#/components/parameters/entityIdParam'
  977. - $ref: '#/components/parameters/unitIdParam'
  978. - $ref: '#/components/parameters/actionIdParam'
  979. - $ref: '#/components/parameters/navigationLinksParam'
  980. responses:
  981. 200:
  982. description: JSON Object of the action
  983. content:
  984. application/json:
  985. schema:
  986. $ref: '#/components/schemas/EntityUnitActionDetailInfo'
  987. default:
  988. description: unexpected error
  989. content:
  990. application/json:
  991. schema:
  992. $ref: '#/components/schemas/Error'
  993. /entities/{entityId}/units/{unitId}/actions/{actionId}/events:
  994. get:
  995. operationId: entityIdUnitIdActionIdEventsGET
  996. summary: Publish basic info about events that where performed on the unit byt the entity with the specific action
  997. tags:
  998. - Event
  999. security:
  1000. - bearerAuth: [read:personal]
  1001. - bearerAuth: [read:infrastructure]
  1002. parameters:
  1003. - $ref: '#/components/parameters/entityIdParam'
  1004. - $ref: '#/components/parameters/unitIdParam'
  1005. - $ref: '#/components/parameters/actionIdParam'
  1006. - $ref: '#/components/parameters/zoneParam'
  1007. - $ref: '#/components/parameters/navigationLinksParam'
  1008. responses:
  1009. 200:
  1010. description: JSON Array of events
  1011. content:
  1012. application/json:
  1013. schema:
  1014. type: array
  1015. items:
  1016. $ref: '#/components/schemas/EventBasicInfo'
  1017. default:
  1018. description: unexpected error
  1019. content:
  1020. application/json:
  1021. schema:
  1022. $ref: '#/components/schemas/Error'
  1023. post:
  1024. operationId: entityIdUnitIdActionIdEventsPOST
  1025. tags:
  1026. - Event
  1027. security:
  1028. - bearerAuth: [write:infrastructure]
  1029. parameters:
  1030. - $ref: '#/components/parameters/entityIdParam'
  1031. - $ref: '#/components/parameters/unitIdParam'
  1032. - $ref: '#/components/parameters/actionIdParam'
  1033. requestBody:
  1034. required: true
  1035. content:
  1036. application/json:
  1037. schema:
  1038. oneOf:
  1039. - type: array
  1040. description: Array of events where an object with inserted events can be expected as a result.
  1041. items:
  1042. $ref: '#/components/schemas/EventInsertInfo'
  1043. - $ref: '#/components/schemas/EventInsertInfo'
  1044. responses:
  1045. 200:
  1046. description: Returns an object of number of the newly inserted alerts
  1047. content:
  1048. application/json:
  1049. schema:
  1050. oneOf:
  1051. - $ref: '#/components/schemas/ResponseArrayChange'
  1052. - $ref: '#/components/schemas/ResponseSingleChange'
  1053. default:
  1054. description: unexpected error
  1055. content:
  1056. application/json:
  1057. schema:
  1058. $ref: '#/components/schemas/Error'
  1059. /events/{eventId}:
  1060. get:
  1061. operationId: eventIdGET
  1062. summary: Publish basic info about events that where performed on the unit byt the entity with the specific action
  1063. tags:
  1064. - Event
  1065. security:
  1066. - bearerAuth: [read:personal]
  1067. - bearerAuth: [read:infrastructure]
  1068. parameters:
  1069. - $ref: '#/components/parameters/eventIdParam'
  1070. - $ref: '#/components/parameters/zoneParam'
  1071. - $ref: '#/components/parameters/navigationLinksParam'
  1072. responses:
  1073. 200:
  1074. description: JSON Array of events
  1075. content:
  1076. application/json:
  1077. schema:
  1078. $ref: '#/components/schemas/EventDetailInfo'
  1079. default:
  1080. description: unexpected error
  1081. content:
  1082. application/json:
  1083. schema:
  1084. $ref: '#/components/schemas/Error'
  1085. put:
  1086. operationId: eventIdPUT
  1087. tags:
  1088. - Event
  1089. security:
  1090. - bearerAuth: [write:infrastructure]
  1091. parameters:
  1092. - $ref: '#/components/parameters/eventIdParam'
  1093. requestBody:
  1094. required: true
  1095. content:
  1096. application/json:
  1097. schema:
  1098. type: object
  1099. properties:
  1100. toTime:
  1101. type: string
  1102. format: date-time
  1103. example: "2011-12-03T10:15:30+01:00"
  1104. responses:
  1105. 200:
  1106. description: Returns IO of the adjusted event.
  1107. content:
  1108. application/json:
  1109. schema:
  1110. $ref: '#/components/schemas/ResponseSingleChange'
  1111. default:
  1112. description: unexpected error
  1113. content:
  1114. application/json:
  1115. schema:
  1116. $ref: '#/components/schemas/Error'
  1117. /events/{eventId}/observations:
  1118. get:
  1119. operationId: eventIdObservationsGET
  1120. summary: Publish telemetry observations created by the entity while performing specific action on the unit at the time/event
  1121. tags:
  1122. - Observation
  1123. security:
  1124. - bearerAuth: [read:personal]
  1125. - bearerAuth: [read:infrastructure]
  1126. parameters:
  1127. - $ref: '#/components/parameters/eventIdParam'
  1128. - $ref: '#/components/parameters/zoneParam'
  1129. - $ref: '#/components/parameters/offsetParam'
  1130. - $ref: '#/components/parameters/limitParam'
  1131. - $ref: '#/components/parameters/formatParam'
  1132. - $ref: '#/components/parameters/filterParam'
  1133. - $ref: '#/components/parameters/navigationLinksParam'
  1134. responses:
  1135. 200:
  1136. description: JSON Object of telemetry observations
  1137. content:
  1138. application/json:
  1139. schema:
  1140. $ref: '#/components/schemas/ActionEventObservationPaging'
  1141. application/geojson:
  1142. schema:
  1143. $ref: '#/components/schemas/GeoFeatureCollectionUnit'
  1144. default:
  1145. description: unexpected error
  1146. content:
  1147. application/json:
  1148. schema:
  1149. $ref: '#/components/schemas/Error'
  1150. /events/{eventId}/observations/locations:
  1151. get:
  1152. operationId: eventIdLocationsGET
  1153. summary: Publish locations created by the entity while performing specific action on the unit at the time/event
  1154. tags:
  1155. - Observation
  1156. security:
  1157. - bearerAuth: [read:personal]
  1158. - bearerAuth: [read:infrastructure]
  1159. parameters:
  1160. - $ref: '#/components/parameters/eventIdParam'
  1161. - $ref: '#/components/parameters/fromParam'
  1162. - $ref: '#/components/parameters/toParam'
  1163. - $ref: '#/components/parameters/zoneParam'
  1164. - $ref: '#/components/parameters/offsetParam'
  1165. - $ref: '#/components/parameters/limitParam'
  1166. - $ref: '#/components/parameters/formatParam'
  1167. - $ref: '#/components/parameters/filterParam'
  1168. - $ref: '#/components/parameters/navigationLinksParam'
  1169. responses:
  1170. 200:
  1171. description: JSON containing stream of locations
  1172. content:
  1173. application/json:
  1174. schema:
  1175. $ref: '#/components/schemas/ActionEventLocationPaging'
  1176. application/geojson:
  1177. schema:
  1178. $ref: '#/components/schemas/GeoFeatureUnitMultiLocation'
  1179. default:
  1180. description: unexpected error
  1181. content:
  1182. application/json:
  1183. schema:
  1184. $ref: '#/components/schemas/Error'
  1185. /alerts/{alertId}:
  1186. get:
  1187. operationId: alertIdGET
  1188. tags:
  1189. - Alert
  1190. security:
  1191. - bearerAuth: [read:personal]
  1192. - bearerAuth: [read:infrastructure]
  1193. parameters:
  1194. - $ref: '#/components/parameters/alertIdParam'
  1195. - $ref: '#/components/parameters/zoneParam'
  1196. - $ref: '#/components/parameters/navigationLinksParam'
  1197. responses:
  1198. 200:
  1199. description: JSON Object of the Alert
  1200. content:
  1201. application/json:
  1202. schema:
  1203. $ref: '#/components/schemas/AlertDetailInfo'
  1204. default:
  1205. description: unexpected error
  1206. content:
  1207. application/json:
  1208. schema:
  1209. $ref: '#/components/schemas/Error'
  1210. put:
  1211. operationId: alertIdPUT
  1212. tags:
  1213. - Alert
  1214. security:
  1215. - bearerAuth: [write:infrastructure]
  1216. parameters:
  1217. - $ref: '#/components/parameters/alertIdParam'
  1218. requestBody:
  1219. required: true
  1220. content:
  1221. application/json:
  1222. schema:
  1223. $ref: '#/components/schemas/AlertChange'
  1224. responses:
  1225. 200:
  1226. description: Returns ID of the changed alert
  1227. content:
  1228. application/json:
  1229. schema:
  1230. $ref: '#/components/schemas/ResponseSingleChange'
  1231. default:
  1232. description: unexpected error
  1233. content:
  1234. application/json:
  1235. schema:
  1236. $ref: '#/components/schemas/Error'
  1237. delete:
  1238. operationId: alertIdDELETE
  1239. tags:
  1240. - Alert
  1241. security:
  1242. - bearerAuth: [write:infrastructure]
  1243. parameters:
  1244. - $ref: '#/components/parameters/alertIdParam'
  1245. responses:
  1246. 200:
  1247. description: Returns ID of the changed alert
  1248. content:
  1249. application/json:
  1250. schema:
  1251. $ref: '#/components/schemas/ResponseSingleChange'
  1252. default:
  1253. description: unexpected error
  1254. content:
  1255. application/json:
  1256. schema:
  1257. $ref: '#/components/schemas/Error'
  1258. /events/{eventId}/alerts:
  1259. get:
  1260. operationId: eventIdAlertsGET
  1261. tags:
  1262. - Alert
  1263. security:
  1264. - bearerAuth: [read:personal]
  1265. - bearerAuth: [read:infrastructure]
  1266. parameters:
  1267. - $ref: '#/components/parameters/eventIdParam'
  1268. - $ref: '#/components/parameters/alertStatusParam'
  1269. - $ref: '#/components/parameters/zoneParam'
  1270. - $ref: '#/components/parameters/sortParam'
  1271. - $ref: '#/components/parameters/navigationLinksParam'
  1272. responses:
  1273. 200:
  1274. description: JSON Array of Alerts
  1275. content:
  1276. application/json:
  1277. schema:
  1278. type: array
  1279. items:
  1280. $ref: '#/components/schemas/AlertBasicInfo'
  1281. default:
  1282. description: unexpected error
  1283. content:
  1284. application/json:
  1285. schema:
  1286. $ref: '#/components/schemas/Error'
  1287. /events/{eventId}/alerts/{alertId}:
  1288. get:
  1289. operationId: entityIdActionIdUnitIdAlertIdGET
  1290. tags:
  1291. - Alert
  1292. security:
  1293. - bearerAuth: [read:personal]
  1294. - bearerAuth: [read:infrastructure]
  1295. parameters:
  1296. - $ref: '#/components/parameters/eventIdParam'
  1297. - $ref: '#/components/parameters/alertIdParam'
  1298. - $ref: '#/components/parameters/zoneParam'
  1299. - $ref: '#/components/parameters/navigationLinksParam'
  1300. responses:
  1301. 200:
  1302. description: JSON Object of Alert
  1303. content:
  1304. application/json:
  1305. schema:
  1306. $ref: '#/components/schemas/EventAlertDetailInfo'
  1307. default:
  1308. description: unexpected error
  1309. content:
  1310. application/json:
  1311. schema:
  1312. $ref: '#/components/schemas/Error'
  1313. /campaigns/{campaignId}/units/alerts:
  1314. get:
  1315. operationId: campaignIdUnitsAlertsGET
  1316. tags:
  1317. - Alert
  1318. security:
  1319. - bearerAuth: [read:personal]
  1320. - bearerAuth: [read:infrastructure]
  1321. parameters:
  1322. - $ref: '#/components/parameters/campaignIdParam'
  1323. - $ref: '#/components/parameters/fromParam'
  1324. - $ref: '#/components/parameters/toParam'
  1325. - $ref: '#/components/parameters/sortParam'
  1326. - $ref: '#/components/parameters/alertStatusParam'
  1327. - $ref: '#/components/parameters/zoneParam'
  1328. - $ref: '#/components/parameters/navigationLinksParam'
  1329. responses:
  1330. 200:
  1331. description: JSON Array of Alerts
  1332. content:
  1333. application/json:
  1334. schema:
  1335. type: array
  1336. items:
  1337. $ref: '#/components/schemas/CampaignAlertBasicInfo'
  1338. default:
  1339. description: unexpected error
  1340. content:
  1341. application/json:
  1342. schema:
  1343. $ref: '#/components/schemas/Error'
  1344. post:
  1345. operationId: campaignIdUnitsAlertsPOST
  1346. tags:
  1347. - Alert
  1348. security:
  1349. - bearerAuth: [write:infrastructure]
  1350. parameters:
  1351. - $ref: '#/components/parameters/campaignIdParam'
  1352. requestBody:
  1353. required: true
  1354. content:
  1355. application/json:
  1356. schema:
  1357. oneOf:
  1358. - type: array
  1359. items:
  1360. $ref: '#/components/schemas/AlertInsert'
  1361. - $ref: '#/components/schemas/AlertInsert'
  1362. responses:
  1363. 200:
  1364. description: Returns an object of number of the newly inserted alerts
  1365. content:
  1366. application/json:
  1367. schema:
  1368. oneOf:
  1369. - type: array
  1370. items:
  1371. $ref: '#/components/schemas/CampaignAlertBasicInfo'
  1372. - $ref: '#/components/schemas/CampaignAlertBasicInfo'
  1373. default:
  1374. description: unexpected error
  1375. content:
  1376. application/json:
  1377. schema:
  1378. $ref: '#/components/schemas/Error'
  1379. /campaigns/{campaignId}/units/{unitId}/alerts:
  1380. get:
  1381. operationId: campaignIdUnitIdAlertsGET
  1382. tags:
  1383. - Alert
  1384. security:
  1385. - bearerAuth: [read:personal]
  1386. - bearerAuth: [read:infrastructure]
  1387. parameters:
  1388. - $ref: '#/components/parameters/campaignIdParam'
  1389. - $ref: '#/components/parameters/unitIdParam'
  1390. - $ref: '#/components/parameters/fromParam'
  1391. - $ref: '#/components/parameters/toParam'
  1392. - $ref: '#/components/parameters/zoneParam'
  1393. - $ref: '#/components/parameters/alertStatusParam'
  1394. - $ref: '#/components/parameters/sortParam'
  1395. - $ref: '#/components/parameters/navigationLinksParam'
  1396. responses:
  1397. 200:
  1398. description: JSON Array of Alerts
  1399. content:
  1400. application/json:
  1401. schema:
  1402. type: array
  1403. items:
  1404. $ref: '#/components/schemas/AlertBasicInfo'
  1405. default:
  1406. description: unexpected error
  1407. content:
  1408. application/json:
  1409. schema:
  1410. $ref: '#/components/schemas/Error'
  1411. /entities/{entityId}/actions/{actionId}/units/{unitId}/alerts:
  1412. get:
  1413. operationId: entityIdActionIdUnitIdAlertsGET
  1414. tags:
  1415. - Alert
  1416. security:
  1417. - bearerAuth: [read:personal]
  1418. - bearerAuth: [read:infrastructure]
  1419. parameters:
  1420. - $ref: '#/components/parameters/entityIdParam'
  1421. - $ref: '#/components/parameters/actionIdParam'
  1422. - $ref: '#/components/parameters/unitIdParam'
  1423. - $ref: '#/components/parameters/zoneParam'
  1424. - $ref: '#/components/parameters/alertStatusParam'
  1425. - $ref: '#/components/parameters/sortParam'
  1426. - $ref: '#/components/parameters/navigationLinksParam'
  1427. responses:
  1428. 200:
  1429. description: JSON Array of Alerts
  1430. content:
  1431. application/json:
  1432. schema:
  1433. type: array
  1434. items:
  1435. $ref: '#/components/schemas/AlertBasicInfo'
  1436. default:
  1437. description: unexpected error
  1438. content:
  1439. application/json:
  1440. schema:
  1441. $ref: '#/components/schemas/Error'
  1442. /legacy/observations:
  1443. get:
  1444. operationId: legacyInsertObservationsGET
  1445. description: Legacy endpoint from SensLog v1 to insert observations from static units that are assigned to a mobile unit to get locations.
  1446. tags:
  1447. - Legacy
  1448. parameters:
  1449. - in: query
  1450. name: Operation
  1451. required: true
  1452. schema:
  1453. type: string
  1454. enum:
  1455. - InsertObservation
  1456. - in: query
  1457. name: value
  1458. required: true
  1459. schema:
  1460. type: number
  1461. format: double
  1462. - in: query
  1463. name: date
  1464. required: true
  1465. schema:
  1466. type: string
  1467. - in: query
  1468. name: unit_id
  1469. required: true
  1470. schema:
  1471. type: integer
  1472. format: int64
  1473. minimum: 1
  1474. - in: query
  1475. name: sensor_id
  1476. required: true
  1477. schema:
  1478. type: integer
  1479. format: int64
  1480. minimum: 1
  1481. responses:
  1482. 200:
  1483. description: Boolean value representing success of the insert operation.
  1484. content:
  1485. text/plain:
  1486. schema:
  1487. type: boolean
  1488. components:
  1489. securitySchemes:
  1490. bearerAuth:
  1491. type: http
  1492. scheme: bearer
  1493. bearerFormat: JWT
  1494. parameters:
  1495. campaignIdParam:
  1496. in: path
  1497. name: campaignId
  1498. schema:
  1499. type: integer
  1500. format: int64
  1501. required: true
  1502. description: Numeric ID of the campaign to get
  1503. unitIdParam:
  1504. in: path
  1505. name: unitId
  1506. schema:
  1507. type: integer
  1508. required: true
  1509. description: Numeric ID of the unit to get
  1510. sensorIdParam:
  1511. in: path
  1512. name: sensorId
  1513. schema:
  1514. type: integer
  1515. required: true
  1516. description: Numeric ID of the sensor to get
  1517. phenomenonIdParam:
  1518. in: path
  1519. name: phenomenonId
  1520. schema:
  1521. type: integer
  1522. format: int64
  1523. required: true
  1524. description: Numeric ID of the phenomenon to get
  1525. entityIdParam:
  1526. in: path
  1527. name: entityId
  1528. schema:
  1529. type: integer
  1530. format: int64
  1531. required: true
  1532. description: Numeric ID of the entity to get
  1533. actionIdParam:
  1534. in: path
  1535. name: actionId
  1536. schema:
  1537. type: integer
  1538. format: int64
  1539. required: true
  1540. description: Numeric ID of the action to get
  1541. eventIdParam:
  1542. in: path
  1543. name: eventId
  1544. schema:
  1545. type: integer
  1546. format: int64
  1547. required: true
  1548. description: Numeric ID of the event to get
  1549. alertIdParam:
  1550. in: path
  1551. name: alertId
  1552. schema:
  1553. type: integer
  1554. format: int64
  1555. required: true
  1556. description: Numeric ID of the alert to get
  1557. zoneParam:
  1558. in: query
  1559. name: zone
  1560. schema:
  1561. type: string
  1562. default: UTC
  1563. required: false
  1564. examples:
  1565. UTC:
  1566. value: UTC
  1567. GMT:
  1568. value: GMT
  1569. navigationLinksParam:
  1570. in: query
  1571. name: navigationLinks
  1572. schema:
  1573. type: boolean
  1574. default: true
  1575. description: Option to disable @NavigationLinks in a response
  1576. limitParam:
  1577. in: query
  1578. name: limit
  1579. schema:
  1580. type: integer
  1581. format: int64
  1582. maximum: 500
  1583. required: false
  1584. example: 100
  1585. offsetParam:
  1586. in: query
  1587. name: offset
  1588. schema:
  1589. type: integer
  1590. format: int64
  1591. example: 100
  1592. fromParam:
  1593. in: query
  1594. name: from
  1595. schema:
  1596. type: string
  1597. format: date-time
  1598. required: false
  1599. example: 2017-07-21T17:32:28Z
  1600. toParam:
  1601. in: query
  1602. name: to
  1603. schema:
  1604. type: string
  1605. format: date-time
  1606. required: false
  1607. example: 2017-07-21T17:32:28Z
  1608. limitPerUnitParam:
  1609. in: query
  1610. name: limitPerUnit
  1611. schema:
  1612. type: integer
  1613. default: 1
  1614. examples:
  1615. One locations:
  1616. value: 1
  1617. summary: One location of each unit
  1618. sortParam:
  1619. in: query
  1620. name: sort
  1621. schema:
  1622. type: string
  1623. enum: [ asc, desc ]
  1624. default: asc
  1625. examples:
  1626. Descending Order:
  1627. value: desc
  1628. summary: Last location of the units. Last location is combination of sort=desc & limitPerUnit=1
  1629. Ascending Order:
  1630. value: asc
  1631. filterParam:
  1632. in: query
  1633. name: filter
  1634. description: Filter for results following the pattern
  1635. <unit | sensor>(<numeric_float_id | speed | longitude | latitude | altitude>)<lt | le | eq | ne | ge | lt><float_value>, e.g,
  1636. schema:
  1637. type: string
  1638. required: false
  1639. examples:
  1640. Units latitude:
  1641. value: unit(latitude)lt50.1
  1642. summary: Returns all units with its latitude coordination lower than (LT) 50.1
  1643. Units speed:
  1644. value: unit(speed)gt90.0
  1645. summary: Returns all units with its speed greater than 90.0 Km/h
  1646. Sensor ID value:
  1647. value: sensor(105)gt10
  1648. summary: Returns sensors having its value greater than 10
  1649. formatParam:
  1650. in: query
  1651. name: format
  1652. schema:
  1653. type: string
  1654. enum: [json, geojson]
  1655. default: json
  1656. required: false
  1657. alertStatusParam:
  1658. in: query
  1659. name: status
  1660. schema:
  1661. $ref: '#/components/schemas/AlertStatus'
  1662. schemas:
  1663. CampaignBasicInfo:
  1664. type: object
  1665. required:
  1666. - id
  1667. - name
  1668. - fromTime
  1669. - toTime
  1670. x-NavigationLinks:
  1671. Campaign@NavigationLink:
  1672. type: string
  1673. format: uri
  1674. x-graph-properties:
  1675. linkTo: campaignIdGET
  1676. color: blue
  1677. properties:
  1678. Campaign@NavigationLink:
  1679. $ref: '#/components/schemas/CampaignBasicInfo/x-NavigationLinks/Campaign@NavigationLink'
  1680. id:
  1681. type: integer
  1682. format: int64
  1683. name:
  1684. type: string
  1685. fromTime:
  1686. type: string
  1687. format: date-time
  1688. toTime:
  1689. type: string
  1690. format: date-time
  1691. example:
  1692. Campaign@NavigationLink: "<domain>/campaigns/1"
  1693. id: 1
  1694. name: "Campaign 1"
  1695. fromTime: "2011-12-03T10:15:30+01:00"
  1696. toTime: "2011-12-03T10:15:30+01:00"
  1697. CampaignDetailInfo:
  1698. type: object
  1699. required:
  1700. - id
  1701. - name
  1702. - fromTime
  1703. - toTime
  1704. x-NavigationLinks:
  1705. self@NavigationLink:
  1706. type: string
  1707. format: uri
  1708. x-graph-properties:
  1709. linkTo: campaignIdGET
  1710. Observations@NavigationLink:
  1711. type: string
  1712. format: uri
  1713. x-graph-properties:
  1714. linkTo: campaignIdUnitsObservationsGET
  1715. Locations@NavigationLink:
  1716. type: string
  1717. format: uri
  1718. x-graph-properties:
  1719. linkTo: campaignIdUnitsObservationsLocationsGET
  1720. Units@NavigationLink:
  1721. type: string
  1722. format: uri
  1723. x-graph-properties:
  1724. linkTo: campaignIdUnitsGET
  1725. properties:
  1726. self@NavigationLink:
  1727. $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/self@NavigationLink'
  1728. Observations@NavigationLink:
  1729. $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/Observations@NavigationLink'
  1730. Locations@NavigationLink:
  1731. $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/Locations@NavigationLink'
  1732. Units@NavigationLink:
  1733. $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/Units@NavigationLink'
  1734. id:
  1735. description: Identifier of the campaign
  1736. type: integer
  1737. format: int64
  1738. name:
  1739. type: string
  1740. description:
  1741. description: Text description of the campaign
  1742. type: string
  1743. fromTime:
  1744. description: Time when the campaign starts
  1745. type: string
  1746. format: date-time
  1747. toTime:
  1748. description: Time when the campaign ends
  1749. type: string
  1750. format: date-time
  1751. example:
  1752. self@NavigationLink: "<domain>/campaigns/1"
  1753. Observations@NavigationLink: "<domain>/campaigns/1/units/observations"
  1754. Locations@NavigationLink: "<domain>/campaigns/1/units/observations/locations"
  1755. Units@NavigationLink: "<domain>/campaigns/1/units"
  1756. id: 1
  1757. name: "Campaign 1"
  1758. description: "Campaign description"
  1759. fromTime: "2011-12-03T10:15:30+01:00"
  1760. toTime: "2011-12-03T10:15:30+01:00"
  1761. CampaignUnitBasicInfo:
  1762. type: object
  1763. required:
  1764. - unitId
  1765. - name
  1766. - fromTime
  1767. - toTime
  1768. x-NavigationLinks:
  1769. Unit@NavigationLink:
  1770. type: string
  1771. format: uri
  1772. x-graph-properties:
  1773. linkTo: unitIdGET
  1774. CampaignUnit@NavigationLink:
  1775. type: string
  1776. format: uri
  1777. x-graph-properties:
  1778. linkTo: campaignIdUnitIdGET
  1779. properties:
  1780. Unit@NavigationLink:
  1781. $ref: '#/components/schemas/CampaignUnitBasicInfo/x-NavigationLinks/Unit@NavigationLink'
  1782. CampaignUnit@NavigationLink:
  1783. $ref: '#/components/schemas/CampaignUnitBasicInfo/x-NavigationLinks/CampaignUnit@NavigationLink'
  1784. unitId:
  1785. description: Identifier of the unit
  1786. type: integer
  1787. format: int64
  1788. name:
  1789. type: string
  1790. description:
  1791. type: string
  1792. fromTime:
  1793. description: Time when the validity of the unit starts within the campaign
  1794. type: string
  1795. format: date-time
  1796. toTime:
  1797. description: Time when the validity of the unit ends within the campaign
  1798. type: string
  1799. format: date-time
  1800. example:
  1801. Unit@NavigationLink: "<domain>/units/25"
  1802. CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
  1803. unitId: 25
  1804. name: "Unit name"
  1805. description: "Purpose of the Unit 25"
  1806. fromTime: "2011-12-03T10:15:30+01:00"
  1807. toTime: "2011-12-03T10:15:30+01:00"
  1808. CampaignUnitDetailInfo:
  1809. type: object
  1810. required:
  1811. - unitId
  1812. - imei
  1813. - fromTime
  1814. - toTime
  1815. x-NavigationLinks:
  1816. self@NavigationLink:
  1817. type: string
  1818. format: uri
  1819. x-graph-properties:
  1820. linkTo: campaignIdUnitIdGET
  1821. Unit@NavigationLink:
  1822. type: string
  1823. format: uri
  1824. x-graph-properties:
  1825. linkTo: unitIdGET
  1826. Campaign@NavigationLink:
  1827. type: string
  1828. format: uri
  1829. x-graph-properties:
  1830. linkTo: campaignIdGET
  1831. Sensors@NavigationLink:
  1832. type: string
  1833. format: uri
  1834. x-graph-properties:
  1835. linkTo: campaignIdUnitIdSensorsGET
  1836. Observations@NavigationLink:
  1837. type: string
  1838. format: uri
  1839. x-graph-properties:
  1840. linkTo: campaignIdUnitIdObservationsGET
  1841. Locations@NavigationLink:
  1842. type: string
  1843. format: uri
  1844. x-graph-properties:
  1845. linkTo: campaignIdUnitIdLocationsGET
  1846. Alerts@NavigationLink:
  1847. type: string
  1848. format: uni
  1849. x-graph-properties:
  1850. linkTo: campaignIdUnitIdAlertsGET
  1851. properties:
  1852. self@NavigationLink:
  1853. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
  1854. Unit@NavigationLink:
  1855. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
  1856. Campaign@NavigationLink:
  1857. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Campaign@NavigationLink'
  1858. Sensors@NavigationLink:
  1859. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Sensors@NavigationLink'
  1860. Observations@NavigationLink:
  1861. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Observations@NavigationLink'
  1862. Locations@NavigationLink:
  1863. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Locations@NavigationLink'
  1864. Alerts@NavigationLink:
  1865. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Alerts@NavigationLink'
  1866. unitId:
  1867. description: Identifier of the unit
  1868. type: integer
  1869. format: int64
  1870. imei:
  1871. type: string
  1872. description:
  1873. type: string
  1874. fromTime:
  1875. description: Time when the validity of the unit starts within the campaign
  1876. type: string
  1877. format: date-time
  1878. toTime:
  1879. description: Time when the validity of the unit ends within the campaign
  1880. type: string
  1881. format: date-time
  1882. example:
  1883. self@NavigationLink: "<domain>/campaigns/1/units/25"
  1884. Unit@NavigationLink: "<domain>/units/25"
  1885. Campaign@NavigationLink: "<domain>/campaigns/1"
  1886. Sensors@NavigationLink: "<domain>/campaigns/1/units/25/sensors"
  1887. Observations@NavigationLink: "<domain>/campaigns/1/units/25/observations"
  1888. Locations@NavigationLink: "<domain>/campaigns/1/units/25/observations/locations"
  1889. Alerts@NavigationLink: "<domain>/campaigns/1/units/25/alerts"
  1890. unitId: 25
  1891. imei: "3434533453"
  1892. description: "Purpose of the Unit 25"
  1893. fromTime: "2011-12-03T10:15:30+01:00"
  1894. toTime: "2011-12-03T10:15:30+01:00"
  1895. CampaignUnitBasicSensor:
  1896. type: object
  1897. required:
  1898. - sensorId
  1899. - name
  1900. - type
  1901. x-NavigationLinks:
  1902. CampaignSensor@NavigationLink:
  1903. type: string
  1904. format: uri
  1905. x-graph-properties:
  1906. linkTo: campaignIdUnitIdSensorIdGET
  1907. properties:
  1908. CampaignSensor@NavigationLink:
  1909. $ref: '#/components/schemas/CampaignUnitBasicSensor/x-NavigationLinks/CampaignSensor@NavigationLink'
  1910. sensorId:
  1911. description: Identifier of the unit
  1912. type: integer
  1913. format: int64
  1914. name:
  1915. type: string
  1916. type:
  1917. type: string
  1918. example:
  1919. CampaignSensor@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
  1920. sensorId: 105
  1921. name: "Sensor 105"
  1922. type: "X"
  1923. CampaignUnitDetailedSensor:
  1924. type: object
  1925. required:
  1926. - sensorId
  1927. - ioId
  1928. - name
  1929. - phenomenon
  1930. - type
  1931. x-NavigationLinks:
  1932. self@NavigationLink:
  1933. type: string
  1934. format: uri
  1935. x-graph-properties:
  1936. linkTo: campaignIdUnitIdSensorIdGET
  1937. Sensor@NavigationLink:
  1938. type: string
  1939. format: uri
  1940. x-graph-properties:
  1941. linkTo: sensorIdGET
  1942. CampaignUnit@NavigationLink:
  1943. type: string
  1944. format: uri
  1945. x-graph-properties:
  1946. linkTo: campaignIdUnitIdGET
  1947. Phenomenon@NavigationLink:
  1948. type: string
  1949. format: uri
  1950. x-graph-properties:
  1951. linkTo: phenomenonIdGET
  1952. Observations@NavigationLink:
  1953. type: string
  1954. format: uri
  1955. x-graph-properties:
  1956. linkTo: campaignIdUnitIdSensorIdObservationsGET
  1957. properties:
  1958. self@NavigationLink:
  1959. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/self@NavigationLink'
  1960. Sensor@NavigationLink:
  1961. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/Sensor@NavigationLink'
  1962. CampaignUnit@NavigationLink:
  1963. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/CampaignUnit@NavigationLink'
  1964. Phenomenon@NavigationLink:
  1965. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/Phenomenon@NavigationLink'
  1966. Observations@NavigationLink:
  1967. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/Observations@NavigationLink'
  1968. sensorId:
  1969. type: integer
  1970. format: int64
  1971. ioId:
  1972. type: integer
  1973. format: int32
  1974. minimum: 1
  1975. name:
  1976. type: string
  1977. phenomenon:
  1978. type: string
  1979. type:
  1980. type: string
  1981. description:
  1982. type: string
  1983. example:
  1984. self@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
  1985. Sensor@NavigationLink: "<domain>/sensors/105"
  1986. CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
  1987. Phenomenon@NavigationLink: "<domain>/phenomenons/15"
  1988. Observations@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105/observations"
  1989. sensorId: 105
  1990. ioId: 98
  1991. name: "Sensor 105"
  1992. description: "Description of the sensor 105"
  1993. type: "type of sensor"
  1994. phenomenon: "Temperature"
  1995. CampaignObservationPaging:
  1996. type: object
  1997. required:
  1998. - params
  1999. - hasNext
  2000. - size
  2001. - offset
  2002. - data
  2003. x-NavigationLinks:
  2004. Campaign@NavigationLink:
  2005. type: string
  2006. format: uri
  2007. x-graph-properties:
  2008. linkTo: campaignIdGET
  2009. next@NavigationLink:
  2010. type: string
  2011. format: uri
  2012. x-graph-properties:
  2013. linkTo: campaignIdUnitsObservationsGET
  2014. properties:
  2015. Campaign@NavigationLink:
  2016. $ref: '#/components/schemas/CampaignObservationPaging/x-NavigationLinks/Campaign@NavigationLink'
  2017. next@NavigationLink:
  2018. $ref: '#/components/schemas/CampaignObservationPaging/x-NavigationLinks/next@NavigationLink'
  2019. params:
  2020. type: object
  2021. description: Used params in URL
  2022. hasNext:
  2023. type: boolean
  2024. size:
  2025. type: integer
  2026. offset:
  2027. type: integer
  2028. data:
  2029. type: array
  2030. items:
  2031. $ref: '#/components/schemas/CampaignDataObservation'
  2032. example:
  2033. Campaign@NavigationLink: "<domain>/campaigns/1"
  2034. next@NavigationLink: "<domain>/campaigns/1/observations?offset=500"
  2035. size: 500
  2036. offset: 0
  2037. data: []
  2038. GeoFeatureCollectionUnit:
  2039. type: object
  2040. required:
  2041. - type
  2042. - features
  2043. properties:
  2044. type:
  2045. type: string
  2046. enum:
  2047. - FeatureCollection
  2048. metadata:
  2049. type: object
  2050. features:
  2051. type: array
  2052. minLength: 1
  2053. items:
  2054. $ref: '#/components/schemas/GeoFeatureUnitObservation'
  2055. GeoFeatureUnitObservation:
  2056. type: object
  2057. required:
  2058. - type
  2059. - geometry
  2060. - properties
  2061. properties:
  2062. type:
  2063. type: string
  2064. enum:
  2065. - Feature
  2066. geometry:
  2067. $ref: '#/components/schemas/GeoPoint'
  2068. properties:
  2069. type: object
  2070. required:
  2071. - unitId
  2072. - timestamp
  2073. - speed
  2074. properties:
  2075. unitId:
  2076. type: integer
  2077. format: int64
  2078. timestamp:
  2079. type: string
  2080. format: date-time
  2081. speed:
  2082. type: integer
  2083. format: int64
  2084. observedValues:
  2085. type: object
  2086. GeoPoint:
  2087. type: object
  2088. required:
  2089. - type
  2090. - coordinates
  2091. properties:
  2092. type:
  2093. type: string
  2094. enum:
  2095. - Point
  2096. coordinates:
  2097. type: array
  2098. items:
  2099. type: number
  2100. format: float
  2101. minLength: 3
  2102. maxLength: 3
  2103. description: "[lon, lat, alt]"
  2104. CampaignUnitObservationPaging:
  2105. type: object
  2106. required:
  2107. - params
  2108. - hasNext
  2109. - size
  2110. - offset
  2111. - data
  2112. x-NavigationLinks:
  2113. CampaignUnit@NavigationLink:
  2114. type: string
  2115. format: uri
  2116. x-graph-properties:
  2117. linkTo: campaignIdUnitIdGET
  2118. next@NavigationLink:
  2119. type: string
  2120. format: uri
  2121. x-graph-properties:
  2122. linkTo: campaignIdUnitIdObservationsGET
  2123. properties:
  2124. CampaignUnit@NavigationLink:
  2125. $ref: '#/components/schemas/CampaignUnitObservationPaging/x-NavigationLinks/CampaignUnit@NavigationLink'
  2126. next@NavigationLink:
  2127. $ref: '#/components/schemas/CampaignUnitObservationPaging/x-NavigationLinks/next@NavigationLink'
  2128. params:
  2129. type: object
  2130. description: Used params in URL
  2131. hasNext:
  2132. type: boolean
  2133. size:
  2134. type: integer
  2135. offset:
  2136. type: integer
  2137. data:
  2138. type: array
  2139. items:
  2140. $ref: '#/components/schemas/UnitDataObservation'
  2141. example:
  2142. CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
  2143. next@NavigationLink: "<domain>/campaigns/1/units/25/observations?offset=500"
  2144. params: []
  2145. size: 500
  2146. hasNext: true
  2147. offset: 0
  2148. data: []
  2149. CampaignUnitSensorObservationPaging:
  2150. type: object
  2151. required:
  2152. - params
  2153. - size
  2154. - offset
  2155. - hasNext
  2156. - data
  2157. x-NavigationLinks:
  2158. CampaignSensor@NavigationLink:
  2159. type: string
  2160. format: uri
  2161. x-graph-properties:
  2162. linkTo: campaignIdUnitIdSensorIdGET
  2163. next@NavigationLink:
  2164. type: string
  2165. format: uri
  2166. x-graph-properties:
  2167. linkTo: campaignIdUnitIdSensorIdObservationsGET
  2168. properties:
  2169. CampaignSensor@NavigationLink:
  2170. $ref: '#/components/schemas/CampaignUnitSensorObservationPaging/x-NavigationLinks/CampaignSensor@NavigationLink'
  2171. next@NavigationLink:
  2172. $ref: '#/components/schemas/CampaignUnitSensorObservationPaging/x-NavigationLinks/next@NavigationLink'
  2173. params:
  2174. type: object
  2175. description: Used params in URL
  2176. size:
  2177. type: integer
  2178. offset:
  2179. type: integer
  2180. hasNext:
  2181. type: boolean
  2182. data:
  2183. type: array
  2184. items:
  2185. $ref: '#/components/schemas/SensorDataObservation'
  2186. example:
  2187. CampaignSensor@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
  2188. next@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105/observations?offset=500"
  2189. size: 500
  2190. offset: 0
  2191. data: []
  2192. ActionEventObservationPaging:
  2193. type: object
  2194. required:
  2195. - params
  2196. - hasNext
  2197. - size
  2198. - offset
  2199. - data
  2200. x-NavigationLinks:
  2201. Event@NavigationLink:
  2202. type: string
  2203. format: uri
  2204. x-graph-properties:
  2205. linkTo: eventIdGET
  2206. next@NavigationLink:
  2207. type: string
  2208. format: uri
  2209. x-graph-properties:
  2210. linkTo: eventIdObservationsGET
  2211. properties:
  2212. Event@NavigationLink:
  2213. $ref: '#/components/schemas/ActionEventObservationPaging/x-NavigationLinks/Event@NavigationLink'
  2214. next@NavigationLink:
  2215. $ref: '#/components/schemas/ActionEventObservationPaging/x-NavigationLinks/next@NavigationLink'
  2216. params:
  2217. type: object
  2218. description: Used params in URL
  2219. hasNext:
  2220. type: boolean
  2221. size:
  2222. type: integer
  2223. offset:
  2224. type: integer
  2225. data:
  2226. type: array
  2227. items:
  2228. $ref: '#/components/schemas/UnitDataObservation'
  2229. example:
  2230. Event@NavigationLink: "<domain>/events/999"
  2231. next@NavigationLink: "<domain>/events/999/observations?offset=500"
  2232. params: []
  2233. size: 500
  2234. hasNext: true
  2235. offset: 0
  2236. data: []
  2237. CampaignDataObservation:
  2238. type: object
  2239. required:
  2240. - unitId
  2241. - timestamp
  2242. - speed
  2243. - location
  2244. - observedValues
  2245. properties:
  2246. unitId:
  2247. type: integer
  2248. format: int64
  2249. timestamp:
  2250. type: string
  2251. format: date-time
  2252. speed:
  2253. type: integer
  2254. format: int64
  2255. location:
  2256. $ref: '#/components/schemas/Location'
  2257. observedValues:
  2258. type: object
  2259. example:
  2260. unitId: 25
  2261. timestamp: "2011-12-03T10:15:30+01:00"
  2262. location:
  2263. longitude: 49.7384
  2264. latitude: 13.3736
  2265. altitude: 350.3
  2266. observedValues:
  2267. 105: 1434
  2268. UnitDataObservation:
  2269. type: object
  2270. required:
  2271. - timestamp
  2272. - speed
  2273. - location
  2274. - observedValues
  2275. properties:
  2276. timestamp:
  2277. type: string
  2278. format: date-time
  2279. speed:
  2280. type: integer
  2281. format: int64
  2282. location:
  2283. $ref: '#/components/schemas/Location'
  2284. observedValues:
  2285. type: object
  2286. example:
  2287. timestamp: "2011-12-03T10:15:30+01:00"
  2288. speed: 34
  2289. location:
  2290. longitude: 49.7384
  2291. latitude: 13.3736
  2292. altitude: 350.3
  2293. observedValues:
  2294. temperature: 28
  2295. SensorDataObservation:
  2296. type: object
  2297. required:
  2298. - timestamp
  2299. - observedValue
  2300. - speed
  2301. - location
  2302. properties:
  2303. timestamp:
  2304. type: string
  2305. format: date-time
  2306. observedValue:
  2307. type: number
  2308. format: double
  2309. speed:
  2310. type: integer
  2311. format: int64
  2312. location:
  2313. $ref: '#/components/schemas/Location'
  2314. example:
  2315. timestamp: "2011-12-03T10:15:30+01:00"
  2316. observedValue: 1434
  2317. speed: 34
  2318. location:
  2319. longitude: 49.7384
  2320. latitude: 13.3736
  2321. altitude: 350.3
  2322. CampaignUnitLocationPaging:
  2323. type: object
  2324. required:
  2325. - params
  2326. - hasNext
  2327. - size
  2328. - offset
  2329. - data
  2330. x-NavigationLinks:
  2331. Campaign@NavigationLink:
  2332. type: string
  2333. format: uri
  2334. x-graph-properties:
  2335. linkTo: campaignIdGET
  2336. Unit@NavigationLink:
  2337. type: string
  2338. format: uri
  2339. x-graph-properties:
  2340. linkTo: campaignIdUnitIdGET
  2341. next@NavigationLink:
  2342. type: string
  2343. format: uri
  2344. x-graph-properties:
  2345. linkTo: campaignIdUnitIdLocationsGET
  2346. properties:
  2347. Campaign@NavigationLink:
  2348. $ref: '#/components/schemas/CampaignUnitLocationPaging/x-NavigationLinks/Campaign@NavigationLink'
  2349. Unit@NavigationLink:
  2350. $ref: '#/components/schemas/CampaignUnitLocationPaging/x-NavigationLinks/Unit@NavigationLink'
  2351. next@NavigationLink:
  2352. $ref: '#/components/schemas/CampaignUnitLocationPaging/x-NavigationLinks/next@NavigationLink'
  2353. params:
  2354. type: object
  2355. description: Used params in URL
  2356. hasNext:
  2357. type: boolean
  2358. size:
  2359. type: integer
  2360. offset:
  2361. type: integer
  2362. data:
  2363. type: array
  2364. items:
  2365. type: object
  2366. properties:
  2367. timestamp:
  2368. type: string
  2369. format: date-time
  2370. location:
  2371. $ref: '#/components/schemas/Location'
  2372. example:
  2373. Campaign@NavigationLink: "<domain>/campaigns/1"
  2374. Unit@NavigationLink: "<domain>/campaigns/1/units/25"
  2375. next@NavigationLink: "<domain>/campaigns/1/units/25/observations/locations?offset=500"
  2376. params:
  2377. offset: 0
  2378. limit: 500
  2379. navigationLinks: true
  2380. size: 500
  2381. hasNext: true
  2382. offset: 0
  2383. data:
  2384. - timestamp: "2011-12-03T10:15:30+01:00"
  2385. location:
  2386. longitude: 49.7384
  2387. latitude: 13.3736
  2388. altitude: 350.3
  2389. CampaignUnitsLocationArray:
  2390. type: array
  2391. items:
  2392. $ref: '#/components/schemas/CampaignUnitsLocation'
  2393. CampaignUnitsLocation:
  2394. type: object
  2395. required:
  2396. - unitId
  2397. - timestamp
  2398. - location
  2399. properties:
  2400. unitId:
  2401. type: integer
  2402. format: int64
  2403. timestamp:
  2404. type: string
  2405. format: date-time
  2406. location:
  2407. $ref: '#/components/schemas/Location'
  2408. example:
  2409. unitId: 25
  2410. timestamp: "2011-12-03T10:15:30+01:00"
  2411. location:
  2412. longitude: 49.7384
  2413. latitude: 13.3736
  2414. altitude: 350.3
  2415. CampaignUnitsLocationsPaging:
  2416. type: object
  2417. required:
  2418. - params
  2419. - size
  2420. - data
  2421. x-NavigationLinks:
  2422. Campaign@NavigationLink:
  2423. type: string
  2424. format: uri
  2425. x-graph-properties:
  2426. linkTo: campaignIdGET
  2427. properties:
  2428. Campaign@NavigationLink:
  2429. $ref: '#/components/schemas/CampaignUnitsLocationsPaging/x-NavigationLinks/Campaign@NavigationLink'
  2430. params:
  2431. type: object
  2432. description: Used params in URL
  2433. size:
  2434. type: integer
  2435. data:
  2436. $ref: '#/components/schemas/CampaignUnitsLocationArray'
  2437. example:
  2438. Campaign@NavigationLink: "<domain>/campaigns/1"
  2439. params:
  2440. from: "2011-12-03T10:15:30+01:00"
  2441. to: "2011-12-03T10:15:30+01:00"
  2442. navigationLinks: true
  2443. size: 8
  2444. data:
  2445. - unitId: 25
  2446. timestamp: "2011-12-03T10:15:30+01:00"
  2447. location:
  2448. longitude: 49.7384
  2449. latitude: 13.3736
  2450. altitude: 350.3
  2451. GeoCampaignUnitsSingleLocations:
  2452. type: object
  2453. required:
  2454. - type
  2455. - features
  2456. properties:
  2457. type:
  2458. type: string
  2459. enum:
  2460. - FeatureCollection
  2461. metadata:
  2462. type: object
  2463. features:
  2464. type: array
  2465. minLength: 2
  2466. items:
  2467. $ref: '#/components/schemas/GeoFeatureUnitSingleLocation'
  2468. GeoFeatureUnitSingleLocation:
  2469. type: object
  2470. required:
  2471. - type
  2472. - properties
  2473. - geometry
  2474. properties:
  2475. type:
  2476. type: string
  2477. enum:
  2478. - Feature
  2479. properties:
  2480. type: object
  2481. required:
  2482. - unitId
  2483. - timestamp
  2484. properties:
  2485. unitId:
  2486. type: integer
  2487. format: int64
  2488. timestamp:
  2489. type: string
  2490. format: date-time
  2491. geometry:
  2492. $ref: '#/components/schemas/GeoPoint'
  2493. GeoCampaignUnitsMultiLocations:
  2494. type: object
  2495. required:
  2496. - type
  2497. - features
  2498. properties:
  2499. type:
  2500. type: string
  2501. enum:
  2502. - FeatureCollection
  2503. metadata:
  2504. type: object
  2505. features:
  2506. type: array
  2507. minLength: 1
  2508. items:
  2509. $ref: '#/components/schemas/GeoFeatureUnitMultiLocation'
  2510. GeoFeatureUnitMultiLocation:
  2511. type: object
  2512. required:
  2513. - type
  2514. - properties
  2515. - geometry
  2516. properties:
  2517. type:
  2518. type: string
  2519. enum:
  2520. - Feature
  2521. properties:
  2522. type: object
  2523. required:
  2524. - unitId
  2525. - fromTime
  2526. - toTime
  2527. properties:
  2528. unitId:
  2529. type: integer
  2530. format: int64
  2531. fromTime:
  2532. type: string
  2533. format: date-time
  2534. toTime:
  2535. type: string
  2536. format: date-time
  2537. geometry:
  2538. $ref: '#/components/schemas/GeoMultiPoint'
  2539. GeoMultiPoint:
  2540. type: object
  2541. required:
  2542. - type
  2543. - coordinates
  2544. properties:
  2545. type:
  2546. type: string
  2547. enum:
  2548. - MultiPoint
  2549. coordinates:
  2550. type: array
  2551. minLength: 1
  2552. items:
  2553. type: array
  2554. items:
  2555. type: number
  2556. format: float
  2557. minLength: 3
  2558. maxLength: 3
  2559. description: "[lon, lat, alt]"
  2560. ActionEventLocationPaging:
  2561. type: object
  2562. required:
  2563. - params
  2564. - hasNext
  2565. - size
  2566. - offset
  2567. - data
  2568. x-NavigationLinks:
  2569. Event@NavigationLink:
  2570. type: string
  2571. format: uri
  2572. x-graph-properties:
  2573. linkTo: eventIdGET
  2574. next@NavigationLink:
  2575. type: string
  2576. format: uri
  2577. x-graph-properties:
  2578. linkTo: eventIdLocationsGET
  2579. properties:
  2580. Event@NavigationLink:
  2581. $ref: '#/components/schemas/ActionEventLocationPaging/x-NavigationLinks/Event@NavigationLink'
  2582. next@NavigationLink:
  2583. $ref: '#/components/schemas/ActionEventLocationPaging/x-NavigationLinks/next@NavigationLink'
  2584. params:
  2585. type: object
  2586. description: Used params in URL
  2587. hasNext:
  2588. type: boolean
  2589. size:
  2590. type: integer
  2591. offset:
  2592. type: integer
  2593. data:
  2594. type: array
  2595. items:
  2596. type: object
  2597. properties:
  2598. timestamp:
  2599. type: string
  2600. format: date-time
  2601. location:
  2602. $ref: '#/components/schemas/Location'
  2603. example:
  2604. Event@NavigationLink: "<domain>/events/999"
  2605. next@NavigationLink: "<domain>/events/999/observations/locations?offset=500"
  2606. params:
  2607. offset: 0
  2608. limit: 500
  2609. navigationLinks: true
  2610. size: 500
  2611. hasNext: true
  2612. offset: 0
  2613. data:
  2614. - timestamp: "2011-12-03T10:15:30+01:00"
  2615. location:
  2616. longitude: 49.7384
  2617. latitude: 13.3736
  2618. altitude: 350.3
  2619. Location:
  2620. type: object
  2621. required:
  2622. - longitude
  2623. - latitude
  2624. - altitude
  2625. properties:
  2626. longitude:
  2627. type: number
  2628. format: float
  2629. latitude:
  2630. type: number
  2631. format: float
  2632. altitude:
  2633. type: number
  2634. format: float
  2635. example:
  2636. longitude: 49.7384
  2637. latitude: 13.3736
  2638. altitude: 350.3
  2639. UnitBasicInfo:
  2640. type: object
  2641. required:
  2642. - unitId
  2643. - name
  2644. x-NavigationLinks:
  2645. Unit@NavigationLink:
  2646. type: string
  2647. format: uri
  2648. x-graph-properties:
  2649. linkTo: unitIdGET
  2650. properties:
  2651. Unit@NavigationLink:
  2652. $ref: '#/components/schemas/UnitBasicInfo/x-NavigationLinks/Unit@NavigationLink'
  2653. unitId:
  2654. description: Identifier of the unit
  2655. type: integer
  2656. format: int64
  2657. name:
  2658. type: string
  2659. description:
  2660. type: string
  2661. example:
  2662. Unit@NavigationLink: "<domain>/units/25"
  2663. unitId: 25
  2664. name: "Mobile Unit"
  2665. description: "Mobile Unit 25"
  2666. UnitDetailInfo:
  2667. type: object
  2668. required:
  2669. - unitId
  2670. - name
  2671. - imei
  2672. x-NavigationLinks:
  2673. self@NavigationLink:
  2674. type: string
  2675. format: uri
  2676. x-graph-properties:
  2677. linkTo: unitIdGET
  2678. Sensors@NavigationLink:
  2679. type: string
  2680. format: uri
  2681. x-graph-properties:
  2682. linkTo: unitIdSensorsGET
  2683. Campaigns@NavigationLink:
  2684. type: string
  2685. format: uri
  2686. x-graph-properties:
  2687. linkTo: unitIdCampaignsGET
  2688. Entities@NavigationLink:
  2689. type: string
  2690. format: uri
  2691. x-graph-properties:
  2692. linkTo: unitIdEntitiesGET
  2693. properties:
  2694. self@NavigationLink:
  2695. $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/self@NavigationLink'
  2696. Sensors@NavigationLink:
  2697. $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/Sensors@NavigationLink'
  2698. Campaigns@NavigationLink:
  2699. $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/Campaigns@NavigationLink'
  2700. Entities@NavigationLink:
  2701. $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/Entities@NavigationLink'
  2702. unitId:
  2703. description: Identifier of the unit
  2704. type: integer
  2705. format: int64
  2706. name:
  2707. type: string
  2708. imei:
  2709. type: string
  2710. description:
  2711. type: string
  2712. example:
  2713. self@NavigationLink: "<domain>/units/25"
  2714. Sensors@NavigationLink: "<domain>/units/25/sensors"
  2715. Campaigns@NavigationLink: "<domain>/units/25/campaigns"
  2716. Entities@NavigationLink: "<domain>/units/25/entities"
  2717. unitId: 25
  2718. name: "Mobile Unit"
  2719. description: "Mobile Unit 25"
  2720. imei: "3434535323345"
  2721. UnitSensorBasicInfo:
  2722. type: object
  2723. required:
  2724. - sensorId
  2725. - name
  2726. x-NavigationLinks:
  2727. Sensor@NavigationLink:
  2728. type: string
  2729. format: uri
  2730. x-graph-properties:
  2731. linkTo: sensorIdGET
  2732. properties:
  2733. Sensor@NavigationLink:
  2734. $ref: '#/components/schemas/UnitSensorBasicInfo/x-NavigationLinks/Sensor@NavigationLink'
  2735. sensorId:
  2736. description: Identifier of the unit
  2737. type: integer
  2738. format: int64
  2739. name:
  2740. type: string
  2741. type:
  2742. type: string
  2743. example:
  2744. Sensor@NavigationLink: "<domain>/sensors/105"
  2745. sensorId: 105
  2746. name: "Sensor 105"
  2747. type: "temperature"
  2748. UnitCampaignBasicInfo:
  2749. type: object
  2750. required:
  2751. - id
  2752. - name
  2753. - fromTime
  2754. - toTime
  2755. x-NavigationLinks:
  2756. Campaign@NavigationLink:
  2757. type: string
  2758. format: uri
  2759. x-graph-properties:
  2760. linkTo: campaignIdGET
  2761. properties:
  2762. Campaign@NavigationLink:
  2763. $ref: '#/components/schemas/UnitCampaignBasicInfo/x-NavigationLinks/Campaign@NavigationLink'
  2764. id:
  2765. type: integer
  2766. format: int64
  2767. description: Identifier of the campaign
  2768. name:
  2769. type: string
  2770. description: Description of the campaign
  2771. fromTime:
  2772. type: string
  2773. format: date-time
  2774. description: Time from the unit was active in the campaign
  2775. toTime:
  2776. type: string
  2777. format: date-time
  2778. description: Time until the unit was active in the campaign
  2779. example:
  2780. Campaign@NavigationLink: "<domain>/campaigns/1"
  2781. id: 1
  2782. name: "Campaign 1"
  2783. fromTime: "2011-12-03T10:15:30+01:00"
  2784. toTime: "2011-12-03T10:15:30+01:00"
  2785. UnitEntityBasicInfo:
  2786. type: object
  2787. required:
  2788. - id
  2789. - name
  2790. x-NavigationLinks:
  2791. Entity@NavigationLink:
  2792. type: string
  2793. format: uri
  2794. x-graph-properties:
  2795. linkTo: entityIdGET
  2796. properties:
  2797. Entity@NavigationLink:
  2798. $ref: '#/components/schemas/UnitEntityBasicInfo/x-NavigationLinks/Entity@NavigationLink'
  2799. id:
  2800. type: integer
  2801. format: int64
  2802. name:
  2803. type: string
  2804. example:
  2805. Entity@NavigationLink: "<domain>/entities/42"
  2806. id: 42
  2807. name: "Steve Smith"
  2808. EntityActionUnitBasicInfo:
  2809. type: object
  2810. required:
  2811. - unitId
  2812. - name
  2813. x-NavigationLinks:
  2814. EntityActionUnit@NavigationLink:
  2815. type: string
  2816. format: uri
  2817. x-graph-properties:
  2818. linkTo: entityIdActionIdUnitIdGET
  2819. properties:
  2820. EntityActionUnit@NavigationLink:
  2821. $ref: '#/components/schemas/EntityActionUnitBasicInfo/x-NavigationLinks/EntityActionUnit@NavigationLink'
  2822. unitId:
  2823. description: Identifier of the unit
  2824. type: integer
  2825. format: int64
  2826. name:
  2827. type: string
  2828. description:
  2829. type: string
  2830. example:
  2831. EntityActionUnit@NavigationLink: "<domain>/entities/42/actions/258/units/25"
  2832. unitId: 25
  2833. name: "Unit name"
  2834. description: "Purpose of the Unit 25"
  2835. EntityActionUnitDetailInfo:
  2836. type: object
  2837. required:
  2838. - unitId
  2839. - name
  2840. - imei
  2841. x-NavigationLinks:
  2842. self@NavigationLink:
  2843. type: string
  2844. format: uri
  2845. x-graph-properties:
  2846. linkTo: entityIdActionIdUnitIdGET
  2847. EntityAction@NavigationLink:
  2848. type: string
  2849. format: uri
  2850. x-graph-properties:
  2851. linkTo: entityIdActionIdGET
  2852. Events@NavigationLink:
  2853. type: string
  2854. format: uri
  2855. x-graph-properties:
  2856. linkTo: entityIdUnitIdActionIdEventsGET
  2857. Unit@NavigationLink:
  2858. type: string
  2859. format: uri
  2860. x-graph-properties:
  2861. linkTo: unitIdGET
  2862. Alerts@NavigationLink:
  2863. type: string
  2864. format: uri
  2865. x-graph-properties:
  2866. linkTo: entityIdActionIdUnitIdAlertsGET
  2867. properties:
  2868. self@NavigationLink:
  2869. $ref: '#/components/schemas/EntityActionUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
  2870. EntityAction@NavigationLink:
  2871. $ref: '#/components/schemas/EntityActionUnitDetailInfo/x-NavigationLinks/EntityAction@NavigationLink'
  2872. Unit@NavigationLink:
  2873. $ref: '#/components/schemas/EntityActionUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
  2874. Events@NavigationLink:
  2875. $ref: '#/components/schemas/EntityActionUnitDetailInfo/x-NavigationLinks/Events@NavigationLink'
  2876. Alerts@NavigationLink:
  2877. $ref: '#/components/schemas/EntityActionUnitDetailInfo/x-NavigationLinks/Alerts@NavigationLink'
  2878. unitId:
  2879. description: Identifier of the unit
  2880. type: integer
  2881. format: int64
  2882. name:
  2883. type: string
  2884. imei:
  2885. type: string
  2886. description:
  2887. type: string
  2888. example:
  2889. self@NavigationLink: "<domain>/entities/42/actions/258/units/25"
  2890. EntityAction@NavigationLink: "<domain>/entities/42/actions/258"
  2891. Events@NavigationLink: "<domain>/entities/42/units/25/actions/258/events"
  2892. Unit@NavigationLink: "<domain>/units/25"
  2893. Alerts@NavigationLink: "<domain>/alerts/34"
  2894. unitId: 25
  2895. name: "Mobile Unit"
  2896. description: "Mobile Unit 25"
  2897. imei: "3434535323345"
  2898. SensorBasicInfo:
  2899. type: object
  2900. required:
  2901. - sensorId
  2902. - name
  2903. x-NavigationLinks:
  2904. Sensor@NavigationLink:
  2905. type: string
  2906. format: uri
  2907. x-graph-properties:
  2908. linkTo: sensorIdGET
  2909. properties:
  2910. Sensor@NavigationLink:
  2911. $ref: '#/components/schemas/SensorBasicInfo/x-NavigationLinks/Sensor@NavigationLink'
  2912. sensorId:
  2913. type: integer
  2914. format: int64
  2915. name:
  2916. type: string
  2917. description:
  2918. type: string
  2919. example:
  2920. Sensor@NavigationLink: "<domain>/sensors/105"
  2921. sensorId: 105
  2922. name: "Sensor 105"
  2923. description: "Description of the sensor 105"
  2924. SensorDetailInfo:
  2925. type: object
  2926. required:
  2927. - sensorId
  2928. - ioId
  2929. - name
  2930. - phenomenon
  2931. x-NavigationLinks:
  2932. self@NavigationLink:
  2933. type: string
  2934. format: uri
  2935. x-graph-properties:
  2936. linkTo: sensorIdGET
  2937. Units@NavigationLink:
  2938. type: string
  2939. format: uri
  2940. x-graph-properties:
  2941. linkTo: sensorIdUnitsGET
  2942. Phenomenon@NavigationLink:
  2943. type: string
  2944. format: uri
  2945. x-graph-properties:
  2946. linkTo: phenomenonIdGET
  2947. properties:
  2948. self@NavigationLink:
  2949. $ref: '#/components/schemas/SensorDetailInfo/x-NavigationLinks/self@NavigationLink'
  2950. Units@NavigationLink:
  2951. $ref: '#/components/schemas/SensorDetailInfo/x-NavigationLinks/Units@NavigationLink'
  2952. Phenomenon@NavigationLink:
  2953. $ref: '#/components/schemas/SensorDetailInfo/x-NavigationLinks/Phenomenon@NavigationLink'
  2954. sensorId:
  2955. type: integer
  2956. format: int64
  2957. ioId:
  2958. type: integer
  2959. format: int32
  2960. minimum: 1
  2961. name:
  2962. type: string
  2963. phenomenon:
  2964. type: string
  2965. type:
  2966. type: string
  2967. description:
  2968. type: string
  2969. example:
  2970. self@NavigationLink: "<domain>/sensors/105"
  2971. Phenomenon@NavigationLink: "<domain>/phenomenons/15"
  2972. Units@NavigationLink: "<domain>/sensors/105/units"
  2973. sensorId: 105
  2974. ioId: 98
  2975. name: "Sensor 105"
  2976. description: "Description of the sensor 105"
  2977. type: "type of sensor"
  2978. phenomenon: "Temperature"
  2979. SensorUnitBasicInfo:
  2980. type: object
  2981. required:
  2982. - unitId
  2983. - name
  2984. properties:
  2985. Unit@NavigationLink:
  2986. type: string
  2987. format: uri
  2988. unitId:
  2989. description: Identifier of the unit
  2990. type: integer
  2991. format: int64
  2992. name:
  2993. type: string
  2994. description:
  2995. type: string
  2996. example:
  2997. Unit@NavigationLink: "<domain>/units/25"
  2998. unitId: 25
  2999. name: "Mobile Unit"
  3000. description: "Mobile Unit 25"
  3001. PhenomenonBasicInfo:
  3002. type: object
  3003. required:
  3004. - id
  3005. - name
  3006. x-NavigationLinks:
  3007. Phenomenon@NavigationLink:
  3008. type: string
  3009. format: uri
  3010. x-graph-properties:
  3011. linkTo: phenomenonIdGET
  3012. properties:
  3013. Phenomenon@NavigationLink:
  3014. $ref: '#/components/schemas/PhenomenonBasicInfo/x-NavigationLinks/Phenomenon@NavigationLink'
  3015. id:
  3016. type: integer
  3017. format: int64
  3018. name:
  3019. type: string
  3020. example:
  3021. Phenomenon@NavigationLink: "<domain>/phenomenons/15"
  3022. id: 15
  3023. name: "Temperature"
  3024. PhenomenonDetailInfo:
  3025. type: object
  3026. required:
  3027. - id
  3028. - name
  3029. - uom
  3030. x-NavigationLinks:
  3031. self@NavigationLink:
  3032. type: string
  3033. format: uri
  3034. x-graph-properties:
  3035. linkTo: phenomenonIdGET
  3036. Sensors@NavigationLink:
  3037. type: string
  3038. format: uri
  3039. x-graph-properties:
  3040. linkTo: phenomenonIdSensorsGET
  3041. properties:
  3042. self@NavigationLink:
  3043. $ref: '#/components/schemas/PhenomenonDetailInfo/x-NavigationLinks/self@NavigationLink'
  3044. Sensors@NavigationLink:
  3045. $ref: '#/components/schemas/PhenomenonDetailInfo/x-NavigationLinks/Sensors@NavigationLink'
  3046. id:
  3047. type: integer
  3048. format: int64
  3049. name:
  3050. type: string
  3051. uom:
  3052. type: string
  3053. maxLength: 30
  3054. uomLink:
  3055. type: string
  3056. format: uri
  3057. example:
  3058. self@NavigationLink: "<domain>/phenomenons/15"
  3059. Sensors@NavigationLink: "<domain>/phenomenons/15/sensors"
  3060. id: 15
  3061. name: "Temperature"
  3062. uom: "uom"
  3063. uomLink: "uom link"
  3064. PhenomenonSensorBasicInfo:
  3065. type: object
  3066. required:
  3067. - sensorId
  3068. - name
  3069. x-NavigationLinks:
  3070. Sensor@NavigationLink:
  3071. type: string
  3072. format: uri
  3073. x-graph-properties:
  3074. linkTo: sensorIdGET
  3075. properties:
  3076. Sensor@NavigationLink:
  3077. $ref: '#/components/schemas/PhenomenonSensorBasicInfo/x-NavigationLinks/Sensor@NavigationLink'
  3078. sensorId:
  3079. type: integer
  3080. format: int64
  3081. name:
  3082. type: string
  3083. description:
  3084. type: string
  3085. example:
  3086. Sensor@NavigationLink: "<domain>/sensors/105"
  3087. sensorId: 105
  3088. name: "Sensor 105"
  3089. description: "Description of Sensor 105"
  3090. EntityBasicInfo:
  3091. type: object
  3092. required:
  3093. - id
  3094. - name
  3095. x-NavigationLinks:
  3096. Entity@NavigationLink:
  3097. type: string
  3098. format: uri
  3099. x-graph-properties:
  3100. linkTo: entityIdGET
  3101. properties:
  3102. Entity@NavigationLink:
  3103. $ref: '#/components/schemas/EntityBasicInfo/x-NavigationLinks/Entity@NavigationLink'
  3104. id:
  3105. type: integer
  3106. format: int64
  3107. name:
  3108. type: string
  3109. example:
  3110. Entity@NavigationLink: "<domain>/entities/42"
  3111. id: 42
  3112. name: "Steve Smith"
  3113. EntityDetailInfo:
  3114. type: object
  3115. required:
  3116. - id
  3117. - name
  3118. x-NavigationLinks:
  3119. self@NavigationLink:
  3120. type: string
  3121. format: uri
  3122. x-graph-properties:
  3123. linkTo: entityIdGET
  3124. Units@NavigationLink:
  3125. type: string
  3126. format: uri
  3127. x-graph-properties:
  3128. linkTo: entityIdUnitsGET
  3129. Actions@NavigationLink:
  3130. type: string
  3131. format: uri
  3132. x-graph-properties:
  3133. linkTo: entityIdActionsGET
  3134. properties:
  3135. self@NavigationLink:
  3136. $ref: '#/components/schemas/EntityDetailInfo/x-NavigationLinks/self@NavigationLink'
  3137. Units@NavigationLink:
  3138. $ref: '#/components/schemas/EntityDetailInfo/x-NavigationLinks/Units@NavigationLink'
  3139. Actions@NavigationLink:
  3140. $ref: '#/components/schemas/EntityDetailInfo/x-NavigationLinks/Actions@NavigationLink'
  3141. id:
  3142. type: integer
  3143. format: int64
  3144. name:
  3145. type: string
  3146. example:
  3147. self@NavigationLink: "<domain>/entities/42"
  3148. Units@NavigationLink: "<domain>/entities/42/units"
  3149. Actions@NavigationLink: "<domain>/entities/42/actions"
  3150. id: 42
  3151. name: "Steve Smith"
  3152. EntityUnitBasicInfo:
  3153. type: object
  3154. required:
  3155. - unitId
  3156. - name
  3157. x-NavigationLinks:
  3158. EntityUnit@NavigationLink:
  3159. type: string
  3160. format: uri
  3161. x-graph-properties:
  3162. linkTo: entityIdUnitsGET
  3163. properties:
  3164. EntityUnit@NavigationLink:
  3165. $ref: '#/components/schemas/EntityUnitBasicInfo/x-NavigationLinks/EntityUnit@NavigationLink'
  3166. unitId:
  3167. description: Identifier of the unit
  3168. type: integer
  3169. format: int64
  3170. name:
  3171. type: string
  3172. description:
  3173. type: string
  3174. example:
  3175. EntityUnit@NavigationLink: "<domain>/entities/42/units/25"
  3176. unitId: 25
  3177. name: "Unit name"
  3178. description: "Purpose of the Unit 25"
  3179. EntityUnitDetailInfo:
  3180. type: object
  3181. required:
  3182. - unitId
  3183. - imei
  3184. - name
  3185. x-NavigationLinks:
  3186. self@NavigationLink:
  3187. type: string
  3188. format: uri
  3189. x-graph-properties:
  3190. linkTo: entityIdUnitIdGET
  3191. Unit@NavigationLink:
  3192. type: string
  3193. format: uri
  3194. x-graph-properties:
  3195. linkTo: unitIdGET
  3196. Actions@NavigationLink:
  3197. type: string
  3198. format: uri
  3199. x-graph-properties:
  3200. linkTo: entityIdUnitIdActionsGET
  3201. properties:
  3202. self@NavigationLink:
  3203. $ref: '#/components/schemas/EntityUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
  3204. Unit@NavigationLink:
  3205. $ref: '#/components/schemas/EntityUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
  3206. Actions@NavigationLink:
  3207. $ref: '#/components/schemas/EntityUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
  3208. unitId:
  3209. description: Identifier of the unit
  3210. type: integer
  3211. format: int64
  3212. name:
  3213. type: string
  3214. imei:
  3215. type: string
  3216. description:
  3217. type: string
  3218. example:
  3219. self@NavigationLink: "<domain>/entities/42/units/25"
  3220. Unit@NavigationLink: "<domain>/units/25"
  3221. Actions@NavigationLink: "<domain>/entities/42/units/25/actions"
  3222. unitId: 25
  3223. name: "Mobile Unit"
  3224. description: "Mobile Unit 25"
  3225. imei: "3434535323345"
  3226. EntityActionBasicInfo:
  3227. type: object
  3228. required:
  3229. - id
  3230. - name
  3231. x-NavigationLinks:
  3232. EntityAction@NavigationLink:
  3233. type: string
  3234. format: uri
  3235. x-graph-properties:
  3236. linkTo: entityIdActionIdGET
  3237. properties:
  3238. EntityAction@NavigationLink:
  3239. $ref: '#/components/schemas/EntityActionBasicInfo/x-NavigationLinks/EntityAction@NavigationLink'
  3240. id:
  3241. type: integer
  3242. format: int64
  3243. name:
  3244. type: string
  3245. example:
  3246. EntityAction@NavigationLink: "<domain>/entities/42/actions/258"
  3247. id: 258
  3248. name: "Delivering"
  3249. EntityUnitActionBasicInfo:
  3250. type: object
  3251. required:
  3252. - id
  3253. - name
  3254. x-NavigationLinks:
  3255. EntityUntAction@NavigationLink:
  3256. type: string
  3257. format: uri
  3258. x-graph-properties:
  3259. linkTo: entityIdUnitIdActionIdGET
  3260. properties:
  3261. EntityUntAction@NavigationLink:
  3262. $ref: '#/components/schemas/EntityUnitActionBasicInfo/x-NavigationLinks/EntityUntAction@NavigationLink'
  3263. id:
  3264. type: integer
  3265. format: int64
  3266. name:
  3267. type: string
  3268. example:
  3269. EntityUntAction@NavigationLink: "<domain>/entities/42/units/{25}/actions/258"
  3270. id: 258
  3271. name: "Delivering"
  3272. EntityActionDetailInfo:
  3273. type: object
  3274. required:
  3275. - id
  3276. - name
  3277. x-NavigationLinks:
  3278. self@NavigationLink:
  3279. type: string
  3280. format: uri
  3281. x-graph-properties:
  3282. linkTo: entityIdActionIdGET
  3283. Entity@NavigationLink:
  3284. type: string
  3285. format: uri
  3286. x-graph-properties:
  3287. linkTo: entityIdGET
  3288. Units@NavigationLink:
  3289. type: string
  3290. format: uri
  3291. x-graph-properties:
  3292. linkTo: entityIdActionIdUnitsGET
  3293. properties:
  3294. self@NavigationLink:
  3295. $ref: '#/components/schemas/EntityActionDetailInfo/x-NavigationLinks/self@NavigationLink'
  3296. Entity@NavigationLink:
  3297. $ref: '#/components/schemas/EntityActionDetailInfo/x-NavigationLinks/Entity@NavigationLink'
  3298. Units@NavigationLink:
  3299. $ref: '#/components/schemas/EntityActionDetailInfo/x-NavigationLinks/Units@NavigationLink'
  3300. id:
  3301. type: integer
  3302. format: int64
  3303. name:
  3304. type: string
  3305. example:
  3306. self@NavigationLink: "<domain>/entities/42/actions/258"
  3307. Entity@NavigationLink: "<domain>/entities/42"
  3308. Units@NavigationLink: "<domain>/entities/42/actions/258/units"
  3309. id: 258
  3310. name: "Delivering"
  3311. EntityUnitActionDetailInfo:
  3312. type: object
  3313. required:
  3314. - id
  3315. - name
  3316. x-NavigationLinks:
  3317. self@NavigationLink:
  3318. type: string
  3319. format: uri
  3320. x-graph-properties:
  3321. linkTo: entityIdUnitIdActionIdGET
  3322. Entity@NavigationLink:
  3323. type: string
  3324. format: uri
  3325. x-graph-properties:
  3326. linkTo: entityIdGET
  3327. EntityUnit@NavigationLink:
  3328. type: string
  3329. format: uri
  3330. x-graph-properties:
  3331. linkTo: entityIdUnitIdGET
  3332. Events@NavigationLink:
  3333. type: string
  3334. format: uri
  3335. x-graph-properties:
  3336. linkTo: entityIdUnitIdActionIdEventsGET
  3337. properties:
  3338. self@NavigationLink:
  3339. $ref: '#/components/schemas/EntityUnitActionDetailInfo/x-NavigationLinks/self@NavigationLink'
  3340. Entity@NavigationLink:
  3341. $ref: '#/components/schemas/EntityUnitActionDetailInfo/x-NavigationLinks/Entity@NavigationLink'
  3342. EntityUnit@NavigationLink:
  3343. $ref: '#/components/schemas/EntityUnitActionDetailInfo/x-NavigationLinks/EntityUnit@NavigationLink'
  3344. Events@NavigationLink:
  3345. $ref: '#/components/schemas/EntityUnitActionDetailInfo/x-NavigationLinks/Events@NavigationLink'
  3346. id:
  3347. type: integer
  3348. format: int64
  3349. name:
  3350. type: string
  3351. example:
  3352. self@NavigationLink: "<domain>/entities/42/units/25/actions/258"
  3353. Entity@NavigationLink: "<domain>/entities/42"
  3354. EntityUnit@NavigationLink: "<domain>/entities/42/units/25"
  3355. Events@NavigationLink: "<domain>/entities/42/units/25/actions/258/events"
  3356. id: 258
  3357. name: "Delivering"
  3358. EventInsertInfo:
  3359. type: object
  3360. required:
  3361. - fromTime
  3362. properties:
  3363. fromTime:
  3364. description: Time when the event starts
  3365. type: string
  3366. format: date-time
  3367. toTime:
  3368. description: Time when the end ends
  3369. type: string
  3370. format: date-time
  3371. example:
  3372. fromTime: "2011-12-03T10:15:30+01:00"
  3373. toTime: "2011-12-03T10:15:30+01:00"
  3374. EventStatus:
  3375. type: string
  3376. enum:
  3377. - FINISHED
  3378. - ONGOING
  3379. EventBasicInfo:
  3380. type: object
  3381. required:
  3382. - id
  3383. - status
  3384. - fromTime
  3385. - toTime
  3386. x-NavigationLinks:
  3387. Event@NavigationLink:
  3388. type: string
  3389. format: uri
  3390. x-graph-properties:
  3391. linkTo: eventIdGET
  3392. properties:
  3393. Event@NavigationLink:
  3394. $ref: '#/components/schemas/EventBasicInfo/x-NavigationLinks/Event@NavigationLink'
  3395. id:
  3396. type: integer
  3397. format: int64
  3398. status:
  3399. $ref: '#/components/schemas/EventStatus'
  3400. fromTime:
  3401. description: Time when the event starts
  3402. type: string
  3403. format: date-time
  3404. toTime:
  3405. description: Time when the end ends
  3406. type: string
  3407. format: date-time
  3408. example:
  3409. Event@NavigationLink: "<domain>/events/999"
  3410. id: 999
  3411. status: "FINISHED"
  3412. fromTime: "2011-12-03T10:15:30+01:00"
  3413. toTime: "2011-12-03T10:15:30+01:00"
  3414. EventDetailInfo:
  3415. type: object
  3416. required:
  3417. - id
  3418. - entityId
  3419. - actionId
  3420. - unitId
  3421. - status
  3422. - fromTime
  3423. - toTime
  3424. x-NavigationLinks:
  3425. self@NavigationLink:
  3426. type: string
  3427. format: uri
  3428. x-graph-properties:
  3429. linkTo: eventIdGET
  3430. Entity@NavigationLink:
  3431. type: string
  3432. format: uri
  3433. x-graph-properties:
  3434. linkTo: entityIdGET
  3435. EntityUnit@NavigationLink:
  3436. type: string
  3437. format: uri
  3438. x-graph-properties:
  3439. linkTo: entityIdUnitIdGET
  3440. Action@NavigationLink:
  3441. type: string
  3442. format: uri
  3443. x-graph-properties:
  3444. linkTo: entityIdActionIdGET
  3445. Observations@NavigationLink:
  3446. type: string
  3447. format: uri
  3448. x-graph-properties:
  3449. linkTo: eventIdObservationsGET
  3450. Locations@NavigationLink:
  3451. type: string
  3452. format: uri
  3453. x-graph-properties:
  3454. linkTo: eventIdLocationsGET
  3455. properties:
  3456. self@NavigationLink:
  3457. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/self@NavigationLink'
  3458. Entity@NavigationLink:
  3459. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Entity@NavigationLink'
  3460. EntityUnit@NavigationLink:
  3461. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/EntityUnit@NavigationLink'
  3462. Action@NavigationLink:
  3463. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Action@NavigationLink'
  3464. Observations@NavigationLink:
  3465. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Observations@NavigationLink'
  3466. Locations@NavigationLink:
  3467. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Locations@NavigationLink'
  3468. id:
  3469. type: integer
  3470. format: int64
  3471. entityId:
  3472. type: integer
  3473. format: int64
  3474. actionId:
  3475. type: integer
  3476. format: int64
  3477. unitId:
  3478. type: integer
  3479. format: int64
  3480. status:
  3481. $ref: "#/components/schemas/EventStatus"
  3482. fromTime:
  3483. description: Time when the event starts
  3484. type: string
  3485. format: date-time
  3486. toTime:
  3487. description: Time when the end ends
  3488. type: string
  3489. format: date-time
  3490. example:
  3491. self@NavigationLink: "<domain>/entities/42/units/105/actions/258/events/999"
  3492. Entity@NavigationLink: "<domain>/entities/42"
  3493. EntityUnit@NavigationLink: "<domain>/entities/42/units/105"
  3494. Action@NavigationLink: "<domain>/actions/258"
  3495. Observations@NavigationLink: "<domain>/events/999/observations"
  3496. Locations@NavigationLink: "<domain>/events/999/observations/locations"
  3497. id: 999
  3498. entityId: 42
  3499. actionId: 258
  3500. unitId: 105
  3501. status: "FINISHED"
  3502. fromTime: "2011-12-03T10:15:30+01:00"
  3503. toTime: "2011-12-03T10:15:30+01:00"
  3504. CampaignAlertBasicInfo:
  3505. type: object
  3506. required:
  3507. - id
  3508. - unitId
  3509. - message
  3510. - status
  3511. - timestamp
  3512. x-NavigationLinks:
  3513. Alert@NavigationLink:
  3514. type: string
  3515. format: uri
  3516. x-graph-properties:
  3517. linkTo: alertIdGET
  3518. properties:
  3519. Alert@NavigationLink:
  3520. $ref: '#/components/schemas/AlertBasicInfo/x-NavigationLinks/Alert@NavigationLink'
  3521. id:
  3522. type: integer
  3523. format: int64
  3524. unitId:
  3525. type: integer
  3526. format: int64
  3527. message:
  3528. type: string
  3529. status:
  3530. $ref: '#/components/schemas/AlertStatus'
  3531. timestamp:
  3532. type: string
  3533. format: date-time
  3534. example:
  3535. Alert@NavigationLink: "<domain>/alerts/34"
  3536. id: 34
  3537. unitId: 25
  3538. message: "Example of an alert message"
  3539. status: "CREATED"
  3540. timestamp: "2011-12-03T10:15:30+01:00"
  3541. AlertBasicInfo:
  3542. type: object
  3543. required:
  3544. - id
  3545. - message
  3546. - status
  3547. - timestamp
  3548. x-NavigationLinks:
  3549. Alert@NavigationLink:
  3550. type: string
  3551. format: uri
  3552. x-graph-properties:
  3553. linkTo: alertIdGET
  3554. properties:
  3555. Alert@NavigationLink:
  3556. $ref: '#/components/schemas/AlertBasicInfo/x-NavigationLinks/Alert@NavigationLink'
  3557. id:
  3558. type: integer
  3559. format: int64
  3560. message:
  3561. type: string
  3562. status:
  3563. $ref: '#/components/schemas/AlertStatus'
  3564. timestamp:
  3565. type: string
  3566. format: date-time
  3567. example:
  3568. Alert@NavigationLink: "<domain>/alerts/34"
  3569. id: 34
  3570. message: "Example of an alert message"
  3571. status: "CREATED"
  3572. timestamp: "2011-12-03T10:15:30+01:00"
  3573. EventAlertDetailInfo:
  3574. type: object
  3575. required:
  3576. - id
  3577. - timestamp
  3578. - message
  3579. - status
  3580. x-NavigationLinks:
  3581. self@NavigationLink:
  3582. type: string
  3583. format: uri
  3584. x-graph-properties:
  3585. linkTo: alertIdGET
  3586. Event@NavigationLink:
  3587. type: string
  3588. format: uri
  3589. x-graph-properties:
  3590. linkTo: eventIdGET
  3591. properties:
  3592. self@NavigationLink:
  3593. $ref: '#/components/schemas/EventAlertDetailInfo/x-NavigationLinks/self@NavigationLink'
  3594. Event@NavigationLink:
  3595. $ref: '#/components/schemas/EventAlertDetailInfo/x-NavigationLinks/Event@NavigationLink'
  3596. id:
  3597. type: integer
  3598. format: int32
  3599. timestamp:
  3600. type: string
  3601. format: date-time
  3602. message:
  3603. type: string
  3604. status:
  3605. $ref: '#/components/schemas/AlertStatus'
  3606. example:
  3607. self@NavigationLink: "<domain>/alerts/34"
  3608. Event@NavigationLink: "<domain>/events/345"
  3609. id: 34
  3610. timestamp: "2011-12-03T10:15:30+01:00"
  3611. message: "Example of an alert message"
  3612. status: "CREATED"
  3613. AlertDetailInfo:
  3614. type: object
  3615. required:
  3616. - id
  3617. - unitId
  3618. - timestamp
  3619. - message
  3620. - status
  3621. x-NavigationLinks:
  3622. self@NavigationLink:
  3623. type: string
  3624. format: uri
  3625. x-graph-properties:
  3626. linkTo: alertIdGET
  3627. CampaignUnit@NavigationLink:
  3628. type: string
  3629. format: uri
  3630. x-graph-properties:
  3631. linkTo: campaignIdUnitIdGET
  3632. Events@NavigationLink:
  3633. type: string
  3634. format: uri
  3635. x-graph-properties:
  3636. linkTo: alertIdEventsGET
  3637. properties:
  3638. self@NavigationLink:
  3639. $ref: '#/components/schemas/AlertDetailInfo/x-NavigationLinks/self@NavigationLink'
  3640. CampaignUnit@NavigationLink:
  3641. $ref: '#/components/schemas/AlertDetailInfo/x-NavigationLinks/CampaignUnit@NavigationLink'
  3642. Events@NavigationLink:
  3643. $ref: '#/components/schemas/AlertDetailInfo/x-NavigationLinks/Events@NavigationLink'
  3644. id:
  3645. type: integer
  3646. format: int32
  3647. unitId:
  3648. type: integer
  3649. format: int64
  3650. timestamp:
  3651. type: string
  3652. format: date-time
  3653. message:
  3654. type: string
  3655. status:
  3656. $ref: '#/components/schemas/AlertStatus'
  3657. observation:
  3658. $ref: '#/components/schemas/UnitDataObservation'
  3659. example:
  3660. self@NavigationLink: "<domain>/alerts/34"
  3661. CampaignUnit@NavigationLink: "<domain>/campaign/1/units/25"
  3662. Events@NavigationLink: "<domain>/alerts/34/events"
  3663. id: 34
  3664. unitId: 25
  3665. timestamp: "2011-12-03T10:15:30+01:00"
  3666. message: "Example of an alert message"
  3667. status: "CREATED"
  3668. observation: {}
  3669. AlertInsert:
  3670. type: object
  3671. required:
  3672. - unitId
  3673. - timestamp
  3674. - message
  3675. properties:
  3676. unitId:
  3677. type: integer
  3678. format: int64
  3679. message:
  3680. type: string
  3681. timestamp:
  3682. type: string
  3683. format: date-time
  3684. example:
  3685. unitId: 25
  3686. message: "Alert message"
  3687. timestamp: "2011-12-03T10:15:30+01:00"
  3688. AlertChange:
  3689. type: object
  3690. required:
  3691. - status
  3692. properties:
  3693. status:
  3694. $ref: '#/components/schemas/AlertStatus'
  3695. AlertStatus:
  3696. type: string
  3697. enum:
  3698. - CREATED
  3699. - INFORMED
  3700. - IN_PROCESS
  3701. - SOLVED
  3702. example: "CREATED"
  3703. PostResponse:
  3704. type: object
  3705. required:
  3706. - saved
  3707. - errors
  3708. properties:
  3709. saved:
  3710. type: integer
  3711. minimum: 0
  3712. errors:
  3713. type: integer
  3714. minimum: 0
  3715. ResponseArrayChange:
  3716. type: object
  3717. required:
  3718. - ids
  3719. - message
  3720. properties:
  3721. ids:
  3722. type: array
  3723. items:
  3724. type: integer
  3725. format: int64
  3726. message:
  3727. type: string
  3728. example:
  3729. ids: [34, 35, 36]
  3730. message: "Success"
  3731. ResponseSingleChange:
  3732. type: object
  3733. required:
  3734. - id
  3735. properties:
  3736. id:
  3737. type: integer
  3738. format: int64
  3739. example:
  3740. id: 34
  3741. Info:
  3742. type: object
  3743. required:
  3744. - name
  3745. - version
  3746. - build
  3747. - uptime
  3748. - uptimeMillis
  3749. - authType
  3750. properties:
  3751. name:
  3752. type: string
  3753. version:
  3754. type: string
  3755. build:
  3756. type: string
  3757. uptimeMillis:
  3758. type: integer
  3759. format: int64
  3760. uptime:
  3761. type: string
  3762. authType:
  3763. type: string
  3764. enum: [BEARER, NONE]
  3765. example:
  3766. name: "senslog-telemetry"
  3767. version: "1.1.0"
  3768. build: "123456789"
  3769. uptimeMillis: 1684862333
  3770. uptime: "1:20:00"
  3771. authType: "NONE"
  3772. Error:
  3773. type: object
  3774. required:
  3775. - code
  3776. - message
  3777. properties:
  3778. code:
  3779. type: integer
  3780. format: int32
  3781. message:
  3782. type: string
  3783. example:
  3784. code: 404
  3785. message: "Not Found"