| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845 |
- openapi: "3.0.0"
- info:
- version: 1.0.0
- title: SensLog Telemetry
- servers:
- - url: http://127.0.0.1:8080
- - url: https://theros.wirelessinfo.cz
- paths:
- /info:
- get:
- operationId: infoGET
- summary: Information about running instance
- responses:
- 200:
- description: Instance information
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Info"
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- /campaigns:
- get:
- operationId: campaignsGET
- summary: Publish info about all campaigns
- parameters:
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON array of basic info of each campaign
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/CampaignBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}:
- get:
- operationId: campaignIdGET
- summary: Publish info about a campaign
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON object containing info about a campaign
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CampaignDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}/units:
- get:
- operationId: campaignIdUnitsGET
- summary: Publish info about the campaign's units
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array containing info about campaign's units
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/CampaignUnitBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}/units/observations:
- get:
- operationId: campaignIdUnitsObservationsGET
- summary: Publish info about all data of units merged together within the campaign
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/fromParam'
- - $ref: '#/components/parameters/toParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/offsetParam'
- - $ref: '#/components/parameters/limitParam'
- - $ref: '#/components/parameters/formatParam'
- - $ref: '#/components/parameters/filterParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON containing stream of telemetry data
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CampaignObservation'
- application/geo+json:
- schema:
- $ref: '#/components/schemas/GeoCampaignObservation'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- post:
- operationId: campaignIdUnitsObservationsPOST
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/CampaignDataObservation'
- application/geo+json:
- schema:
- $ref: '#/components/schemas/GeoCampaignObservation'
- responses:
- 200:
- description: JSON
- content:
- application/json:
- schema:
- type: object
- properties:
- saved:
- type: integer
- minimum: 0
- errors:
- type: integer
- minimum: 0
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}/units/observations/locations:
- get:
- operationId: campaignIdUnitsObservationsLocationsGET
- summary: Publish info about all data of units merged together within the campaign
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/limitPerUnitParam'
- - $ref: '#/components/parameters/fromParam'
- - $ref: '#/components/parameters/toParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/sortParam'
- - $ref: '#/components/parameters/formatParam'
- - $ref: '#/components/parameters/filterParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON containing stream of telemetry data
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CampaignUnitsLocations'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}/units/{unitId}:
- get:
- operationId: campaignIdUnitIdGET
- summary: Publish info about the unit within its campaign's scope
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object containing info about the unit within its campaign' scope
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CampaignUnitDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}/units/{unitId}/observations:
- get:
- operationId: campaignIdUnitIdObservationsGET
- summary: Publish info about all data of the unit within the campaign
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/fromParam'
- - $ref: '#/components/parameters/toParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/offsetParam'
- - $ref: '#/components/parameters/limitParam'
- - $ref: '#/components/parameters/formatParam'
- - $ref: '#/components/parameters/filterParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON containing stream of telemetry data
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CampaignUnitObservation'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}/units/{unitId}/observations/locations:
- get:
- operationId: campaignIdUnitIdLocationsGET
- summary: Publish locations of the unit within the campaign
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/fromParam'
- - $ref: '#/components/parameters/toParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/offsetParam'
- - $ref: '#/components/parameters/limitParam'
- - $ref: '#/components/parameters/filterParam'
- - $ref: '#/components/parameters/formatParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON containing stream of locations
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CampaignUnitLocation'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}/units/{unitId}/sensors:
- get:
- operationId: campaignIdUnitIdSensorsGET
- summary: Publish info about all sensors of the unit within the campaign
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON containing information of sensors assigned to the unit within its campaign
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/CampaignUnitBasicSensor'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}/units/{unitId}/sensors/{sensorId}:
- get:
- operationId: campaignIdUnitIdSensorIdGET
- summary: Publish info about all sensors asociated with the unit and the campaign
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/sensorIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object containing info about the sensor
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CampaignUnitDetailedSensor'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /campaigns/{campaignId}/units/{unitId}/sensors/{sensorId}/observations:
- get:
- operationId: campaignIdUnitIdSensorIdObservationsGET
- summary: Publish info about all data of the unit within the campaign
- parameters:
- - $ref: '#/components/parameters/campaignIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/sensorIdParam'
- - $ref: '#/components/parameters/fromParam'
- - $ref: '#/components/parameters/toParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/offsetParam'
- - $ref: '#/components/parameters/limitParam'
- - $ref: '#/components/parameters/formatParam'
- - $ref: '#/components/parameters/filterParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON containing stream of telemetry data
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/CampaignUnitSensorObservation'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /units:
- get:
- operationId: unitsGET
- summary: Publish info about all units
- parameters:
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON array of basic info of each unit
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/UnitBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /units/{unitId}:
- get:
- operationId: unitIdGET
- summary: Publish info about the unit
- parameters:
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of info of the unit
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/UnitDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /units/{unitId}/sensors:
- get:
- operationId: unitIdSensorsGET
- summary: Publish info about sensors assigned to the unit
- parameters:
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of info of the sensors
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/UnitSensorBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /units/{unitId}/campaigns:
- get:
- operationId: unitIdCampaignsGET
- summary: Publish info about campaigns where the unit was/is assigned
- parameters:
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of info about campaigns
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/UnitCampaignBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /units/{unitId}/drivers:
- get:
- operationId: unitIdDriversGET
- summary: Publish basic info about drivers who performed actions upon the unit
- parameters:
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of drivers
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/UnitDriverBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /sensors:
- get:
- operationId: sensorsGET
- summary: Publish info about all sensors
- parameters:
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of info about sensors
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/SensorBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /sensors/{sensorId}:
- get:
- operationId: sensorIdGET
- summary: Publish info about the sensor
- parameters:
- - $ref: '#/components/parameters/sensorIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of info about the sensor
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/SensorDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /sensors/{sensorId}/units:
- get:
- operationId: sensorIdUnitsGET
- summary: Publish info about units to whom the sensor is assigned
- parameters:
- - $ref: '#/components/parameters/sensorIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of info about the units
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/SensorUnitBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /phenomenons:
- get:
- operationId: phenomenonsGET
- summary: Publish info about all phenomenons
- parameters:
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of info about phenomenons
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/PhenomenonBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /phenomenons/{phenomenonId}:
- get:
- operationId: phenomenonIdGET
- summary: Publish info about the phenomenon
- parameters:
- - $ref: '#/components/parameters/phenomenonIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of info about the phenomenon
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PhenomenonDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /phenomenons/{phenomenonId}/sensors:
- get:
- operationId: phenomenonIdSensorsGET
- summary: Publish info about sensors of the phenomenon
- parameters:
- - $ref: '#/components/parameters/phenomenonIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of info about sensors
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/PhenomenonSensorBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers:
- get:
- operationId: driversGET
- summary: Publish basic info about all drivers
- parameters:
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of basic info about drivers
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/DriverBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}:
- get:
- operationId: driverIdGET
- summary: Publish detailed info about the driver
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of detailed info about the driver
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DriverDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}/units:
- get:
- operationId: driverIdUnitsGET
- summary: Publish basic info about driver's units
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/fromParam'
- - $ref: '#/components/parameters/toParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of basic info about units
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/DriverUnitBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}/units/{unitId}:
- get:
- operationId: driverIdUnitIdGET
- summary: Publish detailed info about driver's unit
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of detailed info about driver's unit
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DriverUnitDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}/units/{unitId}/actions:
- get:
- operationId: driverIdUnitIdActionsGET
- summary: Publish basic info actions performed on the unit by the driver
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of actions
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/DriverUnitActionBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}/actions:
- get:
- operationId: driverIdActionsGET
- summary: Publish basic info about driver's actions
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/fromParam'
- - $ref: '#/components/parameters/toParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of basic info about driver's actions'
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/DriverActionBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}/actions/{actionId}:
- get:
- operationId: driverIdActionIdGET
- summary: Publish detailed info about the driver's action
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/actionIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of detailed info about the driver's action
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DriverActionDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}/actions/{actionId}/units:
- get:
- operationId: driverIdActionIdUnitsGET
- summary: Publish basic info about units on which the driver performed its action
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/actionIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of units
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/DriverActionUnitBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}/actions/{actionId}/units/{unitId}:
- get:
- operationId: driverIdActionIdUnitIdGET
- summary: Publish detail info about the unit on which the driver performed the action
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/actionIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of the unit
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DriverActionUnitDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}/units/{unitId}/actions/{actionId}:
- get:
- operationId: driverIdUnitIdActionIdGET
- summary: Publish detailed info about the action performed on the unit by the driver
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/actionIdParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of the action
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/DriverUnitActionDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /drivers/{driverId}/units/{unitId}/actions/{actionId}/events:
- get:
- operationId: driverIdUnitIdActionIdEventsGET
- summary: Publish basic info about events that where performed on the unit byt the driver with the specific action
- parameters:
- - $ref: '#/components/parameters/driverIdParam'
- - $ref: '#/components/parameters/unitIdParam'
- - $ref: '#/components/parameters/actionIdParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of events
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/EventBasicInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /events/{eventId}:
- get:
- operationId: eventIdGET
- summary: Publish basic info about events that where performed on the unit byt the driver with the specific action
- parameters:
- - $ref: '#/components/parameters/eventIdParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Array of events
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/EventDetailInfo'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /events/{eventId}/observations:
- get:
- operationId: eventIdObservationsGET
- summary: Publish telemetry observations created by the driver while performing specific action on the unit at the time/event
- parameters:
- - $ref: '#/components/parameters/eventIdParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/offsetParam'
- - $ref: '#/components/parameters/limitParam'
- - $ref: '#/components/parameters/formatParam'
- - $ref: '#/components/parameters/filterParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON Object of telemetry observations
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ActionEventObservation'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /events/{eventId}/observations/locations:
- get:
- operationId: eventIdLocationsGET
- summary: Publish locations created by the driver while performing specific action on the unit at the time/event
- parameters:
- - $ref: '#/components/parameters/eventIdParam'
- - $ref: '#/components/parameters/fromParam'
- - $ref: '#/components/parameters/toParam'
- - $ref: '#/components/parameters/zoneParam'
- - $ref: '#/components/parameters/offsetParam'
- - $ref: '#/components/parameters/limitParam'
- - $ref: '#/components/parameters/formatParam'
- - $ref: '#/components/parameters/filterParam'
- - $ref: '#/components/parameters/navigationLinksParam'
- responses:
- 200:
- description: JSON containing stream of locations
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ActionEventLocation'
- default:
- description: unexpected error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- components:
- # securitySchemes:
- # ApiKeyAuth:
- # type: apiKey
- # in: header
- # name: Authorization
- parameters:
- campaignIdParam:
- in: path
- name: campaignId
- schema:
- type: integer
- format: int64
- required: true
- description: Numeric ID of the campaign to get
- unitIdParam:
- in: path
- name: unitId
- schema:
- type: integer
- required: true
- description: Numeric ID of the unit to get
- sensorIdParam:
- in: path
- name: sensorId
- schema:
- type: integer
- required: true
- description: Numeric ID of the sensor to get
- phenomenonIdParam:
- in: path
- name: phenomenonId
- schema:
- type: integer
- format: int64
- required: true
- description: Numeric ID of the phenomenon to get
- driverIdParam:
- in: path
- name: driverId
- schema:
- type: integer
- format: int64
- required: true
- description: Numeric ID of the driver to get
- actionIdParam:
- in: path
- name: actionId
- schema:
- type: integer
- format: int64
- required: true
- description: Numeric ID of the action to get
- eventIdParam:
- in: path
- name: eventId
- schema:
- type: integer
- format: int64
- required: true
- description: Numeric ID of the event to get
- zoneParam:
- in: query
- name: zone
- schema:
- type: string
- default: UTC
- required: false
- examples:
- UTC:
- value: UTC
- GMT:
- value: GMT
- navigationLinksParam:
- in: query
- name: navigationLinks
- schema:
- type: boolean
- default: true
- description: Option to disable @NavigationLinks in a response
- limitParam:
- in: query
- name: limit
- schema:
- type: integer
- format: int64
- required: false
- example: 100
- offsetParam:
- in: query
- name: offset
- schema:
- type: integer
- format: int64
- example: 100
- fromParam:
- in: query
- name: from
- schema:
- type: string
- format: date-time
- required: false
- example: 2017-07-21T17:32:28Z
- toParam:
- in: query
- name: to
- schema:
- type: string
- format: date-time
- required: false
- example: 2017-07-21T17:32:28Z
- limitPerUnitParam:
- in: query
- name: limitPerUnit
- required: true
- schema:
- type: integer
- default: 1
- examples:
- One locations:
- value: 1
- summary: One location of each unit
- sortParam:
- in: query
- name: sort
- schema:
- type: string
- enum: [ asc, desc ]
- default: asc
- examples:
- Descending Order:
- value: desc
- summary: Last location of the units. Last location is combination of sort=desc & limitPerUnit=1
- Ascending Order:
- value: asc
- filterParam:
- in: query
- name: filter
- description: Filter for results following the pattern
- <unit | sensor>(<numeric_float_id | speed | longitude | latitude | altitude>)<lt | le | eq | ne | ge | lt><float_value>, e.g,
- schema:
- type: string
- required: false
- examples:
- Units latitude:
- value: unit(latitude)lt50.1
- summary: Returns all units with its latitude coordination lower than (LT) 50.1
- Units speed:
- value: unit(speed)gt90.0
- summary: Returns all units with its speed greater than 90.0 Km/h
- Sensor ID value:
- value: sensor(105)gt10
- summary: Returns sensors having its value greater than 10
- formatParam:
- in: query
- name: format
- schema:
- type: string
- enum: [json, geojson]
- default: json
- required: false
- schemas:
- CampaignBasicInfo:
- type: object
- required:
- - id
- - fromTime
- - toTime
- x-NavigationLinks:
- Campaign@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdGET
- color: blue
- properties:
- Campaign@NavigationLink:
- $ref: '#/components/schemas/CampaignBasicInfo/x-NavigationLinks/Campaign@NavigationLink'
- id:
- type: integer
- format: int64
- description:
- type: string
- fromTime:
- type: string
- format: date-time
- toTime:
- type: string
- format: date-time
- example:
- Campaign@NavigationLink: "<domain>/campaigns/1"
- id: 1
- description: "Campaign 1"
- fromTime: "2023-01-25 15:35:32Z"
- toTime: "2023-03-20 10:35:32Z"
- CampaignDetailInfo:
- type: object
- required:
- - id
- - fromTime
- - toTime
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdGET
- Observations@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitsObservationsGET
- Locations@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitsObservationsLocationsGET
- Units@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitsGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/self@NavigationLink'
- Observations@NavigationLink:
- $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/Observations@NavigationLink'
- Locations@NavigationLink:
- $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/Locations@NavigationLink'
- Units@NavigationLink:
- $ref: '#/components/schemas/CampaignDetailInfo/x-NavigationLinks/Units@NavigationLink'
- id:
- description: Identifier of the campaign
- type: integer
- format: int64
- description:
- description: Text description of the campaign
- type: string
- fromTime:
- description: Time when the campaign starts
- type: string
- format: date-time
- toTime:
- description: Time when the campaign ends
- type: string
- format: date-time
- example:
- self@NavigationLink: "<domain>/campaigns/1"
- Observations@NavigationLink: "<domain>/campaigns/1/units/observations"
- Locations@NavigationLink: "<domain>/campaigns/1/units/observations/locations"
- Units@NavigationLink: "<domain>/campaigns/1/units"
- id: 1
- description: "Campaign example"
- fromTime: "2023-01-25 15:35:32Z"
- toTime: "2023-03-20 10:35:32Z"
- CampaignUnitBasicInfo:
- type: object
- required:
- - unitId
- - name
- - fromTime
- - toTime
- x-NavigationLinks:
- Unit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: unitIdGET
- CampaignUnit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdGET
- properties:
- Unit@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitBasicInfo/x-NavigationLinks/Unit@NavigationLink'
- CampaignUnit@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitBasicInfo/x-NavigationLinks/CampaignUnit@NavigationLink'
- unitId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- description:
- type: string
- fromTime:
- description: Time when the validity of the unit starts within the campaign
- type: string
- format: date-time
- toTime:
- description: Time when the validity of the unit ends within the campaign
- type: string
- format: date-time
- example:
- Unit@NavigationLink: "<domain>/units/25"
- CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
- unitId: 25
- name: "Unit name"
- description: "Purpose of the Unit 25"
- fromTime: "2023-01-25 15:35:32Z"
- toTime: "2023-03-20 10:35:32Z"
- CampaignUnitDetailInfo:
- type: object
- required:
- - unitId
- - imei
- - fromTime
- - toTime
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdGET
- Unit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: unitIdGET
- Campaign@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdGET
- Sensors@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdSensorsGET
- Observations@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdObservationsGET
- Locations@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdLocationsGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
- Unit@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
- Campaign@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Campaign@NavigationLink'
- Sensors@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Sensors@NavigationLink'
- Observations@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Observations@NavigationLink'
- Locations@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailInfo/x-NavigationLinks/Locations@NavigationLink'
- unitId:
- description: Identifier of the unit
- type: integer
- format: int64
- imei:
- type: string
- description:
- type: string
- fromTime:
- description: Time when the validity of the unit starts within the campaign
- type: string
- format: date-time
- toTime:
- description: Time when the validity of the unit ends within the campaign
- type: string
- format: date-time
- example:
- self@NavigationLink: "<domain>/campaigns/1/units/25"
- Unit@NavigationLink: "<domain>/units/25"
- Campaign@NavigationLink: "<domain>/campaigns/1"
- Sensors@NavigationLink: "<domain>/campaigns/1/units/25/sensors"
- Observations@NavigationLink: "<domain>/campaigns/1/units/25/observations"
- Locations@NavigationLink: "<domain>/campaigns/1/units/25/observations/locations"
- unitId: 25
- imei: "3434533453"
- description: "Purpose of the Unit 25"
- fromTime: "2023-01-25 15:35:32Z"
- toTime: "2023-03-20 10:35:32Z"
- CampaignUnitBasicSensor:
- type: object
- required:
- - sensorId
- - name
- - type
- x-NavigationLinks:
- CampaignSensor@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdSensorIdGET
- properties:
- CampaignSensor@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitBasicSensor/x-NavigationLinks/CampaignSensor@NavigationLink'
- sensorId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- type:
- type: string
- example:
- CampaignSensor@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
- sensorId: 105
- name: "Sensor 105"
- type: "X"
- CampaignUnitDetailedSensor:
- type: object
- required:
- - sensorId
- - name
- - phenomenon
- - type
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdSensorIdGET
- Sensor@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: sensorIdGET
- CampaignUnit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdGET
- Phenomenon@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: phenomenonIdGET
- Observations@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdSensorIdObservationsGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/self@NavigationLink'
- Sensor@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/Sensor@NavigationLink'
- CampaignUnit@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/CampaignUnit@NavigationLink'
- Phenomenon@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/Phenomenon@NavigationLink'
- Observations@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitDetailedSensor/x-NavigationLinks/Observations@NavigationLink'
- sensorId:
- type: integer
- format: int64
- name:
- type: string
- phenomenon:
- type: string
- type:
- type: string
- description:
- type: string
- example:
- self@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
- Sensor@NavigationLink: "<domain>/sensors/105"
- CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
- Phenomenon@NavigationLink: "<domain>/phenomenons/15"
- Observations@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105/observations"
- sensorId: 105
- name: "Sensor 105"
- description: "Description of the sensor 105"
- type: "type of sensor"
- phenomenon: "Temperature"
- CampaignObservation:
- type: object
- required:
- - params
- - hasNext
- - size
- - offset
- - data
- x-NavigationLinks:
- Campaign@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdGET
- next@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitsObservationsGET
- properties:
- Campaign@NavigationLink:
- $ref: '#/components/schemas/CampaignObservation/x-NavigationLinks/Campaign@NavigationLink'
- next@NavigationLink:
- $ref: '#/components/schemas/CampaignObservation/x-NavigationLinks/next@NavigationLink'
- params:
- type: object
- description: Used params in URL
- hasNext:
- type: boolean
- size:
- type: integer
- offset:
- type: integer
- data:
- type: array
- items:
- $ref: '#/components/schemas/CampaignDataObservation'
- example:
- Campaign@NavigationLink: "<domain>/campaigns/1"
- next@NavigationLink: "<domain>/campaigns/1/observations?offset=500"
- size: 500
- offset: 0
- data: []
- GeoCampaignObservation:
- type: object
- required:
- - type
- - features
- properties:
- type:
- type: string
- enum:
- - FeatureCollection
- metadata:
- type: object
- features:
- type: array
- minLength: 1
- items:
- $ref: '#/components/schemas/GeoFeatureCampaign'
- GeoFeatureCampaign:
- type: object
- required:
- - type
- - geometry
- - properties
- properties:
- type:
- type: string
- enum:
- - Feature
- geometry:
- $ref: '#/components/schemas/GeoPoint'
- properties:
- type: object
- required:
- - unitId
- - timestamp
- - speed
- properties:
- unitId:
- type: integer
- format: int64
- timestamp:
- type: string
- format: date-time
- speed:
- type: integer
- format: int64
- observations:
- type: object
- GeoPoint:
- type: object
- properties:
- type:
- type: string
- enum:
- - Point
- coordinates:
- type: array
- items:
- type: number
- format: float
- minLength: 3
- maxLength: 3
- description: "[lon, lat, alt]"
- CampaignUnitObservation:
- type: object
- required:
- - params
- - hasNext
- - size
- - offset
- - data
- x-NavigationLinks:
- CampaignUnit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdGET
- next@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdObservationsGET
- properties:
- CampaignUnit@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitObservation/x-NavigationLinks/CampaignUnit@NavigationLink'
- next@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitObservation/x-NavigationLinks/next@NavigationLink'
- params:
- type: object
- description: Used params in URL
- hasNext:
- type: boolean
- size:
- type: integer
- offset:
- type: integer
- data:
- type: array
- items:
- $ref: '#/components/schemas/UnitDataObservation'
- example:
- CampaignUnit@NavigationLink: "<domain>/campaigns/1/units/25"
- next@NavigationLink: "<domain>/campaigns/1/units/25/observations?offset=500"
- params: []
- size: 500
- hasNext: true
- offset: 0
- data: []
- CampaignUnitSensorObservation:
- type: object
- required:
- - params
- - size
- - offset
- - hasNext
- - data
- x-NavigationLinks:
- CampaignSensor@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdSensorIdGET
- next@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdSensorIdObservationsGET
- properties:
- CampaignSensor@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitSensorObservation/x-NavigationLinks/CampaignSensor@NavigationLink'
- next@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitSensorObservation/x-NavigationLinks/next@NavigationLink'
- params:
- type: object
- description: Used params in URL
- size:
- type: integer
- offset:
- type: integer
- hasNext:
- type: boolean
- data:
- type: array
- items:
- $ref: '#/components/schemas/SensorDataObservation'
- example:
- CampaignSensor@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105"
- next@NavigationLink: "<domain>/campaigns/1/units/25/sensors/105/observations?offset=500"
- size: 500
- offset: 0
- data: []
- ActionEventObservation:
- type: object
- required:
- - params
- - hasNext
- - size
- - offset
- - data
- x-NavigationLinks:
- Event@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: eventIdGET
- next@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: eventIdObservationsGET
- properties:
- Event@NavigationLink:
- $ref: '#/components/schemas/ActionEventObservation/x-NavigationLinks/Event@NavigationLink'
- next@NavigationLink:
- $ref: '#/components/schemas/ActionEventObservation/x-NavigationLinks/next@NavigationLink'
- params:
- type: object
- description: Used params in URL
- hasNext:
- type: boolean
- size:
- type: integer
- offset:
- type: integer
- data:
- type: array
- items:
- $ref: '#/components/schemas/UnitDataObservation'
- example:
- Event@NavigationLink: "<domain>/events/999"
- next@NavigationLink: "<domain>/events/999/observations?offset=500"
- params: []
- size: 500
- hasNext: true
- offset: 0
- data: []
- CampaignDataObservation:
- type: object
- required:
- - unitId
- - timestamp
- - speed
- - location
- - observedValues
- properties:
- unitId:
- type: integer
- format: int64
- timestamp:
- type: string
- format: date-time
- speed:
- type: integer
- format: int64
- location:
- $ref: '#/components/schemas/Location'
- observedValues:
- type: object
- example:
- unitId: 25
- timestamp: "2023-01-25 15:35:32Z"
- location:
- longitude: 49.7384
- latitude: 13.3736
- altitude: 350.3
- observedValues:
- 105: 1434
- UnitDataObservation:
- type: object
- required:
- - timestamp
- - speed
- - location
- - observedValues
- properties:
- timestamp:
- type: string
- format: date-time
- speed:
- type: integer
- format: int64
- location:
- $ref: '#/components/schemas/Location'
- observedValues:
- type: object
- example:
- timestamp: "2023-01-25 15:35:32Z"
- speed: 34
- location:
- longitude: 49.7384
- latitude: 13.3736
- altitude: 350.3
- observedValues:
- 105: 1434
- SensorDataObservation:
- type: object
- required:
- - timestamp
- - value
- - speed
- - location
- properties:
- timestamp:
- type: string
- format: date-time
- observed_value:
- type: integer
- format: int64
- speed:
- type: integer
- format: int64
- location:
- $ref: '#/components/schemas/Location'
- example:
- timestamp: "2023-01-25 15:35:32Z"
- observed_value: 1434
- speed: 34
- location:
- longitude: 49.7384
- latitude: 13.3736
- altitude: 350.3
- CampaignUnitLocation:
- type: object
- required:
- - params
- - hasNext
- - size
- - offset
- - data
- x-NavigationLinks:
- Campaign@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdGET
- Unit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdGET
- next@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdUnitIdLocationsGET
- properties:
- Campaign@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitLocation/x-NavigationLinks/Campaign@NavigationLink'
- Unit@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitLocation/x-NavigationLinks/Unit@NavigationLink'
- next@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitLocation/x-NavigationLinks/next@NavigationLink'
- params:
- type: object
- description: Used params in URL
- hasNext:
- type: boolean
- size:
- type: integer
- offset:
- type: integer
- data:
- type: array
- items:
- type: object
- properties:
- timestamp:
- type: string
- format: date-time
- location:
- $ref: '#/components/schemas/Location'
- example:
- Campaign@NavigationLink: "<domain>/campaigns/1"
- Unit@NavigationLink: "<domain>/campaigns/1/units/25"
- next@NavigationLink: "<domain>/campaigns/1/units/25/observations/locations?offset=500"
- params:
- offset: 0
- limit: 500
- navigationLinks: true
- size: 500
- hasNext: true
- offset: 0
- data:
- - timestamp: "2023-01-25 15:35:32Z"
- location:
- longitude: 49.7384
- latitude: 13.3736
- altitude: 350.3
- CampaignUnitsLocations:
- type: object
- required:
- - size
- - data
- x-NavigationLinks:
- Campaign@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdGET
- properties:
- Campaign@NavigationLink:
- $ref: '#/components/schemas/CampaignUnitsLocations/x-NavigationLinks/Campaign@NavigationLink'
- params:
- type: object
- description: Used params in URL
- size:
- type: integer
- data:
- type: array
- items:
- type: object
- required:
- - unitId
- - timestamp
- - location
- properties:
- unitId:
- type: integer
- format: int64
- timestamp:
- type: string
- format: date-time
- location:
- $ref: '#/components/schemas/Location'
- example:
- Campaign@NavigationLink: "<domain>/campaigns/1"
- params:
- from: "2023-01-25 15:35:32Z"
- to: "2023-01-25 15:35:32Z"
- navigationLinks: true
- size: 8
- data:
- - unitId: 25
- timestamp: "2023-01-25 15:35:32Z"
- location:
- longitude: 49.7384
- latitude: 13.3736
- altitude: 350.3
- ActionEventLocation:
- type: object
- required:
- - params
- - hasNext
- - size
- - offset
- - data
- x-NavigationLinks:
- Event@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: eventIdGET
- next@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: eventIdLocationsGET
- properties:
- Event@NavigationLink:
- $ref: '#/components/schemas/ActionEventLocation/x-NavigationLinks/Event@NavigationLink'
- next@NavigationLink:
- $ref: '#/components/schemas/ActionEventLocation/x-NavigationLinks/next@NavigationLink'
- params:
- type: object
- description: Used params in URL
- hasNext:
- type: boolean
- size:
- type: integer
- offset:
- type: integer
- data:
- type: array
- items:
- type: object
- properties:
- timestamp:
- type: string
- format: date-time
- location:
- $ref: '#/components/schemas/Location'
- example:
- Event@NavigationLink: "<domain>/events/999"
- next@NavigationLink: "<domain>/events/999/observations/locations?offset=500"
- params:
- offset: 0
- limit: 500
- navigationLinks: true
- size: 500
- hasNext: true
- offset: 0
- data:
- - timestamp: "2023-01-25 15:35:32Z"
- location:
- longitude: 49.7384
- latitude: 13.3736
- altitude: 350.3
- Location:
- type: object
- properties:
- longitude:
- type: number
- format: float
- latitude:
- type: number
- format: float
- altitude:
- type: number
- format: float
- example:
- longitude: 49.7384
- latitude: 13.3736
- altitude: 350.3
- UnitBasicInfo:
- type: object
- required:
- - unitId
- - name
- x-NavigationLinks:
- Unit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: unitIdGET
- properties:
- Unit@NavigationLink:
- $ref: '#/components/schemas/UnitBasicInfo/x-NavigationLinks/Unit@NavigationLink'
- unitId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- description:
- type: string
- example:
- Unit@NavigationLink: "<domain>/units/25"
- unitId: 25
- name: "Mobile Unit"
- description: "Mobile Unit 25"
- UnitDetailInfo:
- type: object
- required:
- - unitId
- - name
- - imei
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: unitIdGET
- Sensors@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: unitIdSensorsGET
- Campaigns@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: unitIdCampaignsGET
- Drivers@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: unitIdDriversGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/self@NavigationLink'
- Sensors@NavigationLink:
- $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/Sensors@NavigationLink'
- Campaigns@NavigationLink:
- $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/Campaigns@NavigationLink'
- Drivers@NavigationLink:
- $ref: '#/components/schemas/UnitDetailInfo/x-NavigationLinks/Drivers@NavigationLink'
- unitId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- imei:
- type: string
- description:
- type: string
- example:
- self@NavigationLink: "<domain>/units/25"
- Sensors@NavigationLink: "<domain>/units/25/sensors"
- Campaigns@NavigationLink: "<domain>/units/25/campaigns"
- Drivers@NavigationLink: "<domain>/units/25/drivers"
- unitId: 25
- name: "Mobile Unit"
- description: "Mobile Unit 25"
- imei: "3434535323345"
- UnitSensorBasicInfo:
- type: object
- required:
- - sensorId
- - name
- x-NavigationLinks:
- Sensor@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: sensorIdGET
- properties:
- Sensor@NavigationLink:
- $ref: '#/components/schemas/UnitSensorBasicInfo/x-NavigationLinks/Sensor@NavigationLink'
- sensorId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- type:
- type: string
- example:
- Sensor@NavigationLink: "<domain>/sensors/105"
- sensorId: 105
- name: "Sensor 105"
- type: "temperature"
- UnitCampaignBasicInfo:
- type: object
- required:
- - id
- - fromTime
- - toTime
- x-NavigationLinks:
- Campaign@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: campaignIdGET
- properties:
- Campaign@NavigationLink:
- $ref: '#/components/schemas/UnitCampaignBasicInfo/x-NavigationLinks/Campaign@NavigationLink'
- id:
- type: integer
- format: int64
- description: Identifier of the campaign
- description:
- type: string
- description: Description of the campaign
- fromTime:
- type: string
- format: date-time
- description: Time from the unit was active in the campaign
- toTime:
- type: string
- format: date-time
- description: Time until the unit was active in the campaign
- example:
- Campaign@NavigationLink: "<domain>/campaigns/1"
- id: 1
- description: "Campaign 1"
- fromTime: "2023-01-25 15:35:32Z"
- toTime: "2023-03-20 10:35:32Z"
- UnitDriverBasicInfo:
- type: object
- required:
- - id
- - name
- x-NavigationLinks:
- Driver@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdGET
- properties:
- Driver@NavigationLink:
- $ref: '#/components/schemas/UnitDriverBasicInfo/x-NavigationLinks/Driver@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- example:
- Driver@NavigationLink: "<domain>/drivers/42"
- id: 42
- name: "Steve Smith"
- DriverActionUnitBasicInfo:
- type: object
- required:
- - unitId
- - name
- x-NavigationLinks:
- DriverActionUnit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdActionIdUnitIdGET
- properties:
- DriverActionUnit@NavigationLink:
- $ref: '#/components/schemas/DriverActionUnitBasicInfo/x-NavigationLinks/DriverActionUnit@NavigationLink'
- unitId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- description:
- type: string
- example:
- DriverActionUnit@NavigationLink: "<domain>/drivers/42/actions/258/units/25"
- unitId: 25
- name: "Unit name"
- description: "Purpose of the Unit 25"
- DriverActionUnitDetailInfo:
- type: object
- required:
- - unitId
- - name
- - imei
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdActionIdUnitIdGET
- DriverAction@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdActionIdGET
- Events@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdActionIdEventsGET
- Unit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: unitIdGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
- DriverAction@NavigationLink:
- $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/DriverAction@NavigationLink'
- Unit@NavigationLink:
- $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
- Events@NavigationLink:
- $ref: '#/components/schemas/DriverActionUnitDetailInfo/x-NavigationLinks/Events@NavigationLink'
- unitId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- imei:
- type: string
- description:
- type: string
- example:
- self@NavigationLink: "<domain>/drivers/42/actions/258/units/25"
- DriverAction@NavigationLink: "<domain>/drivers/42/actions/258"
- Events@NavigationLink: "<domain>/drivers/42/units/25/actions/258/events"
- Unit@NavigationLink: "<domain>/units/25"
- unitId: 25
- name: "Mobile Unit"
- description: "Mobile Unit 25"
- imei: "3434535323345"
- SensorBasicInfo:
- type: object
- required:
- - id
- - name
- x-NavigationLinks:
- Sensor@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: sensorIdGET
- properties:
- Sensor@NavigationLink:
- $ref: '#/components/schemas/SensorBasicInfo/x-NavigationLinks/Sensor@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- description:
- type: string
- example:
- Sensor@NavigationLink: "<domain>/sensors/105"
- id: 105
- name: "Sensor 105"
- description: "Description of the sensor 105"
- SensorDetailInfo:
- type: object
- required:
- - sensorId
- - ioId
- - name
- - phenomenon
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: sensorIdGET
- Units@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: sensorIdUnitsGET
- Phenomenon@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: phenomenonIdGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/SensorDetailInfo/x-NavigationLinks/self@NavigationLink'
- Units@NavigationLink:
- $ref: '#/components/schemas/SensorDetailInfo/x-NavigationLinks/Units@NavigationLink'
- Phenomenon@NavigationLink:
- $ref: '#/components/schemas/SensorDetailInfo/x-NavigationLinks/Phenomenon@NavigationLink'
- sensorId:
- type: integer
- format: int64
- ioId:
- type: integer
- format: int16
- name:
- type: string
- phenomenon:
- type: string
- type:
- type: string
- description:
- type: string
- example:
- self@NavigationLink: "<domain>/sensors/105"
- Phenomenon@NavigationLink: "<domain>/phenomenons/15"
- Units@NavigationLink: "<domain>/sensors/105/units"
- sensorId: 105
- name: "Sensor 105"
- description: "Description of the sensor 105"
- type: "type of sensor"
- phenomenon: "Temperature"
- SensorUnitBasicInfo:
- type: object
- required:
- - unitId
- - name
- properties:
- Unit@NavigationLink:
- type: string
- format: uri
- unitId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- description:
- type: string
- example:
- Unit@NavigationLink: "<domain>/units/25"
- unitId: 25
- name: "Mobile Unit"
- description: "Mobile Unit 25"
- PhenomenonBasicInfo:
- type: object
- required:
- - id
- - name
- x-NavigationLinks:
- Phenomenon@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: phenomenonIdGET
- properties:
- Phenomenon@NavigationLink:
- $ref: '#/components/schemas/PhenomenonBasicInfo/x-NavigationLinks/Phenomenon@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- example:
- Phenomenon@NavigationLink: "<domain>/phenomenons/15"
- id: 15
- name: "Temperature"
- PhenomenonDetailInfo:
- type: object
- required:
- - id
- - name
- - uom
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: phenomenonIdGET
- Sensors@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: phenomenonIdSensorsGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/PhenomenonDetailInfo/x-NavigationLinks/self@NavigationLink'
- Sensors@NavigationLink:
- $ref: '#/components/schemas/PhenomenonDetailInfo/x-NavigationLinks/Sensors@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- uom:
- type: string
- maxLength: 30
- uomLink:
- type: string
- format: uri
- example:
- self@NavigationLink: "<domain>/phenomenons/15"
- Sensors@NavigationLink: "<domain>/phenomenons/15/sensors"
- id: 15
- name: "Temperature"
- uom: "uom"
- uomLink: "uom link"
- PhenomenonSensorBasicInfo:
- type: object
- required:
- - Phenomenon@NavigationLink
- - Sensor@NavigationLink
- - sensorId
- - name
- x-NavigationLinks:
- Phenomenon@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: phenomenonIdGET
- Sensor@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: sensorIdGET
- properties:
- Phenomenon@NavigationLink:
- $ref: '#/components/schemas/PhenomenonSensorBasicInfo/x-NavigationLinks/Phenomenon@NavigationLink'
- Sensor@NavigationLink:
- $ref: '#/components/schemas/PhenomenonSensorBasicInfo/x-NavigationLinks/Sensor@NavigationLink'
- sensorId:
- type: integer
- format: int64
- name:
- type: string
- description:
- type: string
- example:
- Phenomenon@NavigationLink: "<domain>/phenomenons/15"
- Sensor@NavigationLink: "<domain>/sensors/105"
- sensorId: 105
- name: "Sensor 105"
- description: "Description of Sensor 105"
- DriverBasicInfo:
- type: object
- required:
- - id
- - name
- x-NavigationLinks:
- Driver@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdGET
- properties:
- Driver@NavigationLink:
- $ref: '#/components/schemas/DriverBasicInfo/x-NavigationLinks/Driver@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- example:
- Driver@NavigationLink: "<domain>/drivers/42"
- id: 42
- name: "Steve Smith"
- DriverDetailInfo:
- type: object
- required:
- - id
- - name
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdGET
- Units@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitsGET
- Actions@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdActionsGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/DriverDetailInfo/x-NavigationLinks/self@NavigationLink'
- Units@NavigationLink:
- $ref: '#/components/schemas/DriverDetailInfo/x-NavigationLinks/Units@NavigationLink'
- Actions@NavigationLink:
- $ref: '#/components/schemas/DriverDetailInfo/x-NavigationLinks/Actions@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- example:
- self@NavigationLink: "<domain>/drivers/42"
- Units@NavigationLink: "<domain>/drivers/42/units"
- Actions@NavigationLink: "<domain>/drivers/42/actions"
- id: 42
- name: "Steve Smith"
- DriverUnitBasicInfo:
- type: object
- required:
- - unitId
- - name
- x-NavigationLinks:
- DriverUnit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitsGET
- properties:
- DriverUnit@NavigationLink:
- $ref: '#/components/schemas/DriverUnitBasicInfo/x-NavigationLinks/DriverUnit@NavigationLink'
- unitId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- description:
- type: string
- example:
- DriverUnit@NavigationLink: "<domain>/drivers/42/units/25"
- unitId: 25
- name: "Unit name"
- description: "Purpose of the Unit 25"
- DriverUnitDetailInfo:
- type: object
- required:
- - unitId
- - imei
- - name
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdGET
- Unit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: unitIdGET
- Actions@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdActionsGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/DriverUnitDetailInfo/x-NavigationLinks/self@NavigationLink'
- Unit@NavigationLink:
- $ref: '#/components/schemas/DriverUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
- Actions@NavigationLink:
- $ref: '#/components/schemas/DriverUnitDetailInfo/x-NavigationLinks/Unit@NavigationLink'
- unitId:
- description: Identifier of the unit
- type: integer
- format: int64
- name:
- type: string
- imei:
- type: string
- description:
- type: string
- example:
- self@NavigationLink: "<domain>/drivers/42/units/25"
- Unit@NavigationLink: "<domain>/units/25"
- Actions@NavigationLink: "<domain>/drivers/42/units/25/actions"
- unitId: 25
- name: "Mobile Unit"
- description: "Mobile Unit 25"
- imei: "3434535323345"
- DriverActionBasicInfo:
- type: object
- required:
- - id
- - name
- x-NavigationLinks:
- DriverAction@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdActionIdGET
- properties:
- DriverAction@NavigationLink:
- $ref: '#/components/schemas/DriverActionBasicInfo/x-NavigationLinks/DriverAction@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- example:
- DriverAction@NavigationLink: "<domain>/drivers/42/actions/258"
- id: 258
- name: "Delivering"
- DriverUnitActionBasicInfo:
- type: object
- required:
- - id
- - name
- x-NavigationLinks:
- DriverUntAction@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdActionIdGET
- properties:
- DriverUntAction@NavigationLink:
- $ref: '#/components/schemas/DriverUnitActionBasicInfo/x-NavigationLinks/DriverUntAction@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- example:
- DriverUntAction@NavigationLink: "<domain>/drivers/42/units/{25}/actions/258"
- id: 258
- name: "Delivering"
- DriverActionDetailInfo:
- type: object
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdActionIdGET
- Driver@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdGET
- Units@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdActionIdUnitsGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/DriverActionDetailInfo/x-NavigationLinks/self@NavigationLink'
- Driver@NavigationLink:
- $ref: '#/components/schemas/DriverActionDetailInfo/x-NavigationLinks/Driver@NavigationLink'
- Units@NavigationLink:
- $ref: '#/components/schemas/DriverActionDetailInfo/x-NavigationLinks/Units@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- example:
- self@NavigationLink: "<domain>/drivers/42/actions/258"
- Driver@NavigationLink: "<domain>/drivers/42"
- Units@NavigationLink: "<domain>/drivers/42/actions/258/units"
- id: 258
- name: "Delivering"
- DriverUnitActionDetailInfo:
- type: object
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdActionIdGET
- Driver@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdGET
- DriverUnit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdGET
- Events@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdActionIdEventsGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/DriverUnitActionDetailInfo/x-NavigationLinks/self@NavigationLink'
- Driver@NavigationLink:
- $ref: '#/components/schemas/DriverUnitActionDetailInfo/x-NavigationLinks/Driver@NavigationLink'
- DriverUnit@NavigationLink:
- $ref: '#/components/schemas/DriverUnitActionDetailInfo/x-NavigationLinks/DriverUnit@NavigationLink'
- Events@NavigationLink:
- $ref: '#/components/schemas/DriverUnitActionDetailInfo/x-NavigationLinks/Events@NavigationLink'
- id:
- type: integer
- format: int64
- name:
- type: string
- example:
- self@NavigationLink: "<domain>/drivers/42/units/25/actions/258"
- Driver@NavigationLink: "<domain>/drivers/42"
- DriverUnit@NavigationLink: "<domain>/drivers/42/units/25"
- Events@NavigationLink: "<domain>/drivers/42/units/25/actions/258/events"
- id: 258
- name: "Delivering"
- EventBasicInfo:
- type: object
- required:
- - id
- - fromTime
- - toTime
- x-NavigationLinks:
- Event@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdActionIdEventIdGET
- properties:
- Event@NavigationLink:
- $ref: '#/components/schemas/EventBasicInfo/x-NavigationLinks/Event@NavigationLink'
- id:
- type: integer
- format: int64
- fromTime:
- description: Time when the event starts
- type: string
- format: date-time
- toTime:
- description: Time when the end ends
- type: string
- format: date-time
- example:
- Event@NavigationLink: "<domain>/drivers/42/units/105/actions/258/events/999"
- id: 999
- fromTime: "2023-01-25 15:35:32Z"
- toTime: "2023-03-20 10:35:32Z"
- EventDetailInfo:
- type: object
- required:
- - id
- - driverId
- - actionId
- - unitId
- - fromTime
- - toTime
- x-NavigationLinks:
- self@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdActionIdEventIdGET
- Driver@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdGET
- DriverUnit@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdUnitIdGET
- Action@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: driverIdActionIdGET
- Observations@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: eventIdObservationsGET
- Locations@NavigationLink:
- type: string
- format: uri
- x-graph-properties:
- linkTo: eventIdLocationsGET
- properties:
- self@NavigationLink:
- $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/self@NavigationLink'
- Driver@NavigationLink:
- $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Driver@NavigationLink'
- DriverUnit@NavigationLink:
- $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/DriverUnit@NavigationLink'
- Action@NavigationLink:
- $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Action@NavigationLink'
- Observations@NavigationLink:
- $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Observations@NavigationLink'
- Locations@NavigationLink:
- $ref: '#/components/schemas/EventDetailInfo/x-NavigationLinks/Locations@NavigationLink'
- id:
- type: integer
- format: int64
- driverId:
- type: integer
- format: int64
- actionId:
- type: integer
- format: int64
- unitId:
- type: integer
- format: int64
- fromTime:
- description: Time when the event starts
- type: string
- format: date-time
- toTime:
- description: Time when the end ends
- type: string
- format: date-time
- example:
- self@NavigationLink: "<domain>/drivers/42/units/105/actions/258/events/999"
- Driver@NavigationLink: "<domain>/drivers/42"
- DriverUnit@NavigationLink: "<domain>/drivers/42/units/105"
- Action@NavigationLink: "<domain>/actions/258"
- Observations@NavigationLink: "<domain>/events/999/observations"
- Locations@NavigationLink: "<domain>/events/999/observations/locations"
- id: 999
- driverId: 42
- actionId: 258
- unitId: 105
- fromTime: "2023-01-25 15:35:32Z"
- toTime: "2023-03-20 10:35:32Z"
- Info:
- required:
- - name
- - version
- - build
- - uptime
- - uptimeMillis
- properties:
- name:
- type: string
- version:
- type: string
- build:
- type: string
- uptimeMillis:
- type: integer
- format: int64
- uptime:
- type: string
- example:
- name: "senslog-telemetry"
- version: "1.1.0"
- build: "123456789"
- uptimeMillis: 1684862333
- uptime: "1:20:00"
- Error:
- required:
- - code
- - message
- properties:
- code:
- type: integer
- format: int32
- message:
- type: string
- example:
- code: 404
- message: "Not Found"
|