openAPISpec.yaml 88 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845
  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:8080
  7. - url: https://theros.wirelessinfo.cz
  8. paths:
  9. /info:
  10. get:
  11. operationId: infoGET
  12. summary: Information about running instance
  13. responses:
  14. 200:
  15. description: Instance information
  16. content:
  17. application/json:
  18. schema:
  19. $ref: "#/components/schemas/Info"
  20. default:
  21. description: unexpected error
  22. content:
  23. application/json:
  24. schema:
  25. $ref: "#/components/schemas/Error"
  26. /campaigns:
  27. get:
  28. operationId: campaignsGET
  29. summary: Publish info about all campaigns
  30. parameters:
  31. - $ref: '#/components/parameters/zoneParam'
  32. - $ref: '#/components/parameters/navigationLinksParam'
  33. responses:
  34. 200:
  35. description: JSON array of basic info of each campaign
  36. content:
  37. application/json:
  38. schema:
  39. type: array
  40. items:
  41. $ref: '#/components/schemas/CampaignBasicInfo'
  42. default:
  43. description: unexpected error
  44. content:
  45. application/json:
  46. schema:
  47. $ref: '#/components/schemas/Error'
  48. /campaigns/{campaignId}:
  49. get:
  50. operationId: campaignIdGET
  51. summary: Publish info about a campaign
  52. parameters:
  53. - $ref: '#/components/parameters/campaignIdParam'
  54. - $ref: '#/components/parameters/zoneParam'
  55. - $ref: '#/components/parameters/navigationLinksParam'
  56. responses:
  57. 200:
  58. description: JSON object containing info about a campaign
  59. content:
  60. application/json:
  61. schema:
  62. $ref: '#/components/schemas/CampaignDetailInfo'
  63. default:
  64. description: unexpected error
  65. content:
  66. application/json:
  67. schema:
  68. $ref: '#/components/schemas/Error'
  69. /campaigns/{campaignId}/units:
  70. get:
  71. operationId: campaignIdUnitsGET
  72. summary: Publish info about the campaign's units
  73. parameters:
  74. - $ref: '#/components/parameters/campaignIdParam'
  75. - $ref: '#/components/parameters/zoneParam'
  76. - $ref: '#/components/parameters/navigationLinksParam'
  77. responses:
  78. 200:
  79. description: JSON Array containing info about campaign's units
  80. content:
  81. application/json:
  82. schema:
  83. type: array
  84. items:
  85. $ref: '#/components/schemas/CampaignUnitBasicInfo'
  86. default:
  87. description: unexpected error
  88. content:
  89. application/json:
  90. schema:
  91. $ref: '#/components/schemas/Error'
  92. /campaigns/{campaignId}/units/observations:
  93. get:
  94. operationId: campaignIdUnitsObservationsGET
  95. summary: Publish info about all data of units merged together within the campaign
  96. parameters:
  97. - $ref: '#/components/parameters/campaignIdParam'
  98. - $ref: '#/components/parameters/fromParam'
  99. - $ref: '#/components/parameters/toParam'
  100. - $ref: '#/components/parameters/zoneParam'
  101. - $ref: '#/components/parameters/offsetParam'
  102. - $ref: '#/components/parameters/limitParam'
  103. - $ref: '#/components/parameters/formatParam'
  104. - $ref: '#/components/parameters/filterParam'
  105. - $ref: '#/components/parameters/navigationLinksParam'
  106. responses:
  107. 200:
  108. description: JSON containing stream of telemetry data
  109. content:
  110. application/json:
  111. schema:
  112. $ref: '#/components/schemas/CampaignObservation'
  113. application/geo+json:
  114. schema:
  115. $ref: '#/components/schemas/GeoCampaignObservation'
  116. default:
  117. description: unexpected error
  118. content:
  119. application/json:
  120. schema:
  121. $ref: '#/components/schemas/Error'
  122. post:
  123. operationId: campaignIdUnitsObservationsPOST
  124. parameters:
  125. - $ref: '#/components/parameters/campaignIdParam'
  126. requestBody:
  127. required: true
  128. content:
  129. application/json:
  130. schema:
  131. type: array
  132. items:
  133. $ref: '#/components/schemas/CampaignDataObservation'
  134. application/geo+json:
  135. schema:
  136. $ref: '#/components/schemas/GeoCampaignObservation'
  137. responses:
  138. 200:
  139. description: JSON
  140. content:
  141. application/json:
  142. schema:
  143. type: object
  144. properties:
  145. saved:
  146. type: integer
  147. minimum: 0
  148. errors:
  149. type: integer
  150. minimum: 0
  151. default:
  152. description: unexpected error
  153. content:
  154. application/json:
  155. schema:
  156. $ref: '#/components/schemas/Error'
  157. /campaigns/{campaignId}/units/observations/locations:
  158. get:
  159. operationId: campaignIdUnitsObservationsLocationsGET
  160. summary: Publish info about all data of units merged together within the campaign
  161. parameters:
  162. - $ref: '#/components/parameters/campaignIdParam'
  163. - $ref: '#/components/parameters/limitPerUnitParam'
  164. - $ref: '#/components/parameters/fromParam'
  165. - $ref: '#/components/parameters/toParam'
  166. - $ref: '#/components/parameters/zoneParam'
  167. - $ref: '#/components/parameters/sortParam'
  168. - $ref: '#/components/parameters/formatParam'
  169. - $ref: '#/components/parameters/filterParam'
  170. - $ref: '#/components/parameters/navigationLinksParam'
  171. responses:
  172. 200:
  173. description: JSON containing stream of telemetry data
  174. content:
  175. application/json:
  176. schema:
  177. $ref: '#/components/schemas/CampaignUnitsLocations'
  178. default:
  179. description: unexpected error
  180. content:
  181. application/json:
  182. schema:
  183. $ref: '#/components/schemas/Error'
  184. /campaigns/{campaignId}/units/{unitId}:
  185. get:
  186. operationId: campaignIdUnitIdGET
  187. summary: Publish info about the unit within its campaign's scope
  188. parameters:
  189. - $ref: '#/components/parameters/campaignIdParam'
  190. - $ref: '#/components/parameters/unitIdParam'
  191. - $ref: '#/components/parameters/zoneParam'
  192. - $ref: '#/components/parameters/navigationLinksParam'
  193. responses:
  194. 200:
  195. description: JSON Object containing info about the unit within its campaign' scope
  196. content:
  197. application/json:
  198. schema:
  199. $ref: '#/components/schemas/CampaignUnitDetailInfo'
  200. default:
  201. description: unexpected error
  202. content:
  203. application/json:
  204. schema:
  205. $ref: '#/components/schemas/Error'
  206. /campaigns/{campaignId}/units/{unitId}/observations:
  207. get:
  208. operationId: campaignIdUnitIdObservationsGET
  209. summary: Publish info about all data of the unit within the campaign
  210. parameters:
  211. - $ref: '#/components/parameters/campaignIdParam'
  212. - $ref: '#/components/parameters/unitIdParam'
  213. - $ref: '#/components/parameters/fromParam'
  214. - $ref: '#/components/parameters/toParam'
  215. - $ref: '#/components/parameters/zoneParam'
  216. - $ref: '#/components/parameters/offsetParam'
  217. - $ref: '#/components/parameters/limitParam'
  218. - $ref: '#/components/parameters/formatParam'
  219. - $ref: '#/components/parameters/filterParam'
  220. - $ref: '#/components/parameters/navigationLinksParam'
  221. responses:
  222. 200:
  223. description: JSON containing stream of telemetry data
  224. content:
  225. application/json:
  226. schema:
  227. $ref: '#/components/schemas/CampaignUnitObservation'
  228. default:
  229. description: unexpected error
  230. content:
  231. application/json:
  232. schema:
  233. $ref: '#/components/schemas/Error'
  234. /campaigns/{campaignId}/units/{unitId}/observations/locations:
  235. get:
  236. operationId: campaignIdUnitIdLocationsGET
  237. summary: Publish locations of the unit within the campaign
  238. parameters:
  239. - $ref: '#/components/parameters/campaignIdParam'
  240. - $ref: '#/components/parameters/unitIdParam'
  241. - $ref: '#/components/parameters/fromParam'
  242. - $ref: '#/components/parameters/toParam'
  243. - $ref: '#/components/parameters/zoneParam'
  244. - $ref: '#/components/parameters/offsetParam'
  245. - $ref: '#/components/parameters/limitParam'
  246. - $ref: '#/components/parameters/filterParam'
  247. - $ref: '#/components/parameters/formatParam'
  248. - $ref: '#/components/parameters/navigationLinksParam'
  249. responses:
  250. 200:
  251. description: JSON containing stream of locations
  252. content:
  253. application/json:
  254. schema:
  255. $ref: '#/components/schemas/CampaignUnitLocation'
  256. default:
  257. description: unexpected error
  258. content:
  259. application/json:
  260. schema:
  261. $ref: '#/components/schemas/Error'
  262. /campaigns/{campaignId}/units/{unitId}/sensors:
  263. get:
  264. operationId: campaignIdUnitIdSensorsGET
  265. summary: Publish info about all sensors of the unit within the campaign
  266. parameters:
  267. - $ref: '#/components/parameters/campaignIdParam'
  268. - $ref: '#/components/parameters/unitIdParam'
  269. - $ref: '#/components/parameters/navigationLinksParam'
  270. responses:
  271. 200:
  272. description: JSON containing information of sensors assigned to the unit within its campaign
  273. content:
  274. application/json:
  275. schema:
  276. type: array
  277. items:
  278. $ref: '#/components/schemas/CampaignUnitBasicSensor'
  279. default:
  280. description: unexpected error
  281. content:
  282. application/json:
  283. schema:
  284. $ref: '#/components/schemas/Error'
  285. /campaigns/{campaignId}/units/{unitId}/sensors/{sensorId}:
  286. get:
  287. operationId: campaignIdUnitIdSensorIdGET
  288. summary: Publish info about all sensors asociated with the unit and the campaign
  289. parameters:
  290. - $ref: '#/components/parameters/campaignIdParam'
  291. - $ref: '#/components/parameters/unitIdParam'
  292. - $ref: '#/components/parameters/sensorIdParam'
  293. - $ref: '#/components/parameters/navigationLinksParam'
  294. responses:
  295. 200:
  296. description: JSON Object containing info about the sensor
  297. content:
  298. application/json:
  299. schema:
  300. $ref: '#/components/schemas/CampaignUnitDetailedSensor'
  301. default:
  302. description: unexpected error
  303. content:
  304. application/json:
  305. schema:
  306. $ref: '#/components/schemas/Error'
  307. /campaigns/{campaignId}/units/{unitId}/sensors/{sensorId}/observations:
  308. get:
  309. operationId: campaignIdUnitIdSensorIdObservationsGET
  310. summary: Publish info about all data of the unit within the campaign
  311. parameters:
  312. - $ref: '#/components/parameters/campaignIdParam'
  313. - $ref: '#/components/parameters/unitIdParam'
  314. - $ref: '#/components/parameters/sensorIdParam'
  315. - $ref: '#/components/parameters/fromParam'
  316. - $ref: '#/components/parameters/toParam'
  317. - $ref: '#/components/parameters/zoneParam'
  318. - $ref: '#/components/parameters/offsetParam'
  319. - $ref: '#/components/parameters/limitParam'
  320. - $ref: '#/components/parameters/formatParam'
  321. - $ref: '#/components/parameters/filterParam'
  322. - $ref: '#/components/parameters/navigationLinksParam'
  323. responses:
  324. 200:
  325. description: JSON containing stream of telemetry data
  326. content:
  327. application/json:
  328. schema:
  329. $ref: '#/components/schemas/CampaignUnitSensorObservation'
  330. default:
  331. description: unexpected error
  332. content:
  333. application/json:
  334. schema:
  335. $ref: '#/components/schemas/Error'
  336. /units:
  337. get:
  338. operationId: unitsGET
  339. summary: Publish info about all units
  340. parameters:
  341. - $ref: '#/components/parameters/navigationLinksParam'
  342. responses:
  343. 200:
  344. description: JSON array of basic info of each unit
  345. content:
  346. application/json:
  347. schema:
  348. type: array
  349. items:
  350. $ref: '#/components/schemas/UnitBasicInfo'
  351. default:
  352. description: unexpected error
  353. content:
  354. application/json:
  355. schema:
  356. $ref: '#/components/schemas/Error'
  357. /units/{unitId}:
  358. get:
  359. operationId: unitIdGET
  360. summary: Publish info about the unit
  361. parameters:
  362. - $ref: '#/components/parameters/unitIdParam'
  363. - $ref: '#/components/parameters/navigationLinksParam'
  364. responses:
  365. 200:
  366. description: JSON Object of info of the unit
  367. content:
  368. application/json:
  369. schema:
  370. $ref: '#/components/schemas/UnitDetailInfo'
  371. default:
  372. description: unexpected error
  373. content:
  374. application/json:
  375. schema:
  376. $ref: '#/components/schemas/Error'
  377. /units/{unitId}/sensors:
  378. get:
  379. operationId: unitIdSensorsGET
  380. summary: Publish info about sensors assigned to the unit
  381. parameters:
  382. - $ref: '#/components/parameters/unitIdParam'
  383. - $ref: '#/components/parameters/navigationLinksParam'
  384. responses:
  385. 200:
  386. description: JSON Array of info of the sensors
  387. content:
  388. application/json:
  389. schema:
  390. type: array
  391. items:
  392. $ref: '#/components/schemas/UnitSensorBasicInfo'
  393. default:
  394. description: unexpected error
  395. content:
  396. application/json:
  397. schema:
  398. $ref: '#/components/schemas/Error'
  399. /units/{unitId}/campaigns:
  400. get:
  401. operationId: unitIdCampaignsGET
  402. summary: Publish info about campaigns where the unit was/is assigned
  403. parameters:
  404. - $ref: '#/components/parameters/unitIdParam'
  405. - $ref: '#/components/parameters/zoneParam'
  406. - $ref: '#/components/parameters/navigationLinksParam'
  407. responses:
  408. 200:
  409. description: JSON Array of info about campaigns
  410. content:
  411. application/json:
  412. schema:
  413. type: array
  414. items:
  415. $ref: '#/components/schemas/UnitCampaignBasicInfo'
  416. default:
  417. description: unexpected error
  418. content:
  419. application/json:
  420. schema:
  421. $ref: '#/components/schemas/Error'
  422. /units/{unitId}/drivers:
  423. get:
  424. operationId: unitIdDriversGET
  425. summary: Publish basic info about drivers who performed actions upon the unit
  426. parameters:
  427. - $ref: '#/components/parameters/unitIdParam'
  428. - $ref: '#/components/parameters/navigationLinksParam'
  429. responses:
  430. 200:
  431. description: JSON Array of drivers
  432. content:
  433. application/json:
  434. schema:
  435. type: array
  436. items:
  437. $ref: '#/components/schemas/UnitDriverBasicInfo'
  438. default:
  439. description: unexpected error
  440. content:
  441. application/json:
  442. schema:
  443. $ref: '#/components/schemas/Error'
  444. /sensors:
  445. get:
  446. operationId: sensorsGET
  447. summary: Publish info about all sensors
  448. parameters:
  449. - $ref: '#/components/parameters/navigationLinksParam'
  450. responses:
  451. 200:
  452. description: JSON Array of info about sensors
  453. content:
  454. application/json:
  455. schema:
  456. type: array
  457. items:
  458. $ref: '#/components/schemas/SensorBasicInfo'
  459. default:
  460. description: unexpected error
  461. content:
  462. application/json:
  463. schema:
  464. $ref: '#/components/schemas/Error'
  465. /sensors/{sensorId}:
  466. get:
  467. operationId: sensorIdGET
  468. summary: Publish info about the sensor
  469. parameters:
  470. - $ref: '#/components/parameters/sensorIdParam'
  471. - $ref: '#/components/parameters/navigationLinksParam'
  472. responses:
  473. 200:
  474. description: JSON Object of info about the sensor
  475. content:
  476. application/json:
  477. schema:
  478. $ref: '#/components/schemas/SensorDetailInfo'
  479. default:
  480. description: unexpected error
  481. content:
  482. application/json:
  483. schema:
  484. $ref: '#/components/schemas/Error'
  485. /sensors/{sensorId}/units:
  486. get:
  487. operationId: sensorIdUnitsGET
  488. summary: Publish info about units to whom the sensor is assigned
  489. parameters:
  490. - $ref: '#/components/parameters/sensorIdParam'
  491. - $ref: '#/components/parameters/navigationLinksParam'
  492. responses:
  493. 200:
  494. description: JSON Array of info about the units
  495. content:
  496. application/json:
  497. schema:
  498. type: array
  499. items:
  500. $ref: '#/components/schemas/SensorUnitBasicInfo'
  501. default:
  502. description: unexpected error
  503. content:
  504. application/json:
  505. schema:
  506. $ref: '#/components/schemas/Error'
  507. /phenomenons:
  508. get:
  509. operationId: phenomenonsGET
  510. summary: Publish info about all phenomenons
  511. parameters:
  512. - $ref: '#/components/parameters/navigationLinksParam'
  513. responses:
  514. 200:
  515. description: JSON Array of info about phenomenons
  516. content:
  517. application/json:
  518. schema:
  519. type: array
  520. items:
  521. $ref: '#/components/schemas/PhenomenonBasicInfo'
  522. default:
  523. description: unexpected error
  524. content:
  525. application/json:
  526. schema:
  527. $ref: '#/components/schemas/Error'
  528. /phenomenons/{phenomenonId}:
  529. get:
  530. operationId: phenomenonIdGET
  531. summary: Publish info about the phenomenon
  532. parameters:
  533. - $ref: '#/components/parameters/phenomenonIdParam'
  534. - $ref: '#/components/parameters/navigationLinksParam'
  535. responses:
  536. 200:
  537. description: JSON Object of info about the phenomenon
  538. content:
  539. application/json:
  540. schema:
  541. $ref: '#/components/schemas/PhenomenonDetailInfo'
  542. default:
  543. description: unexpected error
  544. content:
  545. application/json:
  546. schema:
  547. $ref: '#/components/schemas/Error'
  548. /phenomenons/{phenomenonId}/sensors:
  549. get:
  550. operationId: phenomenonIdSensorsGET
  551. summary: Publish info about sensors of the phenomenon
  552. parameters:
  553. - $ref: '#/components/parameters/phenomenonIdParam'
  554. - $ref: '#/components/parameters/navigationLinksParam'
  555. responses:
  556. 200:
  557. description: JSON Array of info about sensors
  558. content:
  559. application/json:
  560. schema:
  561. type: array
  562. items:
  563. $ref: '#/components/schemas/PhenomenonSensorBasicInfo'
  564. default:
  565. description: unexpected error
  566. content:
  567. application/json:
  568. schema:
  569. $ref: '#/components/schemas/Error'
  570. /drivers:
  571. get:
  572. operationId: driversGET
  573. summary: Publish basic info about all drivers
  574. parameters:
  575. - $ref: '#/components/parameters/navigationLinksParam'
  576. responses:
  577. 200:
  578. description: JSON Array of basic info about drivers
  579. content:
  580. application/json:
  581. schema:
  582. type: array
  583. items:
  584. $ref: '#/components/schemas/DriverBasicInfo'
  585. default:
  586. description: unexpected error
  587. content:
  588. application/json:
  589. schema:
  590. $ref: '#/components/schemas/Error'
  591. /drivers/{driverId}:
  592. get:
  593. operationId: driverIdGET
  594. summary: Publish detailed info about the driver
  595. parameters:
  596. - $ref: '#/components/parameters/driverIdParam'
  597. - $ref: '#/components/parameters/navigationLinksParam'
  598. responses:
  599. 200:
  600. description: JSON Object of detailed info about the driver
  601. content:
  602. application/json:
  603. schema:
  604. $ref: '#/components/schemas/DriverDetailInfo'
  605. default:
  606. description: unexpected error
  607. content:
  608. application/json:
  609. schema:
  610. $ref: '#/components/schemas/Error'
  611. /drivers/{driverId}/units:
  612. get:
  613. operationId: driverIdUnitsGET
  614. summary: Publish basic info about driver's units
  615. parameters:
  616. - $ref: '#/components/parameters/driverIdParam'
  617. - $ref: '#/components/parameters/fromParam'
  618. - $ref: '#/components/parameters/toParam'
  619. - $ref: '#/components/parameters/navigationLinksParam'
  620. responses:
  621. 200:
  622. description: JSON Array of basic info about units
  623. content:
  624. application/json:
  625. schema:
  626. type: array
  627. items:
  628. $ref: '#/components/schemas/DriverUnitBasicInfo'
  629. default:
  630. description: unexpected error
  631. content:
  632. application/json:
  633. schema:
  634. $ref: '#/components/schemas/Error'
  635. /drivers/{driverId}/units/{unitId}:
  636. get:
  637. operationId: driverIdUnitIdGET
  638. summary: Publish detailed info about driver's unit
  639. parameters:
  640. - $ref: '#/components/parameters/driverIdParam'
  641. - $ref: '#/components/parameters/unitIdParam'
  642. - $ref: '#/components/parameters/navigationLinksParam'
  643. responses:
  644. 200:
  645. description: JSON Object of detailed info about driver's unit
  646. content:
  647. application/json:
  648. schema:
  649. $ref: '#/components/schemas/DriverUnitDetailInfo'
  650. default:
  651. description: unexpected error
  652. content:
  653. application/json:
  654. schema:
  655. $ref: '#/components/schemas/Error'
  656. /drivers/{driverId}/units/{unitId}/actions:
  657. get:
  658. operationId: driverIdUnitIdActionsGET
  659. summary: Publish basic info actions performed on the unit by the driver
  660. parameters:
  661. - $ref: '#/components/parameters/driverIdParam'
  662. - $ref: '#/components/parameters/unitIdParam'
  663. - $ref: '#/components/parameters/navigationLinksParam'
  664. responses:
  665. 200:
  666. description: JSON Object of actions
  667. content:
  668. application/json:
  669. schema:
  670. type: array
  671. items:
  672. $ref: '#/components/schemas/DriverUnitActionBasicInfo'
  673. default:
  674. description: unexpected error
  675. content:
  676. application/json:
  677. schema:
  678. $ref: '#/components/schemas/Error'
  679. /drivers/{driverId}/actions:
  680. get:
  681. operationId: driverIdActionsGET
  682. summary: Publish basic info about driver's actions
  683. parameters:
  684. - $ref: '#/components/parameters/driverIdParam'
  685. - $ref: '#/components/parameters/fromParam'
  686. - $ref: '#/components/parameters/toParam'
  687. - $ref: '#/components/parameters/navigationLinksParam'
  688. responses:
  689. 200:
  690. description: JSON Array of basic info about driver's actions'
  691. content:
  692. application/json:
  693. schema:
  694. type: array
  695. items:
  696. $ref: '#/components/schemas/DriverActionBasicInfo'
  697. default:
  698. description: unexpected error
  699. content:
  700. application/json:
  701. schema:
  702. $ref: '#/components/schemas/Error'
  703. /drivers/{driverId}/actions/{actionId}:
  704. get:
  705. operationId: driverIdActionIdGET
  706. summary: Publish detailed info about the driver's action
  707. parameters:
  708. - $ref: '#/components/parameters/driverIdParam'
  709. - $ref: '#/components/parameters/actionIdParam'
  710. - $ref: '#/components/parameters/navigationLinksParam'
  711. responses:
  712. 200:
  713. description: JSON Object of detailed info about the driver's action
  714. content:
  715. application/json:
  716. schema:
  717. $ref: '#/components/schemas/DriverActionDetailInfo'
  718. default:
  719. description: unexpected error
  720. content:
  721. application/json:
  722. schema:
  723. $ref: '#/components/schemas/Error'
  724. /drivers/{driverId}/actions/{actionId}/units:
  725. get:
  726. operationId: driverIdActionIdUnitsGET
  727. summary: Publish basic info about units on which the driver performed its action
  728. parameters:
  729. - $ref: '#/components/parameters/driverIdParam'
  730. - $ref: '#/components/parameters/actionIdParam'
  731. - $ref: '#/components/parameters/navigationLinksParam'
  732. responses:
  733. 200:
  734. description: JSON Array of units
  735. content:
  736. application/json:
  737. schema:
  738. type: array
  739. items:
  740. $ref: '#/components/schemas/DriverActionUnitBasicInfo'
  741. default:
  742. description: unexpected error
  743. content:
  744. application/json:
  745. schema:
  746. $ref: '#/components/schemas/Error'
  747. /drivers/{driverId}/actions/{actionId}/units/{unitId}:
  748. get:
  749. operationId: driverIdActionIdUnitIdGET
  750. summary: Publish detail info about the unit on which the driver performed the action
  751. parameters:
  752. - $ref: '#/components/parameters/driverIdParam'
  753. - $ref: '#/components/parameters/actionIdParam'
  754. - $ref: '#/components/parameters/unitIdParam'
  755. - $ref: '#/components/parameters/navigationLinksParam'
  756. responses:
  757. 200:
  758. description: JSON Object of the unit
  759. content:
  760. application/json:
  761. schema:
  762. $ref: '#/components/schemas/DriverActionUnitDetailInfo'
  763. default:
  764. description: unexpected error
  765. content:
  766. application/json:
  767. schema:
  768. $ref: '#/components/schemas/Error'
  769. /drivers/{driverId}/units/{unitId}/actions/{actionId}:
  770. get:
  771. operationId: driverIdUnitIdActionIdGET
  772. summary: Publish detailed info about the action performed on the unit by the driver
  773. parameters:
  774. - $ref: '#/components/parameters/driverIdParam'
  775. - $ref: '#/components/parameters/unitIdParam'
  776. - $ref: '#/components/parameters/actionIdParam'
  777. - $ref: '#/components/parameters/navigationLinksParam'
  778. responses:
  779. 200:
  780. description: JSON Object of the action
  781. content:
  782. application/json:
  783. schema:
  784. $ref: '#/components/schemas/DriverUnitActionDetailInfo'
  785. default:
  786. description: unexpected error
  787. content:
  788. application/json:
  789. schema:
  790. $ref: '#/components/schemas/Error'
  791. /drivers/{driverId}/units/{unitId}/actions/{actionId}/events:
  792. get:
  793. operationId: driverIdUnitIdActionIdEventsGET
  794. summary: Publish basic info about events that where performed on the unit byt the driver with the specific action
  795. parameters:
  796. - $ref: '#/components/parameters/driverIdParam'
  797. - $ref: '#/components/parameters/unitIdParam'
  798. - $ref: '#/components/parameters/actionIdParam'
  799. - $ref: '#/components/parameters/zoneParam'
  800. - $ref: '#/components/parameters/navigationLinksParam'
  801. responses:
  802. 200:
  803. description: JSON Array of events
  804. content:
  805. application/json:
  806. schema:
  807. type: array
  808. items:
  809. $ref: '#/components/schemas/EventBasicInfo'
  810. default:
  811. description: unexpected error
  812. content:
  813. application/json:
  814. schema:
  815. $ref: '#/components/schemas/Error'
  816. /events/{eventId}:
  817. get:
  818. operationId: eventIdGET
  819. summary: Publish basic info about events that where performed on the unit byt the driver with the specific action
  820. parameters:
  821. - $ref: '#/components/parameters/eventIdParam'
  822. - $ref: '#/components/parameters/zoneParam'
  823. - $ref: '#/components/parameters/navigationLinksParam'
  824. responses:
  825. 200:
  826. description: JSON Array of events
  827. content:
  828. application/json:
  829. schema:
  830. $ref: '#/components/schemas/EventDetailInfo'
  831. default:
  832. description: unexpected error
  833. content:
  834. application/json:
  835. schema:
  836. $ref: '#/components/schemas/Error'
  837. /events/{eventId}/observations:
  838. get:
  839. operationId: eventIdObservationsGET
  840. summary: Publish telemetry observations created by the driver while performing specific action on the unit at the time/event
  841. parameters:
  842. - $ref: '#/components/parameters/eventIdParam'
  843. - $ref: '#/components/parameters/zoneParam'
  844. - $ref: '#/components/parameters/offsetParam'
  845. - $ref: '#/components/parameters/limitParam'
  846. - $ref: '#/components/parameters/formatParam'
  847. - $ref: '#/components/parameters/filterParam'
  848. - $ref: '#/components/parameters/navigationLinksParam'
  849. responses:
  850. 200:
  851. description: JSON Object of telemetry observations
  852. content:
  853. application/json:
  854. schema:
  855. $ref: '#/components/schemas/ActionEventObservation'
  856. default:
  857. description: unexpected error
  858. content:
  859. application/json:
  860. schema:
  861. $ref: '#/components/schemas/Error'
  862. /events/{eventId}/observations/locations:
  863. get:
  864. operationId: eventIdLocationsGET
  865. summary: Publish locations created by the driver while performing specific action on the unit at the time/event
  866. parameters:
  867. - $ref: '#/components/parameters/eventIdParam'
  868. - $ref: '#/components/parameters/fromParam'
  869. - $ref: '#/components/parameters/toParam'
  870. - $ref: '#/components/parameters/zoneParam'
  871. - $ref: '#/components/parameters/offsetParam'
  872. - $ref: '#/components/parameters/limitParam'
  873. - $ref: '#/components/parameters/formatParam'
  874. - $ref: '#/components/parameters/filterParam'
  875. - $ref: '#/components/parameters/navigationLinksParam'
  876. responses:
  877. 200:
  878. description: JSON containing stream of locations
  879. content:
  880. application/json:
  881. schema:
  882. $ref: '#/components/schemas/ActionEventLocation'
  883. default:
  884. description: unexpected error
  885. content:
  886. application/json:
  887. schema:
  888. $ref: '#/components/schemas/Error'
  889. components:
  890. # securitySchemes:
  891. # ApiKeyAuth:
  892. # type: apiKey
  893. # in: header
  894. # name: Authorization
  895. parameters:
  896. campaignIdParam:
  897. in: path
  898. name: campaignId
  899. schema:
  900. type: integer
  901. format: int64
  902. required: true
  903. description: Numeric ID of the campaign to get
  904. unitIdParam:
  905. in: path
  906. name: unitId
  907. schema:
  908. type: integer
  909. required: true
  910. description: Numeric ID of the unit to get
  911. sensorIdParam:
  912. in: path
  913. name: sensorId
  914. schema:
  915. type: integer
  916. required: true
  917. description: Numeric ID of the sensor to get
  918. phenomenonIdParam:
  919. in: path
  920. name: phenomenonId
  921. schema:
  922. type: integer
  923. format: int64
  924. required: true
  925. description: Numeric ID of the phenomenon to get
  926. driverIdParam:
  927. in: path
  928. name: driverId
  929. schema:
  930. type: integer
  931. format: int64
  932. required: true
  933. description: Numeric ID of the driver to get
  934. actionIdParam:
  935. in: path
  936. name: actionId
  937. schema:
  938. type: integer
  939. format: int64
  940. required: true
  941. description: Numeric ID of the action to get
  942. eventIdParam:
  943. in: path
  944. name: eventId
  945. schema:
  946. type: integer
  947. format: int64
  948. required: true
  949. description: Numeric ID of the event to get
  950. zoneParam:
  951. in: query
  952. name: zone
  953. schema:
  954. type: string
  955. default: UTC
  956. required: false
  957. examples:
  958. UTC:
  959. value: UTC
  960. GMT:
  961. value: GMT
  962. navigationLinksParam:
  963. in: query
  964. name: navigationLinks
  965. schema:
  966. type: boolean
  967. default: true
  968. description: Option to disable @NavigationLinks in a response
  969. limitParam:
  970. in: query
  971. name: limit
  972. schema:
  973. type: integer
  974. format: int64
  975. required: false
  976. example: 100
  977. offsetParam:
  978. in: query
  979. name: offset
  980. schema:
  981. type: integer
  982. format: int64
  983. example: 100
  984. fromParam:
  985. in: query
  986. name: from
  987. schema:
  988. type: string
  989. format: date-time
  990. required: false
  991. example: 2017-07-21T17:32:28Z
  992. toParam:
  993. in: query
  994. name: to
  995. schema:
  996. type: string
  997. format: date-time
  998. required: false
  999. example: 2017-07-21T17:32:28Z
  1000. limitPerUnitParam:
  1001. in: query
  1002. name: limitPerUnit
  1003. required: true
  1004. schema:
  1005. type: integer
  1006. default: 1
  1007. examples:
  1008. One locations:
  1009. value: 1
  1010. summary: One location of each unit
  1011. sortParam:
  1012. in: query
  1013. name: sort
  1014. schema:
  1015. type: string
  1016. enum: [ asc, desc ]
  1017. default: asc
  1018. examples:
  1019. Descending Order:
  1020. value: desc
  1021. summary: Last location of the units. Last location is combination of sort=desc & limitPerUnit=1
  1022. Ascending Order:
  1023. value: asc
  1024. filterParam:
  1025. in: query
  1026. name: filter
  1027. description: Filter for results following the pattern
  1028. <unit | sensor>(<numeric_float_id | speed | longitude | latitude | altitude>)<lt | le | eq | ne | ge | lt><float_value>, e.g,
  1029. schema:
  1030. type: string
  1031. required: false
  1032. examples:
  1033. Units latitude:
  1034. value: unit(latitude)lt50.1
  1035. summary: Returns all units with its latitude coordination lower than (LT) 50.1
  1036. Units speed:
  1037. value: unit(speed)gt90.0
  1038. summary: Returns all units with its speed greater than 90.0 Km/h
  1039. Sensor ID value:
  1040. value: sensor(105)gt10
  1041. summary: Returns sensors having its value greater than 10
  1042. formatParam:
  1043. in: query
  1044. name: format
  1045. schema:
  1046. type: string
  1047. enum: [json, geojson]
  1048. default: json
  1049. required: false
  1050. schemas:
  1051. CampaignBasicInfo:
  1052. type: object
  1053. required:
  1054. - id
  1055. - fromTime
  1056. - toTime
  1057. x-NavigationLinks:
  1058. Campaign@NavigationLink:
  1059. type: string
  1060. format: uri
  1061. x-graph-properties:
  1062. linkTo: campaignIdGET
  1063. color: blue
  1064. properties:
  1065. Campaign@NavigationLink:
  1066. $ref: '#/components/schemas/CampaignBasicInfo/x-NavigationLinks/Campaign@NavigationLink'
  1067. id:
  1068. type: integer
  1069. format: int64
  1070. description:
  1071. type: string
  1072. fromTime:
  1073. type: string
  1074. format: date-time
  1075. toTime:
  1076. type: string
  1077. format: date-time
  1078. example:
  1079. Campaign@NavigationLink: "<domain>/campaigns/1"
  1080. id: 1
  1081. description: "Campaign 1"
  1082. fromTime: "2023-01-25 15:35:32Z"
  1083. toTime: "2023-03-20 10:35:32Z"
  1084. CampaignDetailInfo:
  1085. type: object
  1086. required:
  1087. - id
  1088. - fromTime
  1089. - toTime
  1090. x-NavigationLinks:
  1091. self@NavigationLink:
  1092. type: string
  1093. format: uri
  1094. x-graph-properties:
  1095. linkTo: campaignIdGET
  1096. Observations@NavigationLink:
  1097. type: string
  1098. format: uri
  1099. x-graph-properties:
  1100. linkTo: campaignIdUnitsObservationsGET
  1101. Locations@NavigationLink:
  1102. type: string
  1103. format: uri
  1104. x-graph-properties:
  1105. linkTo: campaignIdUnitsObservationsLocationsGET
  1106. Units@NavigationLink:
  1107. type: string
  1108. format: uri
  1109. x-graph-properties:
  1110. linkTo: campaignIdUnitsGET
  1111. properties:
  1112. self@NavigationLink:
  1113. $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/self@NavigationLink'
  1114. Observations@NavigationLink:
  1115. $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/Observations@NavigationLink'
  1116. Locations@NavigationLink:
  1117. $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/Locations@NavigationLink'
  1118. Units@NavigationLink:
  1119. $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/Units@NavigationLink'
  1120. id:
  1121. description: Identifier of the campaign
  1122. type: integer
  1123. format: int64
  1124. description:
  1125. description: Text description of the campaign
  1126. type: string
  1127. fromTime:
  1128. description: Time when the campaign starts
  1129. type: string
  1130. format: date-time
  1131. toTime:
  1132. description: Time when the campaign ends
  1133. type: string
  1134. format: date-time
  1135. example:
  1136. self@NavigationLink: "<domain>/campaigns/1"
  1137. Observations@NavigationLink: "<domain>/campaigns/1/units/observations"
  1138. Locations@NavigationLink: "<domain>/campaigns/1/units/observations/locations"
  1139. Units@NavigationLink: "<domain>/campaigns/1/units"
  1140. id: 1
  1141. description: "Campaign example"
  1142. fromTime: "2023-01-25 15:35:32Z"
  1143. toTime: "2023-03-20 10:35:32Z"
  1144. CampaignUnitBasicInfo:
  1145. type: object
  1146. required:
  1147. - unitId
  1148. - name
  1149. - fromTime
  1150. - toTime
  1151. x-NavigationLinks:
  1152. Unit@NavigationLink:
  1153. type: string
  1154. format: uri
  1155. x-graph-properties:
  1156. linkTo: unitIdGET
  1157. CampaignUnit@NavigationLink:
  1158. type: string
  1159. format: uri
  1160. x-graph-properties:
  1161. linkTo: campaignIdUnitIdGET
  1162. properties:
  1163. Unit@NavigationLink:
  1164. $ref: '#/components/schemas/CampaignUnitBasicInfo/x-NavigationLinks/Unit@NavigationLink'
  1165. CampaignUnit@NavigationLink:
  1166. $ref: '#/components/schemas/CampaignUnitBasicInfo/x-NavigationLinks/CampaignUnit@NavigationLink'
  1167. unitId:
  1168. description: Identifier of the unit
  1169. type: integer
  1170. format: int64
  1171. name:
  1172. type: string
  1173. description:
  1174. type: string
  1175. fromTime:
  1176. description: Time when the validity of the unit starts within the campaign
  1177. type: string
  1178. format: date-time
  1179. toTime:
  1180. description: Time when the validity of the unit ends within the campaign
  1181. type: string
  1182. format: date-time
  1183. example:
  1184. Unit@NavigationLink: "<domain>/units/25"
  1185. CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
  1186. unitId: 25
  1187. name: "Unit name"
  1188. description: "Purpose of the Unit 25"
  1189. fromTime: "2023-01-25 15:35:32Z"
  1190. toTime: "2023-03-20 10:35:32Z"
  1191. CampaignUnitDetailInfo:
  1192. type: object
  1193. required:
  1194. - unitId
  1195. - imei
  1196. - fromTime
  1197. - toTime
  1198. x-NavigationLinks:
  1199. self@NavigationLink:
  1200. type: string
  1201. format: uri
  1202. x-graph-properties:
  1203. linkTo: campaignIdUnitIdGET
  1204. Unit@NavigationLink:
  1205. type: string
  1206. format: uri
  1207. x-graph-properties:
  1208. linkTo: unitIdGET
  1209. Campaign@NavigationLink:
  1210. type: string
  1211. format: uri
  1212. x-graph-properties:
  1213. linkTo: campaignIdGET
  1214. Sensors@NavigationLink:
  1215. type: string
  1216. format: uri
  1217. x-graph-properties:
  1218. linkTo: campaignIdUnitIdSensorsGET
  1219. Observations@NavigationLink:
  1220. type: string
  1221. format: uri
  1222. x-graph-properties:
  1223. linkTo: campaignIdUnitIdObservationsGET
  1224. Locations@NavigationLink:
  1225. type: string
  1226. format: uri
  1227. x-graph-properties:
  1228. linkTo: campaignIdUnitIdLocationsGET
  1229. properties:
  1230. self@NavigationLink:
  1231. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
  1232. Unit@NavigationLink:
  1233. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
  1234. Campaign@NavigationLink:
  1235. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Campaign@NavigationLink'
  1236. Sensors@NavigationLink:
  1237. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Sensors@NavigationLink'
  1238. Observations@NavigationLink:
  1239. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Observations@NavigationLink'
  1240. Locations@NavigationLink:
  1241. $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Locations@NavigationLink'
  1242. unitId:
  1243. description: Identifier of the unit
  1244. type: integer
  1245. format: int64
  1246. imei:
  1247. type: string
  1248. description:
  1249. type: string
  1250. fromTime:
  1251. description: Time when the validity of the unit starts within the campaign
  1252. type: string
  1253. format: date-time
  1254. toTime:
  1255. description: Time when the validity of the unit ends within the campaign
  1256. type: string
  1257. format: date-time
  1258. example:
  1259. self@NavigationLink: "<domain>/campaigns/1/units/25"
  1260. Unit@NavigationLink: "<domain>/units/25"
  1261. Campaign@NavigationLink: "<domain>/campaigns/1"
  1262. Sensors@NavigationLink: "<domain>/campaigns/1/units/25/sensors"
  1263. Observations@NavigationLink: "<domain>/campaigns/1/units/25/observations"
  1264. Locations@NavigationLink: "<domain>/campaigns/1/units/25/observations/locations"
  1265. unitId: 25
  1266. imei: "3434533453"
  1267. description: "Purpose of the Unit 25"
  1268. fromTime: "2023-01-25 15:35:32Z"
  1269. toTime: "2023-03-20 10:35:32Z"
  1270. CampaignUnitBasicSensor:
  1271. type: object
  1272. required:
  1273. - sensorId
  1274. - name
  1275. - type
  1276. x-NavigationLinks:
  1277. CampaignSensor@NavigationLink:
  1278. type: string
  1279. format: uri
  1280. x-graph-properties:
  1281. linkTo: campaignIdUnitIdSensorIdGET
  1282. properties:
  1283. CampaignSensor@NavigationLink:
  1284. $ref: '#/components/schemas/CampaignUnitBasicSensor/x-NavigationLinks/CampaignSensor@NavigationLink'
  1285. sensorId:
  1286. description: Identifier of the unit
  1287. type: integer
  1288. format: int64
  1289. name:
  1290. type: string
  1291. type:
  1292. type: string
  1293. example:
  1294. CampaignSensor@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
  1295. sensorId: 105
  1296. name: "Sensor 105"
  1297. type: "X"
  1298. CampaignUnitDetailedSensor:
  1299. type: object
  1300. required:
  1301. - sensorId
  1302. - name
  1303. - phenomenon
  1304. - type
  1305. x-NavigationLinks:
  1306. self@NavigationLink:
  1307. type: string
  1308. format: uri
  1309. x-graph-properties:
  1310. linkTo: campaignIdUnitIdSensorIdGET
  1311. Sensor@NavigationLink:
  1312. type: string
  1313. format: uri
  1314. x-graph-properties:
  1315. linkTo: sensorIdGET
  1316. CampaignUnit@NavigationLink:
  1317. type: string
  1318. format: uri
  1319. x-graph-properties:
  1320. linkTo: campaignIdUnitIdGET
  1321. Phenomenon@NavigationLink:
  1322. type: string
  1323. format: uri
  1324. x-graph-properties:
  1325. linkTo: phenomenonIdGET
  1326. Observations@NavigationLink:
  1327. type: string
  1328. format: uri
  1329. x-graph-properties:
  1330. linkTo: campaignIdUnitIdSensorIdObservationsGET
  1331. properties:
  1332. self@NavigationLink:
  1333. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/self@NavigationLink'
  1334. Sensor@NavigationLink:
  1335. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/Sensor@NavigationLink'
  1336. CampaignUnit@NavigationLink:
  1337. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/CampaignUnit@NavigationLink'
  1338. Phenomenon@NavigationLink:
  1339. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/Phenomenon@NavigationLink'
  1340. Observations@NavigationLink:
  1341. $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/Observations@NavigationLink'
  1342. sensorId:
  1343. type: integer
  1344. format: int64
  1345. name:
  1346. type: string
  1347. phenomenon:
  1348. type: string
  1349. type:
  1350. type: string
  1351. description:
  1352. type: string
  1353. example:
  1354. self@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
  1355. Sensor@NavigationLink: "<domain>/sensors/105"
  1356. CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
  1357. Phenomenon@NavigationLink: "<domain>/phenomenons/15"
  1358. Observations@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105/observations"
  1359. sensorId: 105
  1360. name: "Sensor 105"
  1361. description: "Description of the sensor 105"
  1362. type: "type of sensor"
  1363. phenomenon: "Temperature"
  1364. CampaignObservation:
  1365. type: object
  1366. required:
  1367. - params
  1368. - hasNext
  1369. - size
  1370. - offset
  1371. - data
  1372. x-NavigationLinks:
  1373. Campaign@NavigationLink:
  1374. type: string
  1375. format: uri
  1376. x-graph-properties:
  1377. linkTo: campaignIdGET
  1378. next@NavigationLink:
  1379. type: string
  1380. format: uri
  1381. x-graph-properties:
  1382. linkTo: campaignIdUnitsObservationsGET
  1383. properties:
  1384. Campaign@NavigationLink:
  1385. $ref: '#/components/schemas/CampaignObservation/x-NavigationLinks/Campaign@NavigationLink'
  1386. next@NavigationLink:
  1387. $ref: '#/components/schemas/CampaignObservation/x-NavigationLinks/next@NavigationLink'
  1388. params:
  1389. type: object
  1390. description: Used params in URL
  1391. hasNext:
  1392. type: boolean
  1393. size:
  1394. type: integer
  1395. offset:
  1396. type: integer
  1397. data:
  1398. type: array
  1399. items:
  1400. $ref: '#/components/schemas/CampaignDataObservation'
  1401. example:
  1402. Campaign@NavigationLink: "<domain>/campaigns/1"
  1403. next@NavigationLink: "<domain>/campaigns/1/observations?offset=500"
  1404. size: 500
  1405. offset: 0
  1406. data: []
  1407. GeoCampaignObservation:
  1408. type: object
  1409. required:
  1410. - type
  1411. - features
  1412. properties:
  1413. type:
  1414. type: string
  1415. enum:
  1416. - FeatureCollection
  1417. metadata:
  1418. type: object
  1419. features:
  1420. type: array
  1421. minLength: 1
  1422. items:
  1423. $ref: '#/components/schemas/GeoFeatureCampaign'
  1424. GeoFeatureCampaign:
  1425. type: object
  1426. required:
  1427. - type
  1428. - geometry
  1429. - properties
  1430. properties:
  1431. type:
  1432. type: string
  1433. enum:
  1434. - Feature
  1435. geometry:
  1436. $ref: '#/components/schemas/GeoPoint'
  1437. properties:
  1438. type: object
  1439. required:
  1440. - unitId
  1441. - timestamp
  1442. - speed
  1443. properties:
  1444. unitId:
  1445. type: integer
  1446. format: int64
  1447. timestamp:
  1448. type: string
  1449. format: date-time
  1450. speed:
  1451. type: integer
  1452. format: int64
  1453. observations:
  1454. type: object
  1455. GeoPoint:
  1456. type: object
  1457. properties:
  1458. type:
  1459. type: string
  1460. enum:
  1461. - Point
  1462. coordinates:
  1463. type: array
  1464. items:
  1465. type: number
  1466. format: float
  1467. minLength: 3
  1468. maxLength: 3
  1469. description: "[lon, lat, alt]"
  1470. CampaignUnitObservation:
  1471. type: object
  1472. required:
  1473. - params
  1474. - hasNext
  1475. - size
  1476. - offset
  1477. - data
  1478. x-NavigationLinks:
  1479. CampaignUnit@NavigationLink:
  1480. type: string
  1481. format: uri
  1482. x-graph-properties:
  1483. linkTo: campaignIdUnitIdGET
  1484. next@NavigationLink:
  1485. type: string
  1486. format: uri
  1487. x-graph-properties:
  1488. linkTo: campaignIdUnitIdObservationsGET
  1489. properties:
  1490. CampaignUnit@NavigationLink:
  1491. $ref: '#/components/schemas/CampaignUnitObservation/x-NavigationLinks/CampaignUnit@NavigationLink'
  1492. next@NavigationLink:
  1493. $ref: '#/components/schemas/CampaignUnitObservation/x-NavigationLinks/next@NavigationLink'
  1494. params:
  1495. type: object
  1496. description: Used params in URL
  1497. hasNext:
  1498. type: boolean
  1499. size:
  1500. type: integer
  1501. offset:
  1502. type: integer
  1503. data:
  1504. type: array
  1505. items:
  1506. $ref: '#/components/schemas/UnitDataObservation'
  1507. example:
  1508. CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
  1509. next@NavigationLink: "<domain>/campaigns/1/units/25/observations?offset=500"
  1510. params: []
  1511. size: 500
  1512. hasNext: true
  1513. offset: 0
  1514. data: []
  1515. CampaignUnitSensorObservation:
  1516. type: object
  1517. required:
  1518. - params
  1519. - size
  1520. - offset
  1521. - hasNext
  1522. - data
  1523. x-NavigationLinks:
  1524. CampaignSensor@NavigationLink:
  1525. type: string
  1526. format: uri
  1527. x-graph-properties:
  1528. linkTo: campaignIdUnitIdSensorIdGET
  1529. next@NavigationLink:
  1530. type: string
  1531. format: uri
  1532. x-graph-properties:
  1533. linkTo: campaignIdUnitIdSensorIdObservationsGET
  1534. properties:
  1535. CampaignSensor@NavigationLink:
  1536. $ref: '#/components/schemas/CampaignUnitSensorObservation/x-NavigationLinks/CampaignSensor@NavigationLink'
  1537. next@NavigationLink:
  1538. $ref: '#/components/schemas/CampaignUnitSensorObservation/x-NavigationLinks/next@NavigationLink'
  1539. params:
  1540. type: object
  1541. description: Used params in URL
  1542. size:
  1543. type: integer
  1544. offset:
  1545. type: integer
  1546. hasNext:
  1547. type: boolean
  1548. data:
  1549. type: array
  1550. items:
  1551. $ref: '#/components/schemas/SensorDataObservation'
  1552. example:
  1553. CampaignSensor@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
  1554. next@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105/observations?offset=500"
  1555. size: 500
  1556. offset: 0
  1557. data: []
  1558. ActionEventObservation:
  1559. type: object
  1560. required:
  1561. - params
  1562. - hasNext
  1563. - size
  1564. - offset
  1565. - data
  1566. x-NavigationLinks:
  1567. Event@NavigationLink:
  1568. type: string
  1569. format: uri
  1570. x-graph-properties:
  1571. linkTo: eventIdGET
  1572. next@NavigationLink:
  1573. type: string
  1574. format: uri
  1575. x-graph-properties:
  1576. linkTo: eventIdObservationsGET
  1577. properties:
  1578. Event@NavigationLink:
  1579. $ref: '#/components/schemas/ActionEventObservation/x-NavigationLinks/Event@NavigationLink'
  1580. next@NavigationLink:
  1581. $ref: '#/components/schemas/ActionEventObservation/x-NavigationLinks/next@NavigationLink'
  1582. params:
  1583. type: object
  1584. description: Used params in URL
  1585. hasNext:
  1586. type: boolean
  1587. size:
  1588. type: integer
  1589. offset:
  1590. type: integer
  1591. data:
  1592. type: array
  1593. items:
  1594. $ref: '#/components/schemas/UnitDataObservation'
  1595. example:
  1596. Event@NavigationLink: "<domain>/events/999"
  1597. next@NavigationLink: "<domain>/events/999/observations?offset=500"
  1598. params: []
  1599. size: 500
  1600. hasNext: true
  1601. offset: 0
  1602. data: []
  1603. CampaignDataObservation:
  1604. type: object
  1605. required:
  1606. - unitId
  1607. - timestamp
  1608. - speed
  1609. - location
  1610. - observedValues
  1611. properties:
  1612. unitId:
  1613. type: integer
  1614. format: int64
  1615. timestamp:
  1616. type: string
  1617. format: date-time
  1618. speed:
  1619. type: integer
  1620. format: int64
  1621. location:
  1622. $ref: '#/components/schemas/Location'
  1623. observedValues:
  1624. type: object
  1625. example:
  1626. unitId: 25
  1627. timestamp: "2023-01-25 15:35:32Z"
  1628. location:
  1629. longitude: 49.7384
  1630. latitude: 13.3736
  1631. altitude: 350.3
  1632. observedValues:
  1633. 105: 1434
  1634. UnitDataObservation:
  1635. type: object
  1636. required:
  1637. - timestamp
  1638. - speed
  1639. - location
  1640. - observedValues
  1641. properties:
  1642. timestamp:
  1643. type: string
  1644. format: date-time
  1645. speed:
  1646. type: integer
  1647. format: int64
  1648. location:
  1649. $ref: '#/components/schemas/Location'
  1650. observedValues:
  1651. type: object
  1652. example:
  1653. timestamp: "2023-01-25 15:35:32Z"
  1654. speed: 34
  1655. location:
  1656. longitude: 49.7384
  1657. latitude: 13.3736
  1658. altitude: 350.3
  1659. observedValues:
  1660. 105: 1434
  1661. SensorDataObservation:
  1662. type: object
  1663. required:
  1664. - timestamp
  1665. - value
  1666. - speed
  1667. - location
  1668. properties:
  1669. timestamp:
  1670. type: string
  1671. format: date-time
  1672. observed_value:
  1673. type: integer
  1674. format: int64
  1675. speed:
  1676. type: integer
  1677. format: int64
  1678. location:
  1679. $ref: '#/components/schemas/Location'
  1680. example:
  1681. timestamp: "2023-01-25 15:35:32Z"
  1682. observed_value: 1434
  1683. speed: 34
  1684. location:
  1685. longitude: 49.7384
  1686. latitude: 13.3736
  1687. altitude: 350.3
  1688. CampaignUnitLocation:
  1689. type: object
  1690. required:
  1691. - params
  1692. - hasNext
  1693. - size
  1694. - offset
  1695. - data
  1696. x-NavigationLinks:
  1697. Campaign@NavigationLink:
  1698. type: string
  1699. format: uri
  1700. x-graph-properties:
  1701. linkTo: campaignIdGET
  1702. Unit@NavigationLink:
  1703. type: string
  1704. format: uri
  1705. x-graph-properties:
  1706. linkTo: campaignIdUnitIdGET
  1707. next@NavigationLink:
  1708. type: string
  1709. format: uri
  1710. x-graph-properties:
  1711. linkTo: campaignIdUnitIdLocationsGET
  1712. properties:
  1713. Campaign@NavigationLink:
  1714. $ref: '#/components/schemas/CampaignUnitLocation/x-NavigationLinks/Campaign@NavigationLink'
  1715. Unit@NavigationLink:
  1716. $ref: '#/components/schemas/CampaignUnitLocation/x-NavigationLinks/Unit@NavigationLink'
  1717. next@NavigationLink:
  1718. $ref: '#/components/schemas/CampaignUnitLocation/x-NavigationLinks/next@NavigationLink'
  1719. params:
  1720. type: object
  1721. description: Used params in URL
  1722. hasNext:
  1723. type: boolean
  1724. size:
  1725. type: integer
  1726. offset:
  1727. type: integer
  1728. data:
  1729. type: array
  1730. items:
  1731. type: object
  1732. properties:
  1733. timestamp:
  1734. type: string
  1735. format: date-time
  1736. location:
  1737. $ref: '#/components/schemas/Location'
  1738. example:
  1739. Campaign@NavigationLink: "<domain>/campaigns/1"
  1740. Unit@NavigationLink: "<domain>/campaigns/1/units/25"
  1741. next@NavigationLink: "<domain>/campaigns/1/units/25/observations/locations?offset=500"
  1742. params:
  1743. offset: 0
  1744. limit: 500
  1745. navigationLinks: true
  1746. size: 500
  1747. hasNext: true
  1748. offset: 0
  1749. data:
  1750. - timestamp: "2023-01-25 15:35:32Z"
  1751. location:
  1752. longitude: 49.7384
  1753. latitude: 13.3736
  1754. altitude: 350.3
  1755. CampaignUnitsLocations:
  1756. type: object
  1757. required:
  1758. - size
  1759. - data
  1760. x-NavigationLinks:
  1761. Campaign@NavigationLink:
  1762. type: string
  1763. format: uri
  1764. x-graph-properties:
  1765. linkTo: campaignIdGET
  1766. properties:
  1767. Campaign@NavigationLink:
  1768. $ref: '#/components/schemas/CampaignUnitsLocations/x-NavigationLinks/Campaign@NavigationLink'
  1769. params:
  1770. type: object
  1771. description: Used params in URL
  1772. size:
  1773. type: integer
  1774. data:
  1775. type: array
  1776. items:
  1777. type: object
  1778. required:
  1779. - unitId
  1780. - timestamp
  1781. - location
  1782. properties:
  1783. unitId:
  1784. type: integer
  1785. format: int64
  1786. timestamp:
  1787. type: string
  1788. format: date-time
  1789. location:
  1790. $ref: '#/components/schemas/Location'
  1791. example:
  1792. Campaign@NavigationLink: "<domain>/campaigns/1"
  1793. params:
  1794. from: "2023-01-25 15:35:32Z"
  1795. to: "2023-01-25 15:35:32Z"
  1796. navigationLinks: true
  1797. size: 8
  1798. data:
  1799. - unitId: 25
  1800. timestamp: "2023-01-25 15:35:32Z"
  1801. location:
  1802. longitude: 49.7384
  1803. latitude: 13.3736
  1804. altitude: 350.3
  1805. ActionEventLocation:
  1806. type: object
  1807. required:
  1808. - params
  1809. - hasNext
  1810. - size
  1811. - offset
  1812. - data
  1813. x-NavigationLinks:
  1814. Event@NavigationLink:
  1815. type: string
  1816. format: uri
  1817. x-graph-properties:
  1818. linkTo: eventIdGET
  1819. next@NavigationLink:
  1820. type: string
  1821. format: uri
  1822. x-graph-properties:
  1823. linkTo: eventIdLocationsGET
  1824. properties:
  1825. Event@NavigationLink:
  1826. $ref: '#/components/schemas/ActionEventLocation/x-NavigationLinks/Event@NavigationLink'
  1827. next@NavigationLink:
  1828. $ref: '#/components/schemas/ActionEventLocation/x-NavigationLinks/next@NavigationLink'
  1829. params:
  1830. type: object
  1831. description: Used params in URL
  1832. hasNext:
  1833. type: boolean
  1834. size:
  1835. type: integer
  1836. offset:
  1837. type: integer
  1838. data:
  1839. type: array
  1840. items:
  1841. type: object
  1842. properties:
  1843. timestamp:
  1844. type: string
  1845. format: date-time
  1846. location:
  1847. $ref: '#/components/schemas/Location'
  1848. example:
  1849. Event@NavigationLink: "<domain>/events/999"
  1850. next@NavigationLink: "<domain>/events/999/observations/locations?offset=500"
  1851. params:
  1852. offset: 0
  1853. limit: 500
  1854. navigationLinks: true
  1855. size: 500
  1856. hasNext: true
  1857. offset: 0
  1858. data:
  1859. - timestamp: "2023-01-25 15:35:32Z"
  1860. location:
  1861. longitude: 49.7384
  1862. latitude: 13.3736
  1863. altitude: 350.3
  1864. Location:
  1865. type: object
  1866. properties:
  1867. longitude:
  1868. type: number
  1869. format: float
  1870. latitude:
  1871. type: number
  1872. format: float
  1873. altitude:
  1874. type: number
  1875. format: float
  1876. example:
  1877. longitude: 49.7384
  1878. latitude: 13.3736
  1879. altitude: 350.3
  1880. UnitBasicInfo:
  1881. type: object
  1882. required:
  1883. - unitId
  1884. - name
  1885. x-NavigationLinks:
  1886. Unit@NavigationLink:
  1887. type: string
  1888. format: uri
  1889. x-graph-properties:
  1890. linkTo: unitIdGET
  1891. properties:
  1892. Unit@NavigationLink:
  1893. $ref: '#/components/schemas/UnitBasicInfo/x-NavigationLinks/Unit@NavigationLink'
  1894. unitId:
  1895. description: Identifier of the unit
  1896. type: integer
  1897. format: int64
  1898. name:
  1899. type: string
  1900. description:
  1901. type: string
  1902. example:
  1903. Unit@NavigationLink: "<domain>/units/25"
  1904. unitId: 25
  1905. name: "Mobile Unit"
  1906. description: "Mobile Unit 25"
  1907. UnitDetailInfo:
  1908. type: object
  1909. required:
  1910. - unitId
  1911. - name
  1912. - imei
  1913. x-NavigationLinks:
  1914. self@NavigationLink:
  1915. type: string
  1916. format: uri
  1917. x-graph-properties:
  1918. linkTo: unitIdGET
  1919. Sensors@NavigationLink:
  1920. type: string
  1921. format: uri
  1922. x-graph-properties:
  1923. linkTo: unitIdSensorsGET
  1924. Campaigns@NavigationLink:
  1925. type: string
  1926. format: uri
  1927. x-graph-properties:
  1928. linkTo: unitIdCampaignsGET
  1929. Drivers@NavigationLink:
  1930. type: string
  1931. format: uri
  1932. x-graph-properties:
  1933. linkTo: unitIdDriversGET
  1934. properties:
  1935. self@NavigationLink:
  1936. $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/self@NavigationLink'
  1937. Sensors@NavigationLink:
  1938. $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/Sensors@NavigationLink'
  1939. Campaigns@NavigationLink:
  1940. $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/Campaigns@NavigationLink'
  1941. Drivers@NavigationLink:
  1942. $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/Drivers@NavigationLink'
  1943. unitId:
  1944. description: Identifier of the unit
  1945. type: integer
  1946. format: int64
  1947. name:
  1948. type: string
  1949. imei:
  1950. type: string
  1951. description:
  1952. type: string
  1953. example:
  1954. self@NavigationLink: "<domain>/units/25"
  1955. Sensors@NavigationLink: "<domain>/units/25/sensors"
  1956. Campaigns@NavigationLink: "<domain>/units/25/campaigns"
  1957. Drivers@NavigationLink: "<domain>/units/25/drivers"
  1958. unitId: 25
  1959. name: "Mobile Unit"
  1960. description: "Mobile Unit 25"
  1961. imei: "3434535323345"
  1962. UnitSensorBasicInfo:
  1963. type: object
  1964. required:
  1965. - sensorId
  1966. - name
  1967. x-NavigationLinks:
  1968. Sensor@NavigationLink:
  1969. type: string
  1970. format: uri
  1971. x-graph-properties:
  1972. linkTo: sensorIdGET
  1973. properties:
  1974. Sensor@NavigationLink:
  1975. $ref: '#/components/schemas/UnitSensorBasicInfo/x-NavigationLinks/Sensor@NavigationLink'
  1976. sensorId:
  1977. description: Identifier of the unit
  1978. type: integer
  1979. format: int64
  1980. name:
  1981. type: string
  1982. type:
  1983. type: string
  1984. example:
  1985. Sensor@NavigationLink: "<domain>/sensors/105"
  1986. sensorId: 105
  1987. name: "Sensor 105"
  1988. type: "temperature"
  1989. UnitCampaignBasicInfo:
  1990. type: object
  1991. required:
  1992. - id
  1993. - fromTime
  1994. - toTime
  1995. x-NavigationLinks:
  1996. Campaign@NavigationLink:
  1997. type: string
  1998. format: uri
  1999. x-graph-properties:
  2000. linkTo: campaignIdGET
  2001. properties:
  2002. Campaign@NavigationLink:
  2003. $ref: '#/components/schemas/UnitCampaignBasicInfo/x-NavigationLinks/Campaign@NavigationLink'
  2004. id:
  2005. type: integer
  2006. format: int64
  2007. description: Identifier of the campaign
  2008. description:
  2009. type: string
  2010. description: Description of the campaign
  2011. fromTime:
  2012. type: string
  2013. format: date-time
  2014. description: Time from the unit was active in the campaign
  2015. toTime:
  2016. type: string
  2017. format: date-time
  2018. description: Time until the unit was active in the campaign
  2019. example:
  2020. Campaign@NavigationLink: "<domain>/campaigns/1"
  2021. id: 1
  2022. description: "Campaign 1"
  2023. fromTime: "2023-01-25 15:35:32Z"
  2024. toTime: "2023-03-20 10:35:32Z"
  2025. UnitDriverBasicInfo:
  2026. type: object
  2027. required:
  2028. - id
  2029. - name
  2030. x-NavigationLinks:
  2031. Driver@NavigationLink:
  2032. type: string
  2033. format: uri
  2034. x-graph-properties:
  2035. linkTo: driverIdGET
  2036. properties:
  2037. Driver@NavigationLink:
  2038. $ref: '#/components/schemas/UnitDriverBasicInfo/x-NavigationLinks/Driver@NavigationLink'
  2039. id:
  2040. type: integer
  2041. format: int64
  2042. name:
  2043. type: string
  2044. example:
  2045. Driver@NavigationLink: "<domain>/drivers/42"
  2046. id: 42
  2047. name: "Steve Smith"
  2048. DriverActionUnitBasicInfo:
  2049. type: object
  2050. required:
  2051. - unitId
  2052. - name
  2053. x-NavigationLinks:
  2054. DriverActionUnit@NavigationLink:
  2055. type: string
  2056. format: uri
  2057. x-graph-properties:
  2058. linkTo: driverIdActionIdUnitIdGET
  2059. properties:
  2060. DriverActionUnit@NavigationLink:
  2061. $ref: '#/components/schemas/DriverActionUnitBasicInfo/x-NavigationLinks/DriverActionUnit@NavigationLink'
  2062. unitId:
  2063. description: Identifier of the unit
  2064. type: integer
  2065. format: int64
  2066. name:
  2067. type: string
  2068. description:
  2069. type: string
  2070. example:
  2071. DriverActionUnit@NavigationLink: "<domain>/drivers/42/actions/258/units/25"
  2072. unitId: 25
  2073. name: "Unit name"
  2074. description: "Purpose of the Unit 25"
  2075. DriverActionUnitDetailInfo:
  2076. type: object
  2077. required:
  2078. - unitId
  2079. - name
  2080. - imei
  2081. x-NavigationLinks:
  2082. self@NavigationLink:
  2083. type: string
  2084. format: uri
  2085. x-graph-properties:
  2086. linkTo: driverIdActionIdUnitIdGET
  2087. DriverAction@NavigationLink:
  2088. type: string
  2089. format: uri
  2090. x-graph-properties:
  2091. linkTo: driverIdActionIdGET
  2092. Events@NavigationLink:
  2093. type: string
  2094. format: uri
  2095. x-graph-properties:
  2096. linkTo: driverIdUnitIdActionIdEventsGET
  2097. Unit@NavigationLink:
  2098. type: string
  2099. format: uri
  2100. x-graph-properties:
  2101. linkTo: unitIdGET
  2102. properties:
  2103. self@NavigationLink:
  2104. $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
  2105. DriverAction@NavigationLink:
  2106. $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/DriverAction@NavigationLink'
  2107. Unit@NavigationLink:
  2108. $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
  2109. Events@NavigationLink:
  2110. $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/Events@NavigationLink'
  2111. unitId:
  2112. description: Identifier of the unit
  2113. type: integer
  2114. format: int64
  2115. name:
  2116. type: string
  2117. imei:
  2118. type: string
  2119. description:
  2120. type: string
  2121. example:
  2122. self@NavigationLink: "<domain>/drivers/42/actions/258/units/25"
  2123. DriverAction@NavigationLink: "<domain>/drivers/42/actions/258"
  2124. Events@NavigationLink: "<domain>/drivers/42/units/25/actions/258/events"
  2125. Unit@NavigationLink: "<domain>/units/25"
  2126. unitId: 25
  2127. name: "Mobile Unit"
  2128. description: "Mobile Unit 25"
  2129. imei: "3434535323345"
  2130. SensorBasicInfo:
  2131. type: object
  2132. required:
  2133. - id
  2134. - name
  2135. x-NavigationLinks:
  2136. Sensor@NavigationLink:
  2137. type: string
  2138. format: uri
  2139. x-graph-properties:
  2140. linkTo: sensorIdGET
  2141. properties:
  2142. Sensor@NavigationLink:
  2143. $ref: '#/components/schemas/SensorBasicInfo/x-NavigationLinks/Sensor@NavigationLink'
  2144. id:
  2145. type: integer
  2146. format: int64
  2147. name:
  2148. type: string
  2149. description:
  2150. type: string
  2151. example:
  2152. Sensor@NavigationLink: "<domain>/sensors/105"
  2153. id: 105
  2154. name: "Sensor 105"
  2155. description: "Description of the sensor 105"
  2156. SensorDetailInfo:
  2157. type: object
  2158. required:
  2159. - sensorId
  2160. - ioId
  2161. - name
  2162. - phenomenon
  2163. x-NavigationLinks:
  2164. self@NavigationLink:
  2165. type: string
  2166. format: uri
  2167. x-graph-properties:
  2168. linkTo: sensorIdGET
  2169. Units@NavigationLink:
  2170. type: string
  2171. format: uri
  2172. x-graph-properties:
  2173. linkTo: sensorIdUnitsGET
  2174. Phenomenon@NavigationLink:
  2175. type: string
  2176. format: uri
  2177. x-graph-properties:
  2178. linkTo: phenomenonIdGET
  2179. properties:
  2180. self@NavigationLink:
  2181. $ref: '#/components/schemas/SensorDetailInfo/x-NavigationLinks/self@NavigationLink'
  2182. Units@NavigationLink:
  2183. $ref: '#/components/schemas/SensorDetailInfo/x-NavigationLinks/Units@NavigationLink'
  2184. Phenomenon@NavigationLink:
  2185. $ref: '#/components/schemas/SensorDetailInfo/x-NavigationLinks/Phenomenon@NavigationLink'
  2186. sensorId:
  2187. type: integer
  2188. format: int64
  2189. ioId:
  2190. type: integer
  2191. format: int16
  2192. name:
  2193. type: string
  2194. phenomenon:
  2195. type: string
  2196. type:
  2197. type: string
  2198. description:
  2199. type: string
  2200. example:
  2201. self@NavigationLink: "<domain>/sensors/105"
  2202. Phenomenon@NavigationLink: "<domain>/phenomenons/15"
  2203. Units@NavigationLink: "<domain>/sensors/105/units"
  2204. sensorId: 105
  2205. name: "Sensor 105"
  2206. description: "Description of the sensor 105"
  2207. type: "type of sensor"
  2208. phenomenon: "Temperature"
  2209. SensorUnitBasicInfo:
  2210. type: object
  2211. required:
  2212. - unitId
  2213. - name
  2214. properties:
  2215. Unit@NavigationLink:
  2216. type: string
  2217. format: uri
  2218. unitId:
  2219. description: Identifier of the unit
  2220. type: integer
  2221. format: int64
  2222. name:
  2223. type: string
  2224. description:
  2225. type: string
  2226. example:
  2227. Unit@NavigationLink: "<domain>/units/25"
  2228. unitId: 25
  2229. name: "Mobile Unit"
  2230. description: "Mobile Unit 25"
  2231. PhenomenonBasicInfo:
  2232. type: object
  2233. required:
  2234. - id
  2235. - name
  2236. x-NavigationLinks:
  2237. Phenomenon@NavigationLink:
  2238. type: string
  2239. format: uri
  2240. x-graph-properties:
  2241. linkTo: phenomenonIdGET
  2242. properties:
  2243. Phenomenon@NavigationLink:
  2244. $ref: '#/components/schemas/PhenomenonBasicInfo/x-NavigationLinks/Phenomenon@NavigationLink'
  2245. id:
  2246. type: integer
  2247. format: int64
  2248. name:
  2249. type: string
  2250. example:
  2251. Phenomenon@NavigationLink: "<domain>/phenomenons/15"
  2252. id: 15
  2253. name: "Temperature"
  2254. PhenomenonDetailInfo:
  2255. type: object
  2256. required:
  2257. - id
  2258. - name
  2259. - uom
  2260. x-NavigationLinks:
  2261. self@NavigationLink:
  2262. type: string
  2263. format: uri
  2264. x-graph-properties:
  2265. linkTo: phenomenonIdGET
  2266. Sensors@NavigationLink:
  2267. type: string
  2268. format: uri
  2269. x-graph-properties:
  2270. linkTo: phenomenonIdSensorsGET
  2271. properties:
  2272. self@NavigationLink:
  2273. $ref: '#/components/schemas/PhenomenonDetailInfo/x-NavigationLinks/self@NavigationLink'
  2274. Sensors@NavigationLink:
  2275. $ref: '#/components/schemas/PhenomenonDetailInfo/x-NavigationLinks/Sensors@NavigationLink'
  2276. id:
  2277. type: integer
  2278. format: int64
  2279. name:
  2280. type: string
  2281. uom:
  2282. type: string
  2283. maxLength: 30
  2284. uomLink:
  2285. type: string
  2286. format: uri
  2287. example:
  2288. self@NavigationLink: "<domain>/phenomenons/15"
  2289. Sensors@NavigationLink: "<domain>/phenomenons/15/sensors"
  2290. id: 15
  2291. name: "Temperature"
  2292. uom: "uom"
  2293. uomLink: "uom link"
  2294. PhenomenonSensorBasicInfo:
  2295. type: object
  2296. required:
  2297. - Phenomenon@NavigationLink
  2298. - Sensor@NavigationLink
  2299. - sensorId
  2300. - name
  2301. x-NavigationLinks:
  2302. Phenomenon@NavigationLink:
  2303. type: string
  2304. format: uri
  2305. x-graph-properties:
  2306. linkTo: phenomenonIdGET
  2307. Sensor@NavigationLink:
  2308. type: string
  2309. format: uri
  2310. x-graph-properties:
  2311. linkTo: sensorIdGET
  2312. properties:
  2313. Phenomenon@NavigationLink:
  2314. $ref: '#/components/schemas/PhenomenonSensorBasicInfo/x-NavigationLinks/Phenomenon@NavigationLink'
  2315. Sensor@NavigationLink:
  2316. $ref: '#/components/schemas/PhenomenonSensorBasicInfo/x-NavigationLinks/Sensor@NavigationLink'
  2317. sensorId:
  2318. type: integer
  2319. format: int64
  2320. name:
  2321. type: string
  2322. description:
  2323. type: string
  2324. example:
  2325. Phenomenon@NavigationLink: "<domain>/phenomenons/15"
  2326. Sensor@NavigationLink: "<domain>/sensors/105"
  2327. sensorId: 105
  2328. name: "Sensor 105"
  2329. description: "Description of Sensor 105"
  2330. DriverBasicInfo:
  2331. type: object
  2332. required:
  2333. - id
  2334. - name
  2335. x-NavigationLinks:
  2336. Driver@NavigationLink:
  2337. type: string
  2338. format: uri
  2339. x-graph-properties:
  2340. linkTo: driverIdGET
  2341. properties:
  2342. Driver@NavigationLink:
  2343. $ref: '#/components/schemas/DriverBasicInfo/x-NavigationLinks/Driver@NavigationLink'
  2344. id:
  2345. type: integer
  2346. format: int64
  2347. name:
  2348. type: string
  2349. example:
  2350. Driver@NavigationLink: "<domain>/drivers/42"
  2351. id: 42
  2352. name: "Steve Smith"
  2353. DriverDetailInfo:
  2354. type: object
  2355. required:
  2356. - id
  2357. - name
  2358. x-NavigationLinks:
  2359. self@NavigationLink:
  2360. type: string
  2361. format: uri
  2362. x-graph-properties:
  2363. linkTo: driverIdGET
  2364. Units@NavigationLink:
  2365. type: string
  2366. format: uri
  2367. x-graph-properties:
  2368. linkTo: driverIdUnitsGET
  2369. Actions@NavigationLink:
  2370. type: string
  2371. format: uri
  2372. x-graph-properties:
  2373. linkTo: driverIdActionsGET
  2374. properties:
  2375. self@NavigationLink:
  2376. $ref: '#/components/schemas/DriverDetailInfo/x-NavigationLinks/self@NavigationLink'
  2377. Units@NavigationLink:
  2378. $ref: '#/components/schemas/DriverDetailInfo/x-NavigationLinks/Units@NavigationLink'
  2379. Actions@NavigationLink:
  2380. $ref: '#/components/schemas/DriverDetailInfo/x-NavigationLinks/Actions@NavigationLink'
  2381. id:
  2382. type: integer
  2383. format: int64
  2384. name:
  2385. type: string
  2386. example:
  2387. self@NavigationLink: "<domain>/drivers/42"
  2388. Units@NavigationLink: "<domain>/drivers/42/units"
  2389. Actions@NavigationLink: "<domain>/drivers/42/actions"
  2390. id: 42
  2391. name: "Steve Smith"
  2392. DriverUnitBasicInfo:
  2393. type: object
  2394. required:
  2395. - unitId
  2396. - name
  2397. x-NavigationLinks:
  2398. DriverUnit@NavigationLink:
  2399. type: string
  2400. format: uri
  2401. x-graph-properties:
  2402. linkTo: driverIdUnitsGET
  2403. properties:
  2404. DriverUnit@NavigationLink:
  2405. $ref: '#/components/schemas/DriverUnitBasicInfo/x-NavigationLinks/DriverUnit@NavigationLink'
  2406. unitId:
  2407. description: Identifier of the unit
  2408. type: integer
  2409. format: int64
  2410. name:
  2411. type: string
  2412. description:
  2413. type: string
  2414. example:
  2415. DriverUnit@NavigationLink: "<domain>/drivers/42/units/25"
  2416. unitId: 25
  2417. name: "Unit name"
  2418. description: "Purpose of the Unit 25"
  2419. DriverUnitDetailInfo:
  2420. type: object
  2421. required:
  2422. - unitId
  2423. - imei
  2424. - name
  2425. x-NavigationLinks:
  2426. self@NavigationLink:
  2427. type: string
  2428. format: uri
  2429. x-graph-properties:
  2430. linkTo: driverIdUnitIdGET
  2431. Unit@NavigationLink:
  2432. type: string
  2433. format: uri
  2434. x-graph-properties:
  2435. linkTo: unitIdGET
  2436. Actions@NavigationLink:
  2437. type: string
  2438. format: uri
  2439. x-graph-properties:
  2440. linkTo: driverIdUnitIdActionsGET
  2441. properties:
  2442. self@NavigationLink:
  2443. $ref: '#/components/schemas/DriverUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
  2444. Unit@NavigationLink:
  2445. $ref: '#/components/schemas/DriverUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
  2446. Actions@NavigationLink:
  2447. $ref: '#/components/schemas/DriverUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
  2448. unitId:
  2449. description: Identifier of the unit
  2450. type: integer
  2451. format: int64
  2452. name:
  2453. type: string
  2454. imei:
  2455. type: string
  2456. description:
  2457. type: string
  2458. example:
  2459. self@NavigationLink: "<domain>/drivers/42/units/25"
  2460. Unit@NavigationLink: "<domain>/units/25"
  2461. Actions@NavigationLink: "<domain>/drivers/42/units/25/actions"
  2462. unitId: 25
  2463. name: "Mobile Unit"
  2464. description: "Mobile Unit 25"
  2465. imei: "3434535323345"
  2466. DriverActionBasicInfo:
  2467. type: object
  2468. required:
  2469. - id
  2470. - name
  2471. x-NavigationLinks:
  2472. DriverAction@NavigationLink:
  2473. type: string
  2474. format: uri
  2475. x-graph-properties:
  2476. linkTo: driverIdActionIdGET
  2477. properties:
  2478. DriverAction@NavigationLink:
  2479. $ref: '#/components/schemas/DriverActionBasicInfo/x-NavigationLinks/DriverAction@NavigationLink'
  2480. id:
  2481. type: integer
  2482. format: int64
  2483. name:
  2484. type: string
  2485. example:
  2486. DriverAction@NavigationLink: "<domain>/drivers/42/actions/258"
  2487. id: 258
  2488. name: "Delivering"
  2489. DriverUnitActionBasicInfo:
  2490. type: object
  2491. required:
  2492. - id
  2493. - name
  2494. x-NavigationLinks:
  2495. DriverUntAction@NavigationLink:
  2496. type: string
  2497. format: uri
  2498. x-graph-properties:
  2499. linkTo: driverIdUnitIdActionIdGET
  2500. properties:
  2501. DriverUntAction@NavigationLink:
  2502. $ref: '#/components/schemas/DriverUnitActionBasicInfo/x-NavigationLinks/DriverUntAction@NavigationLink'
  2503. id:
  2504. type: integer
  2505. format: int64
  2506. name:
  2507. type: string
  2508. example:
  2509. DriverUntAction@NavigationLink: "<domain>/drivers/42/units/{25}/actions/258"
  2510. id: 258
  2511. name: "Delivering"
  2512. DriverActionDetailInfo:
  2513. type: object
  2514. x-NavigationLinks:
  2515. self@NavigationLink:
  2516. type: string
  2517. format: uri
  2518. x-graph-properties:
  2519. linkTo: driverIdActionIdGET
  2520. Driver@NavigationLink:
  2521. type: string
  2522. format: uri
  2523. x-graph-properties:
  2524. linkTo: driverIdGET
  2525. Units@NavigationLink:
  2526. type: string
  2527. format: uri
  2528. x-graph-properties:
  2529. linkTo: driverIdActionIdUnitsGET
  2530. properties:
  2531. self@NavigationLink:
  2532. $ref: '#/components/schemas/DriverActionDetailInfo/x-NavigationLinks/self@NavigationLink'
  2533. Driver@NavigationLink:
  2534. $ref: '#/components/schemas/DriverActionDetailInfo/x-NavigationLinks/Driver@NavigationLink'
  2535. Units@NavigationLink:
  2536. $ref: '#/components/schemas/DriverActionDetailInfo/x-NavigationLinks/Units@NavigationLink'
  2537. id:
  2538. type: integer
  2539. format: int64
  2540. name:
  2541. type: string
  2542. example:
  2543. self@NavigationLink: "<domain>/drivers/42/actions/258"
  2544. Driver@NavigationLink: "<domain>/drivers/42"
  2545. Units@NavigationLink: "<domain>/drivers/42/actions/258/units"
  2546. id: 258
  2547. name: "Delivering"
  2548. DriverUnitActionDetailInfo:
  2549. type: object
  2550. x-NavigationLinks:
  2551. self@NavigationLink:
  2552. type: string
  2553. format: uri
  2554. x-graph-properties:
  2555. linkTo: driverIdUnitIdActionIdGET
  2556. Driver@NavigationLink:
  2557. type: string
  2558. format: uri
  2559. x-graph-properties:
  2560. linkTo: driverIdGET
  2561. DriverUnit@NavigationLink:
  2562. type: string
  2563. format: uri
  2564. x-graph-properties:
  2565. linkTo: driverIdUnitIdGET
  2566. Events@NavigationLink:
  2567. type: string
  2568. format: uri
  2569. x-graph-properties:
  2570. linkTo: driverIdUnitIdActionIdEventsGET
  2571. properties:
  2572. self@NavigationLink:
  2573. $ref: '#/components/schemas/DriverUnitActionDetailInfo/x-NavigationLinks/self@NavigationLink'
  2574. Driver@NavigationLink:
  2575. $ref: '#/components/schemas/DriverUnitActionDetailInfo/x-NavigationLinks/Driver@NavigationLink'
  2576. DriverUnit@NavigationLink:
  2577. $ref: '#/components/schemas/DriverUnitActionDetailInfo/x-NavigationLinks/DriverUnit@NavigationLink'
  2578. Events@NavigationLink:
  2579. $ref: '#/components/schemas/DriverUnitActionDetailInfo/x-NavigationLinks/Events@NavigationLink'
  2580. id:
  2581. type: integer
  2582. format: int64
  2583. name:
  2584. type: string
  2585. example:
  2586. self@NavigationLink: "<domain>/drivers/42/units/25/actions/258"
  2587. Driver@NavigationLink: "<domain>/drivers/42"
  2588. DriverUnit@NavigationLink: "<domain>/drivers/42/units/25"
  2589. Events@NavigationLink: "<domain>/drivers/42/units/25/actions/258/events"
  2590. id: 258
  2591. name: "Delivering"
  2592. EventBasicInfo:
  2593. type: object
  2594. required:
  2595. - id
  2596. - fromTime
  2597. - toTime
  2598. x-NavigationLinks:
  2599. Event@NavigationLink:
  2600. type: string
  2601. format: uri
  2602. x-graph-properties:
  2603. linkTo: driverIdUnitIdActionIdEventIdGET
  2604. properties:
  2605. Event@NavigationLink:
  2606. $ref: '#/components/schemas/EventBasicInfo/x-NavigationLinks/Event@NavigationLink'
  2607. id:
  2608. type: integer
  2609. format: int64
  2610. fromTime:
  2611. description: Time when the event starts
  2612. type: string
  2613. format: date-time
  2614. toTime:
  2615. description: Time when the end ends
  2616. type: string
  2617. format: date-time
  2618. example:
  2619. Event@NavigationLink: "<domain>/drivers/42/units/105/actions/258/events/999"
  2620. id: 999
  2621. fromTime: "2023-01-25 15:35:32Z"
  2622. toTime: "2023-03-20 10:35:32Z"
  2623. EventDetailInfo:
  2624. type: object
  2625. required:
  2626. - id
  2627. - driverId
  2628. - actionId
  2629. - unitId
  2630. - fromTime
  2631. - toTime
  2632. x-NavigationLinks:
  2633. self@NavigationLink:
  2634. type: string
  2635. format: uri
  2636. x-graph-properties:
  2637. linkTo: driverIdUnitIdActionIdEventIdGET
  2638. Driver@NavigationLink:
  2639. type: string
  2640. format: uri
  2641. x-graph-properties:
  2642. linkTo: driverIdGET
  2643. DriverUnit@NavigationLink:
  2644. type: string
  2645. format: uri
  2646. x-graph-properties:
  2647. linkTo: driverIdUnitIdGET
  2648. Action@NavigationLink:
  2649. type: string
  2650. format: uri
  2651. x-graph-properties:
  2652. linkTo: driverIdActionIdGET
  2653. Observations@NavigationLink:
  2654. type: string
  2655. format: uri
  2656. x-graph-properties:
  2657. linkTo: eventIdObservationsGET
  2658. Locations@NavigationLink:
  2659. type: string
  2660. format: uri
  2661. x-graph-properties:
  2662. linkTo: eventIdLocationsGET
  2663. properties:
  2664. self@NavigationLink:
  2665. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/self@NavigationLink'
  2666. Driver@NavigationLink:
  2667. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Driver@NavigationLink'
  2668. DriverUnit@NavigationLink:
  2669. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/DriverUnit@NavigationLink'
  2670. Action@NavigationLink:
  2671. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Action@NavigationLink'
  2672. Observations@NavigationLink:
  2673. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Observations@NavigationLink'
  2674. Locations@NavigationLink:
  2675. $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Locations@NavigationLink'
  2676. id:
  2677. type: integer
  2678. format: int64
  2679. driverId:
  2680. type: integer
  2681. format: int64
  2682. actionId:
  2683. type: integer
  2684. format: int64
  2685. unitId:
  2686. type: integer
  2687. format: int64
  2688. fromTime:
  2689. description: Time when the event starts
  2690. type: string
  2691. format: date-time
  2692. toTime:
  2693. description: Time when the end ends
  2694. type: string
  2695. format: date-time
  2696. example:
  2697. self@NavigationLink: "<domain>/drivers/42/units/105/actions/258/events/999"
  2698. Driver@NavigationLink: "<domain>/drivers/42"
  2699. DriverUnit@NavigationLink: "<domain>/drivers/42/units/105"
  2700. Action@NavigationLink: "<domain>/actions/258"
  2701. Observations@NavigationLink: "<domain>/events/999/observations"
  2702. Locations@NavigationLink: "<domain>/events/999/observations/locations"
  2703. id: 999
  2704. driverId: 42
  2705. actionId: 258
  2706. unitId: 105
  2707. fromTime: "2023-01-25 15:35:32Z"
  2708. toTime: "2023-03-20 10:35:32Z"
  2709. Info:
  2710. required:
  2711. - name
  2712. - version
  2713. - build
  2714. - uptime
  2715. - uptimeMillis
  2716. properties:
  2717. name:
  2718. type: string
  2719. version:
  2720. type: string
  2721. build:
  2722. type: string
  2723. uptimeMillis:
  2724. type: integer
  2725. format: int64
  2726. uptime:
  2727. type: string
  2728. example:
  2729. name: "senslog-telemetry"
  2730. version: "1.1.0"
  2731. build: "123456789"
  2732. uptimeMillis: 1684862333
  2733. uptime: "1:20:00"
  2734. Error:
  2735. required:
  2736. - code
  2737. - message
  2738. properties:
  2739. code:
  2740. type: integer
  2741. format: int32
  2742. message:
  2743. type: string
  2744. example:
  2745. code: 404
  2746. message: "Not Found"