-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
openapi.json
1 lines (1 loc) · 156 KB
/
openapi.json
1
{"swagger":"2.0","info":{"description":"A RESTful API that serves PostgSail data using postgrest.","title":"PostgSail API","version":"12.2.3 (519615d)"},"host":"127.0.0.1:3002","basePath":"/","schemes":["http"],"consumes":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json","text/csv"],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json","text/csv"],"paths":{"/":{"get":{"produces":["application/openapi+json","application/json"],"responses":{"200":{"description":"OK"}},"summary":"OpenAPI description (this document)","tags":["Introspection"]}},"/stays_at":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.stays_at.stay_code"},{"$ref":"#/parameters/rowFilter.stays_at.description"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/stays_at"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Stay Type","tags":["stays_at"]},"post":{"parameters":[{"$ref":"#/parameters/body.stays_at"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Stay Type","tags":["stays_at"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.stays_at.stay_code"},{"$ref":"#/parameters/rowFilter.stays_at.description"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stay Type","tags":["stays_at"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.stays_at.stay_code"},{"$ref":"#/parameters/rowFilter.stays_at.description"},{"$ref":"#/parameters/body.stays_at"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stay Type","tags":["stays_at"]}},"/vessels_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.vessels_view.name"},{"$ref":"#/parameters/rowFilter.vessels_view.mmsi"},{"$ref":"#/parameters/rowFilter.vessels_view.created_at"},{"$ref":"#/parameters/rowFilter.vessels_view.last_contact"},{"$ref":"#/parameters/rowFilter.vessels_view.offline"},{"$ref":"#/parameters/rowFilter.vessels_view.duration"},{"$ref":"#/parameters/rowFilter.vessels_view.last_metrics"},{"$ref":"#/parameters/rowFilter.vessels_view.metrics_offline"},{"$ref":"#/parameters/rowFilter.vessels_view.duration_last_metrics"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/vessels_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Expose vessels listing to web api","tags":["vessels_view"]}},"/stats_moorages_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.stats_moorages_view.home_ports"},{"$ref":"#/parameters/rowFilter.stats_moorages_view.unique_moorages"},{"$ref":"#/parameters/rowFilter.stats_moorages_view.time_spent_at_home_port(s)"},{"$ref":"#/parameters/rowFilter.stats_moorages_view.time_spent_away"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/stats_moorages_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Statistics Moorages web view","tags":["stats_moorages_view"]}},"/eventlogs_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.eventlogs_view.id"},{"$ref":"#/parameters/rowFilter.eventlogs_view.channel"},{"$ref":"#/parameters/rowFilter.eventlogs_view.payload"},{"$ref":"#/parameters/rowFilter.eventlogs_view.ref_id"},{"$ref":"#/parameters/rowFilter.eventlogs_view.stored"},{"$ref":"#/parameters/rowFilter.eventlogs_view.processed"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/eventlogs_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Event logs view","tags":["eventlogs_view"]},"post":{"parameters":[{"$ref":"#/parameters/body.eventlogs_view"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Event logs view","tags":["eventlogs_view"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.eventlogs_view.id"},{"$ref":"#/parameters/rowFilter.eventlogs_view.channel"},{"$ref":"#/parameters/rowFilter.eventlogs_view.payload"},{"$ref":"#/parameters/rowFilter.eventlogs_view.ref_id"},{"$ref":"#/parameters/rowFilter.eventlogs_view.stored"},{"$ref":"#/parameters/rowFilter.eventlogs_view.processed"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Event logs view","tags":["eventlogs_view"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.eventlogs_view.id"},{"$ref":"#/parameters/rowFilter.eventlogs_view.channel"},{"$ref":"#/parameters/rowFilter.eventlogs_view.payload"},{"$ref":"#/parameters/rowFilter.eventlogs_view.ref_id"},{"$ref":"#/parameters/rowFilter.eventlogs_view.stored"},{"$ref":"#/parameters/rowFilter.eventlogs_view.processed"},{"$ref":"#/parameters/body.eventlogs_view"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Event logs view","tags":["eventlogs_view"]}},"/versions_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.versions_view.api_version"},{"$ref":"#/parameters/rowFilter.versions_view.sys_version"},{"$ref":"#/parameters/rowFilter.versions_view.timescaledb"},{"$ref":"#/parameters/rowFilter.versions_view.postgis"},{"$ref":"#/parameters/rowFilter.versions_view.postgrest"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/versions_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Expose as a table view app and system version to API","tags":["versions_view"]},"post":{"parameters":[{"$ref":"#/parameters/body.versions_view"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Expose as a table view app and system version to API","tags":["versions_view"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.versions_view.api_version"},{"$ref":"#/parameters/rowFilter.versions_view.sys_version"},{"$ref":"#/parameters/rowFilter.versions_view.timescaledb"},{"$ref":"#/parameters/rowFilter.versions_view.postgis"},{"$ref":"#/parameters/rowFilter.versions_view.postgrest"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Expose as a table view app and system version to API","tags":["versions_view"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.versions_view.api_version"},{"$ref":"#/parameters/rowFilter.versions_view.sys_version"},{"$ref":"#/parameters/rowFilter.versions_view.timescaledb"},{"$ref":"#/parameters/rowFilter.versions_view.postgis"},{"$ref":"#/parameters/rowFilter.versions_view.postgrest"},{"$ref":"#/parameters/body.versions_view"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Expose as a table view app and system version to API","tags":["versions_view"]}},"/stats_logs_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.stats_logs_view.name"},{"$ref":"#/parameters/rowFilter.stats_logs_view.first"},{"$ref":"#/parameters/rowFilter.stats_logs_view.last"},{"$ref":"#/parameters/rowFilter.stats_logs_view.number_of_log_entries"},{"$ref":"#/parameters/rowFilter.stats_logs_view.max_speed"},{"$ref":"#/parameters/rowFilter.stats_logs_view.max_wind_speed"},{"$ref":"#/parameters/rowFilter.stats_logs_view.total_distance"},{"$ref":"#/parameters/rowFilter.stats_logs_view.total_time_underway"},{"$ref":"#/parameters/rowFilter.stats_logs_view.longest_nonstop_sail"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/stats_logs_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Statistics Logs web view","tags":["stats_logs_view"]}},"/log_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.log_view.id"},{"$ref":"#/parameters/rowFilter.log_view.name"},{"$ref":"#/parameters/rowFilter.log_view.from"},{"$ref":"#/parameters/rowFilter.log_view.started"},{"$ref":"#/parameters/rowFilter.log_view.to"},{"$ref":"#/parameters/rowFilter.log_view.ended"},{"$ref":"#/parameters/rowFilter.log_view.distance"},{"$ref":"#/parameters/rowFilter.log_view.duration"},{"$ref":"#/parameters/rowFilter.log_view.notes"},{"$ref":"#/parameters/rowFilter.log_view.geojson"},{"$ref":"#/parameters/rowFilter.log_view.avg_speed"},{"$ref":"#/parameters/rowFilter.log_view.max_speed"},{"$ref":"#/parameters/rowFilter.log_view.max_wind_speed"},{"$ref":"#/parameters/rowFilter.log_view.extra"},{"$ref":"#/parameters/rowFilter.log_view.from_moorage_id"},{"$ref":"#/parameters/rowFilter.log_view.to_moorage_id"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/log_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Log web view","tags":["log_view"]},"post":{"parameters":[{"$ref":"#/parameters/body.log_view"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Log web view","tags":["log_view"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.log_view.id"},{"$ref":"#/parameters/rowFilter.log_view.name"},{"$ref":"#/parameters/rowFilter.log_view.from"},{"$ref":"#/parameters/rowFilter.log_view.started"},{"$ref":"#/parameters/rowFilter.log_view.to"},{"$ref":"#/parameters/rowFilter.log_view.ended"},{"$ref":"#/parameters/rowFilter.log_view.distance"},{"$ref":"#/parameters/rowFilter.log_view.duration"},{"$ref":"#/parameters/rowFilter.log_view.notes"},{"$ref":"#/parameters/rowFilter.log_view.geojson"},{"$ref":"#/parameters/rowFilter.log_view.avg_speed"},{"$ref":"#/parameters/rowFilter.log_view.max_speed"},{"$ref":"#/parameters/rowFilter.log_view.max_wind_speed"},{"$ref":"#/parameters/rowFilter.log_view.extra"},{"$ref":"#/parameters/rowFilter.log_view.from_moorage_id"},{"$ref":"#/parameters/rowFilter.log_view.to_moorage_id"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Log web view","tags":["log_view"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.log_view.id"},{"$ref":"#/parameters/rowFilter.log_view.name"},{"$ref":"#/parameters/rowFilter.log_view.from"},{"$ref":"#/parameters/rowFilter.log_view.started"},{"$ref":"#/parameters/rowFilter.log_view.to"},{"$ref":"#/parameters/rowFilter.log_view.ended"},{"$ref":"#/parameters/rowFilter.log_view.distance"},{"$ref":"#/parameters/rowFilter.log_view.duration"},{"$ref":"#/parameters/rowFilter.log_view.notes"},{"$ref":"#/parameters/rowFilter.log_view.geojson"},{"$ref":"#/parameters/rowFilter.log_view.avg_speed"},{"$ref":"#/parameters/rowFilter.log_view.max_speed"},{"$ref":"#/parameters/rowFilter.log_view.max_wind_speed"},{"$ref":"#/parameters/rowFilter.log_view.extra"},{"$ref":"#/parameters/rowFilter.log_view.from_moorage_id"},{"$ref":"#/parameters/rowFilter.log_view.to_moorage_id"},{"$ref":"#/parameters/body.log_view"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Log web view","tags":["log_view"]}},"/moorages":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.moorages.id"},{"$ref":"#/parameters/rowFilter.moorages.vessel_id"},{"$ref":"#/parameters/rowFilter.moorages.name"},{"$ref":"#/parameters/rowFilter.moorages.country"},{"$ref":"#/parameters/rowFilter.moorages.stay_code"},{"$ref":"#/parameters/rowFilter.moorages.stay_duration"},{"$ref":"#/parameters/rowFilter.moorages.reference_count"},{"$ref":"#/parameters/rowFilter.moorages.latitude"},{"$ref":"#/parameters/rowFilter.moorages.longitude"},{"$ref":"#/parameters/rowFilter.moorages.geog"},{"$ref":"#/parameters/rowFilter.moorages.home_flag"},{"$ref":"#/parameters/rowFilter.moorages.notes"},{"$ref":"#/parameters/rowFilter.moorages.overpass"},{"$ref":"#/parameters/rowFilter.moorages.nominatim"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/moorages"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Stores generated moorages","tags":["moorages"]},"post":{"parameters":[{"$ref":"#/parameters/body.moorages"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Stores generated moorages","tags":["moorages"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.moorages.id"},{"$ref":"#/parameters/rowFilter.moorages.vessel_id"},{"$ref":"#/parameters/rowFilter.moorages.name"},{"$ref":"#/parameters/rowFilter.moorages.country"},{"$ref":"#/parameters/rowFilter.moorages.stay_code"},{"$ref":"#/parameters/rowFilter.moorages.stay_duration"},{"$ref":"#/parameters/rowFilter.moorages.reference_count"},{"$ref":"#/parameters/rowFilter.moorages.latitude"},{"$ref":"#/parameters/rowFilter.moorages.longitude"},{"$ref":"#/parameters/rowFilter.moorages.geog"},{"$ref":"#/parameters/rowFilter.moorages.home_flag"},{"$ref":"#/parameters/rowFilter.moorages.notes"},{"$ref":"#/parameters/rowFilter.moorages.overpass"},{"$ref":"#/parameters/rowFilter.moorages.nominatim"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores generated moorages","tags":["moorages"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.moorages.id"},{"$ref":"#/parameters/rowFilter.moorages.vessel_id"},{"$ref":"#/parameters/rowFilter.moorages.name"},{"$ref":"#/parameters/rowFilter.moorages.country"},{"$ref":"#/parameters/rowFilter.moorages.stay_code"},{"$ref":"#/parameters/rowFilter.moorages.stay_duration"},{"$ref":"#/parameters/rowFilter.moorages.reference_count"},{"$ref":"#/parameters/rowFilter.moorages.latitude"},{"$ref":"#/parameters/rowFilter.moorages.longitude"},{"$ref":"#/parameters/rowFilter.moorages.geog"},{"$ref":"#/parameters/rowFilter.moorages.home_flag"},{"$ref":"#/parameters/rowFilter.moorages.notes"},{"$ref":"#/parameters/rowFilter.moorages.overpass"},{"$ref":"#/parameters/rowFilter.moorages.nominatim"},{"$ref":"#/parameters/body.moorages"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores generated moorages","tags":["moorages"]}},"/moorages_stays_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.moorages_stays_view._to_name"},{"$ref":"#/parameters/rowFilter.moorages_stays_view._to_id"},{"$ref":"#/parameters/rowFilter.moorages_stays_view._to_time"},{"$ref":"#/parameters/rowFilter.moorages_stays_view._from_id"},{"$ref":"#/parameters/rowFilter.moorages_stays_view._from_name"},{"$ref":"#/parameters/rowFilter.moorages_stays_view._from_time"},{"$ref":"#/parameters/rowFilter.moorages_stays_view.stay_code"},{"$ref":"#/parameters/rowFilter.moorages_stays_view.duration"},{"$ref":"#/parameters/rowFilter.moorages_stays_view.id"},{"$ref":"#/parameters/rowFilter.moorages_stays_view.name"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/moorages_stays_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Moorages stay listing web view","tags":["moorages_stays_view"]}},"/metadata":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.metadata.id"},{"$ref":"#/parameters/rowFilter.metadata.name"},{"$ref":"#/parameters/rowFilter.metadata.mmsi"},{"$ref":"#/parameters/rowFilter.metadata.client_id"},{"$ref":"#/parameters/rowFilter.metadata.vessel_id"},{"$ref":"#/parameters/rowFilter.metadata.length"},{"$ref":"#/parameters/rowFilter.metadata.beam"},{"$ref":"#/parameters/rowFilter.metadata.height"},{"$ref":"#/parameters/rowFilter.metadata.ship_type"},{"$ref":"#/parameters/rowFilter.metadata.plugin_version"},{"$ref":"#/parameters/rowFilter.metadata.signalk_version"},{"$ref":"#/parameters/rowFilter.metadata.time"},{"$ref":"#/parameters/rowFilter.metadata.platform"},{"$ref":"#/parameters/rowFilter.metadata.configuration"},{"$ref":"#/parameters/rowFilter.metadata.active"},{"$ref":"#/parameters/rowFilter.metadata.created_at"},{"$ref":"#/parameters/rowFilter.metadata.updated_at"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/metadata"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Stores metadata received from vessel, aka signalk plugin","tags":["metadata"]},"post":{"parameters":[{"$ref":"#/parameters/body.metadata"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Stores metadata received from vessel, aka signalk plugin","tags":["metadata"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.metadata.id"},{"$ref":"#/parameters/rowFilter.metadata.name"},{"$ref":"#/parameters/rowFilter.metadata.mmsi"},{"$ref":"#/parameters/rowFilter.metadata.client_id"},{"$ref":"#/parameters/rowFilter.metadata.vessel_id"},{"$ref":"#/parameters/rowFilter.metadata.length"},{"$ref":"#/parameters/rowFilter.metadata.beam"},{"$ref":"#/parameters/rowFilter.metadata.height"},{"$ref":"#/parameters/rowFilter.metadata.ship_type"},{"$ref":"#/parameters/rowFilter.metadata.plugin_version"},{"$ref":"#/parameters/rowFilter.metadata.signalk_version"},{"$ref":"#/parameters/rowFilter.metadata.time"},{"$ref":"#/parameters/rowFilter.metadata.platform"},{"$ref":"#/parameters/rowFilter.metadata.configuration"},{"$ref":"#/parameters/rowFilter.metadata.active"},{"$ref":"#/parameters/rowFilter.metadata.created_at"},{"$ref":"#/parameters/rowFilter.metadata.updated_at"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores metadata received from vessel, aka signalk plugin","tags":["metadata"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.metadata.id"},{"$ref":"#/parameters/rowFilter.metadata.name"},{"$ref":"#/parameters/rowFilter.metadata.mmsi"},{"$ref":"#/parameters/rowFilter.metadata.client_id"},{"$ref":"#/parameters/rowFilter.metadata.vessel_id"},{"$ref":"#/parameters/rowFilter.metadata.length"},{"$ref":"#/parameters/rowFilter.metadata.beam"},{"$ref":"#/parameters/rowFilter.metadata.height"},{"$ref":"#/parameters/rowFilter.metadata.ship_type"},{"$ref":"#/parameters/rowFilter.metadata.plugin_version"},{"$ref":"#/parameters/rowFilter.metadata.signalk_version"},{"$ref":"#/parameters/rowFilter.metadata.time"},{"$ref":"#/parameters/rowFilter.metadata.platform"},{"$ref":"#/parameters/rowFilter.metadata.configuration"},{"$ref":"#/parameters/rowFilter.metadata.active"},{"$ref":"#/parameters/rowFilter.metadata.created_at"},{"$ref":"#/parameters/rowFilter.metadata.updated_at"},{"$ref":"#/parameters/body.metadata"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores metadata received from vessel, aka signalk plugin","tags":["metadata"]}},"/monitoring_temperatures":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.monitoring_temperatures.time"},{"$ref":"#/parameters/rowFilter.monitoring_temperatures.key"},{"$ref":"#/parameters/rowFilter.monitoring_temperatures.value"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/monitoring_temperatures"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Monitoring environment.%.temperature web view","tags":["monitoring_temperatures"]}},"/logs_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.logs_view.id"},{"$ref":"#/parameters/rowFilter.logs_view.name"},{"$ref":"#/parameters/rowFilter.logs_view.from"},{"$ref":"#/parameters/rowFilter.logs_view.started"},{"$ref":"#/parameters/rowFilter.logs_view.to"},{"$ref":"#/parameters/rowFilter.logs_view.ended"},{"$ref":"#/parameters/rowFilter.logs_view.distance"},{"$ref":"#/parameters/rowFilter.logs_view.duration"},{"$ref":"#/parameters/rowFilter.logs_view._from_moorage_id"},{"$ref":"#/parameters/rowFilter.logs_view._to_moorage_id"},{"$ref":"#/parameters/rowFilter.logs_view.tags"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/logs_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Logs web view","tags":["logs_view"]},"post":{"parameters":[{"$ref":"#/parameters/body.logs_view"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Logs web view","tags":["logs_view"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.logs_view.id"},{"$ref":"#/parameters/rowFilter.logs_view.name"},{"$ref":"#/parameters/rowFilter.logs_view.from"},{"$ref":"#/parameters/rowFilter.logs_view.started"},{"$ref":"#/parameters/rowFilter.logs_view.to"},{"$ref":"#/parameters/rowFilter.logs_view.ended"},{"$ref":"#/parameters/rowFilter.logs_view.distance"},{"$ref":"#/parameters/rowFilter.logs_view.duration"},{"$ref":"#/parameters/rowFilter.logs_view._from_moorage_id"},{"$ref":"#/parameters/rowFilter.logs_view._to_moorage_id"},{"$ref":"#/parameters/rowFilter.logs_view.tags"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Logs web view","tags":["logs_view"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.logs_view.id"},{"$ref":"#/parameters/rowFilter.logs_view.name"},{"$ref":"#/parameters/rowFilter.logs_view.from"},{"$ref":"#/parameters/rowFilter.logs_view.started"},{"$ref":"#/parameters/rowFilter.logs_view.to"},{"$ref":"#/parameters/rowFilter.logs_view.ended"},{"$ref":"#/parameters/rowFilter.logs_view.distance"},{"$ref":"#/parameters/rowFilter.logs_view.duration"},{"$ref":"#/parameters/rowFilter.logs_view._from_moorage_id"},{"$ref":"#/parameters/rowFilter.logs_view._to_moorage_id"},{"$ref":"#/parameters/rowFilter.logs_view.tags"},{"$ref":"#/parameters/body.logs_view"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Logs web view","tags":["logs_view"]}},"/logbook":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.logbook.id"},{"$ref":"#/parameters/rowFilter.logbook.vessel_id"},{"$ref":"#/parameters/rowFilter.logbook.active"},{"$ref":"#/parameters/rowFilter.logbook.name"},{"$ref":"#/parameters/rowFilter.logbook._from_moorage_id"},{"$ref":"#/parameters/rowFilter.logbook._from"},{"$ref":"#/parameters/rowFilter.logbook._from_lat"},{"$ref":"#/parameters/rowFilter.logbook._from_lng"},{"$ref":"#/parameters/rowFilter.logbook._to_moorage_id"},{"$ref":"#/parameters/rowFilter.logbook._to"},{"$ref":"#/parameters/rowFilter.logbook._to_lat"},{"$ref":"#/parameters/rowFilter.logbook._to_lng"},{"$ref":"#/parameters/rowFilter.logbook.track_geom"},{"$ref":"#/parameters/rowFilter.logbook.track_geog"},{"$ref":"#/parameters/rowFilter.logbook.track_geojson"},{"$ref":"#/parameters/rowFilter.logbook._from_time"},{"$ref":"#/parameters/rowFilter.logbook._to_time"},{"$ref":"#/parameters/rowFilter.logbook.distance"},{"$ref":"#/parameters/rowFilter.logbook.duration"},{"$ref":"#/parameters/rowFilter.logbook.avg_speed"},{"$ref":"#/parameters/rowFilter.logbook.max_speed"},{"$ref":"#/parameters/rowFilter.logbook.max_wind_speed"},{"$ref":"#/parameters/rowFilter.logbook.notes"},{"$ref":"#/parameters/rowFilter.logbook.extra"},{"$ref":"#/parameters/rowFilter.logbook.trip"},{"$ref":"#/parameters/rowFilter.logbook.trip_cog"},{"$ref":"#/parameters/rowFilter.logbook.trip_sog"},{"$ref":"#/parameters/rowFilter.logbook.trip_twa"},{"$ref":"#/parameters/rowFilter.logbook.trip_tws"},{"$ref":"#/parameters/rowFilter.logbook.trip_twd"},{"$ref":"#/parameters/rowFilter.logbook.trip_notes"},{"$ref":"#/parameters/rowFilter.logbook.trip_status"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/logbook"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Stores generated logbook","tags":["logbook"]},"post":{"parameters":[{"$ref":"#/parameters/body.logbook"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Stores generated logbook","tags":["logbook"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.logbook.id"},{"$ref":"#/parameters/rowFilter.logbook.vessel_id"},{"$ref":"#/parameters/rowFilter.logbook.active"},{"$ref":"#/parameters/rowFilter.logbook.name"},{"$ref":"#/parameters/rowFilter.logbook._from_moorage_id"},{"$ref":"#/parameters/rowFilter.logbook._from"},{"$ref":"#/parameters/rowFilter.logbook._from_lat"},{"$ref":"#/parameters/rowFilter.logbook._from_lng"},{"$ref":"#/parameters/rowFilter.logbook._to_moorage_id"},{"$ref":"#/parameters/rowFilter.logbook._to"},{"$ref":"#/parameters/rowFilter.logbook._to_lat"},{"$ref":"#/parameters/rowFilter.logbook._to_lng"},{"$ref":"#/parameters/rowFilter.logbook.track_geom"},{"$ref":"#/parameters/rowFilter.logbook.track_geog"},{"$ref":"#/parameters/rowFilter.logbook.track_geojson"},{"$ref":"#/parameters/rowFilter.logbook._from_time"},{"$ref":"#/parameters/rowFilter.logbook._to_time"},{"$ref":"#/parameters/rowFilter.logbook.distance"},{"$ref":"#/parameters/rowFilter.logbook.duration"},{"$ref":"#/parameters/rowFilter.logbook.avg_speed"},{"$ref":"#/parameters/rowFilter.logbook.max_speed"},{"$ref":"#/parameters/rowFilter.logbook.max_wind_speed"},{"$ref":"#/parameters/rowFilter.logbook.notes"},{"$ref":"#/parameters/rowFilter.logbook.extra"},{"$ref":"#/parameters/rowFilter.logbook.trip"},{"$ref":"#/parameters/rowFilter.logbook.trip_cog"},{"$ref":"#/parameters/rowFilter.logbook.trip_sog"},{"$ref":"#/parameters/rowFilter.logbook.trip_twa"},{"$ref":"#/parameters/rowFilter.logbook.trip_tws"},{"$ref":"#/parameters/rowFilter.logbook.trip_twd"},{"$ref":"#/parameters/rowFilter.logbook.trip_notes"},{"$ref":"#/parameters/rowFilter.logbook.trip_status"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores generated logbook","tags":["logbook"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.logbook.id"},{"$ref":"#/parameters/rowFilter.logbook.vessel_id"},{"$ref":"#/parameters/rowFilter.logbook.active"},{"$ref":"#/parameters/rowFilter.logbook.name"},{"$ref":"#/parameters/rowFilter.logbook._from_moorage_id"},{"$ref":"#/parameters/rowFilter.logbook._from"},{"$ref":"#/parameters/rowFilter.logbook._from_lat"},{"$ref":"#/parameters/rowFilter.logbook._from_lng"},{"$ref":"#/parameters/rowFilter.logbook._to_moorage_id"},{"$ref":"#/parameters/rowFilter.logbook._to"},{"$ref":"#/parameters/rowFilter.logbook._to_lat"},{"$ref":"#/parameters/rowFilter.logbook._to_lng"},{"$ref":"#/parameters/rowFilter.logbook.track_geom"},{"$ref":"#/parameters/rowFilter.logbook.track_geog"},{"$ref":"#/parameters/rowFilter.logbook.track_geojson"},{"$ref":"#/parameters/rowFilter.logbook._from_time"},{"$ref":"#/parameters/rowFilter.logbook._to_time"},{"$ref":"#/parameters/rowFilter.logbook.distance"},{"$ref":"#/parameters/rowFilter.logbook.duration"},{"$ref":"#/parameters/rowFilter.logbook.avg_speed"},{"$ref":"#/parameters/rowFilter.logbook.max_speed"},{"$ref":"#/parameters/rowFilter.logbook.max_wind_speed"},{"$ref":"#/parameters/rowFilter.logbook.notes"},{"$ref":"#/parameters/rowFilter.logbook.extra"},{"$ref":"#/parameters/rowFilter.logbook.trip"},{"$ref":"#/parameters/rowFilter.logbook.trip_cog"},{"$ref":"#/parameters/rowFilter.logbook.trip_sog"},{"$ref":"#/parameters/rowFilter.logbook.trip_twa"},{"$ref":"#/parameters/rowFilter.logbook.trip_tws"},{"$ref":"#/parameters/rowFilter.logbook.trip_twd"},{"$ref":"#/parameters/rowFilter.logbook.trip_notes"},{"$ref":"#/parameters/rowFilter.logbook.trip_status"},{"$ref":"#/parameters/body.logbook"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores generated logbook","tags":["logbook"]}},"/metrics":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.metrics.time"},{"$ref":"#/parameters/rowFilter.metrics.client_id"},{"$ref":"#/parameters/rowFilter.metrics.vessel_id"},{"$ref":"#/parameters/rowFilter.metrics.latitude"},{"$ref":"#/parameters/rowFilter.metrics.longitude"},{"$ref":"#/parameters/rowFilter.metrics.speedoverground"},{"$ref":"#/parameters/rowFilter.metrics.courseovergroundtrue"},{"$ref":"#/parameters/rowFilter.metrics.windspeedapparent"},{"$ref":"#/parameters/rowFilter.metrics.anglespeedapparent"},{"$ref":"#/parameters/rowFilter.metrics.status"},{"$ref":"#/parameters/rowFilter.metrics.metrics"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/metrics"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Stores metrics from vessel","tags":["metrics"]},"post":{"parameters":[{"$ref":"#/parameters/body.metrics"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Stores metrics from vessel","tags":["metrics"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.metrics.time"},{"$ref":"#/parameters/rowFilter.metrics.client_id"},{"$ref":"#/parameters/rowFilter.metrics.vessel_id"},{"$ref":"#/parameters/rowFilter.metrics.latitude"},{"$ref":"#/parameters/rowFilter.metrics.longitude"},{"$ref":"#/parameters/rowFilter.metrics.speedoverground"},{"$ref":"#/parameters/rowFilter.metrics.courseovergroundtrue"},{"$ref":"#/parameters/rowFilter.metrics.windspeedapparent"},{"$ref":"#/parameters/rowFilter.metrics.anglespeedapparent"},{"$ref":"#/parameters/rowFilter.metrics.status"},{"$ref":"#/parameters/rowFilter.metrics.metrics"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores metrics from vessel","tags":["metrics"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.metrics.time"},{"$ref":"#/parameters/rowFilter.metrics.client_id"},{"$ref":"#/parameters/rowFilter.metrics.vessel_id"},{"$ref":"#/parameters/rowFilter.metrics.latitude"},{"$ref":"#/parameters/rowFilter.metrics.longitude"},{"$ref":"#/parameters/rowFilter.metrics.speedoverground"},{"$ref":"#/parameters/rowFilter.metrics.courseovergroundtrue"},{"$ref":"#/parameters/rowFilter.metrics.windspeedapparent"},{"$ref":"#/parameters/rowFilter.metrics.anglespeedapparent"},{"$ref":"#/parameters/rowFilter.metrics.status"},{"$ref":"#/parameters/rowFilter.metrics.metrics"},{"$ref":"#/parameters/body.metrics"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores metrics from vessel","tags":["metrics"]}},"/monitoring_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.monitoring_view.time"},{"$ref":"#/parameters/rowFilter.monitoring_view.offline"},{"$ref":"#/parameters/rowFilter.monitoring_view.watertemperature"},{"$ref":"#/parameters/rowFilter.monitoring_view.insidetemperature"},{"$ref":"#/parameters/rowFilter.monitoring_view.outsidetemperature"},{"$ref":"#/parameters/rowFilter.monitoring_view.windspeedoverground"},{"$ref":"#/parameters/rowFilter.monitoring_view.winddirectiontrue"},{"$ref":"#/parameters/rowFilter.monitoring_view.insidehumidity"},{"$ref":"#/parameters/rowFilter.monitoring_view.outsidehumidity"},{"$ref":"#/parameters/rowFilter.monitoring_view.outsidepressure"},{"$ref":"#/parameters/rowFilter.monitoring_view.insidepressure"},{"$ref":"#/parameters/rowFilter.monitoring_view.batterycharge"},{"$ref":"#/parameters/rowFilter.monitoring_view.batteryvoltage"},{"$ref":"#/parameters/rowFilter.monitoring_view.depth"},{"$ref":"#/parameters/rowFilter.monitoring_view.geojson"},{"$ref":"#/parameters/rowFilter.monitoring_view.name"},{"$ref":"#/parameters/rowFilter.monitoring_view.status"},{"$ref":"#/parameters/rowFilter.monitoring_view.live"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/monitoring_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Monitoring static web view","tags":["monitoring_view"]}},"/stays_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.stays_view.id"},{"$ref":"#/parameters/rowFilter.stays_view.name"},{"$ref":"#/parameters/rowFilter.stays_view.moorage"},{"$ref":"#/parameters/rowFilter.stays_view.moorage_id"},{"$ref":"#/parameters/rowFilter.stays_view.duration"},{"$ref":"#/parameters/rowFilter.stays_view.stayed_at"},{"$ref":"#/parameters/rowFilter.stays_view.stayed_at_id"},{"$ref":"#/parameters/rowFilter.stays_view.arrived"},{"$ref":"#/parameters/rowFilter.stays_view.arrived_log_id"},{"$ref":"#/parameters/rowFilter.stays_view.arrived_from_moorage_id"},{"$ref":"#/parameters/rowFilter.stays_view.arrived_from_moorage_name"},{"$ref":"#/parameters/rowFilter.stays_view.departed"},{"$ref":"#/parameters/rowFilter.stays_view.departed_log_id"},{"$ref":"#/parameters/rowFilter.stays_view.departed_to_moorage_id"},{"$ref":"#/parameters/rowFilter.stays_view.departed_to_moorage_name"},{"$ref":"#/parameters/rowFilter.stays_view.notes"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/stays_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Stays web view","tags":["stays_view"]}},"/monitoring_view2":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.monitoring_view2.key"},{"$ref":"#/parameters/rowFilter.monitoring_view2.value"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/monitoring_view2"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Monitoring Last whatever data from json web view","tags":["monitoring_view2"]}},"/stays":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.stays.id"},{"$ref":"#/parameters/rowFilter.stays.vessel_id"},{"$ref":"#/parameters/rowFilter.stays.active"},{"$ref":"#/parameters/rowFilter.stays.moorage_id"},{"$ref":"#/parameters/rowFilter.stays.name"},{"$ref":"#/parameters/rowFilter.stays.latitude"},{"$ref":"#/parameters/rowFilter.stays.longitude"},{"$ref":"#/parameters/rowFilter.stays.geog"},{"$ref":"#/parameters/rowFilter.stays.arrived"},{"$ref":"#/parameters/rowFilter.stays.departed"},{"$ref":"#/parameters/rowFilter.stays.duration"},{"$ref":"#/parameters/rowFilter.stays.stay_code"},{"$ref":"#/parameters/rowFilter.stays.notes"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/stays"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Stores generated stays","tags":["stays"]},"post":{"parameters":[{"$ref":"#/parameters/body.stays"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/preferPost"}],"responses":{"201":{"description":"Created"}},"summary":"Stores generated stays","tags":["stays"]},"delete":{"parameters":[{"$ref":"#/parameters/rowFilter.stays.id"},{"$ref":"#/parameters/rowFilter.stays.vessel_id"},{"$ref":"#/parameters/rowFilter.stays.active"},{"$ref":"#/parameters/rowFilter.stays.moorage_id"},{"$ref":"#/parameters/rowFilter.stays.name"},{"$ref":"#/parameters/rowFilter.stays.latitude"},{"$ref":"#/parameters/rowFilter.stays.longitude"},{"$ref":"#/parameters/rowFilter.stays.geog"},{"$ref":"#/parameters/rowFilter.stays.arrived"},{"$ref":"#/parameters/rowFilter.stays.departed"},{"$ref":"#/parameters/rowFilter.stays.duration"},{"$ref":"#/parameters/rowFilter.stays.stay_code"},{"$ref":"#/parameters/rowFilter.stays.notes"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores generated stays","tags":["stays"]},"patch":{"parameters":[{"$ref":"#/parameters/rowFilter.stays.id"},{"$ref":"#/parameters/rowFilter.stays.vessel_id"},{"$ref":"#/parameters/rowFilter.stays.active"},{"$ref":"#/parameters/rowFilter.stays.moorage_id"},{"$ref":"#/parameters/rowFilter.stays.name"},{"$ref":"#/parameters/rowFilter.stays.latitude"},{"$ref":"#/parameters/rowFilter.stays.longitude"},{"$ref":"#/parameters/rowFilter.stays.geog"},{"$ref":"#/parameters/rowFilter.stays.arrived"},{"$ref":"#/parameters/rowFilter.stays.departed"},{"$ref":"#/parameters/rowFilter.stays.duration"},{"$ref":"#/parameters/rowFilter.stays.stay_code"},{"$ref":"#/parameters/rowFilter.stays.notes"},{"$ref":"#/parameters/body.stays"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}},"summary":"Stores generated stays","tags":["stays"]}},"/monitoring_view3":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.monitoring_view3.time"},{"$ref":"#/parameters/rowFilter.monitoring_view3.key"},{"$ref":"#/parameters/rowFilter.monitoring_view3.value"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/monitoring_view3"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Monitoring Timeseries whatever data from json web view","tags":["monitoring_view3"]}},"/moorages_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.moorages_view.id"},{"$ref":"#/parameters/rowFilter.moorages_view.moorage"},{"$ref":"#/parameters/rowFilter.moorages_view.default_stay"},{"$ref":"#/parameters/rowFilter.moorages_view.default_stay_id"},{"$ref":"#/parameters/rowFilter.moorages_view.arrivals_departures"},{"$ref":"#/parameters/rowFilter.moorages_view.total_duration"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/moorages_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Moorages listing web view","tags":["moorages_view"]}},"/stay_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.stay_view.id"},{"$ref":"#/parameters/rowFilter.stay_view.name"},{"$ref":"#/parameters/rowFilter.stay_view.moorage"},{"$ref":"#/parameters/rowFilter.stay_view.moorage_id"},{"$ref":"#/parameters/rowFilter.stay_view.duration"},{"$ref":"#/parameters/rowFilter.stay_view.stayed_at"},{"$ref":"#/parameters/rowFilter.stay_view.stayed_at_id"},{"$ref":"#/parameters/rowFilter.stay_view.arrived"},{"$ref":"#/parameters/rowFilter.stay_view.arrived_log_id"},{"$ref":"#/parameters/rowFilter.stay_view.arrived_from_moorage_id"},{"$ref":"#/parameters/rowFilter.stay_view.arrived_from_moorage_name"},{"$ref":"#/parameters/rowFilter.stay_view.departed"},{"$ref":"#/parameters/rowFilter.stay_view.departed_log_id"},{"$ref":"#/parameters/rowFilter.stay_view.departed_to_moorage_id"},{"$ref":"#/parameters/rowFilter.stay_view.departed_to_moorage_name"},{"$ref":"#/parameters/rowFilter.stay_view.notes"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/stay_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Stay web view","tags":["stay_view"]}},"/monitoring_voltage":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.monitoring_voltage.time"},{"$ref":"#/parameters/rowFilter.monitoring_voltage.key"},{"$ref":"#/parameters/rowFilter.monitoring_voltage.value"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/monitoring_voltage"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Monitoring electrical.%.voltage web view","tags":["monitoring_voltage"]}},"/explore_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.explore_view.time"},{"$ref":"#/parameters/rowFilter.explore_view.key"},{"$ref":"#/parameters/rowFilter.explore_view.value"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/explore_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"explore_view web view","tags":["explore_view"]}},"/moorage_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.moorage_view.id"},{"$ref":"#/parameters/rowFilter.moorage_view.name"},{"$ref":"#/parameters/rowFilter.moorage_view.default_stay"},{"$ref":"#/parameters/rowFilter.moorage_view.default_stay_id"},{"$ref":"#/parameters/rowFilter.moorage_view.notes"},{"$ref":"#/parameters/rowFilter.moorage_view.home"},{"$ref":"#/parameters/rowFilter.moorage_view.geog"},{"$ref":"#/parameters/rowFilter.moorage_view.latitude"},{"$ref":"#/parameters/rowFilter.moorage_view.longitude"},{"$ref":"#/parameters/rowFilter.moorage_view.logs_count"},{"$ref":"#/parameters/rowFilter.moorage_view.stays_count"},{"$ref":"#/parameters/rowFilter.moorage_view.stays_sum_duration"},{"$ref":"#/parameters/rowFilter.moorage_view.stay_first_seen"},{"$ref":"#/parameters/rowFilter.moorage_view.stay_last_seen"},{"$ref":"#/parameters/rowFilter.moorage_view.stay_first_seen_id"},{"$ref":"#/parameters/rowFilter.moorage_view.stay_last_seen_id"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/moorage_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Moorage details web view","tags":["moorage_view"]}},"/monitoring_humidity":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.monitoring_humidity.time"},{"$ref":"#/parameters/rowFilter.monitoring_humidity.key"},{"$ref":"#/parameters/rowFilter.monitoring_humidity.value"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/monitoring_humidity"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Monitoring environment.%.humidity web view","tags":["monitoring_humidity"]}},"/logs_mat_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.logs_mat_view.id"},{"$ref":"#/parameters/rowFilter.logs_mat_view.name"},{"$ref":"#/parameters/rowFilter.logs_mat_view.from"},{"$ref":"#/parameters/rowFilter.logs_mat_view.started"},{"$ref":"#/parameters/rowFilter.logs_mat_view.to"},{"$ref":"#/parameters/rowFilter.logs_mat_view.ended"},{"$ref":"#/parameters/rowFilter.logs_mat_view.distance"},{"$ref":"#/parameters/rowFilter.logs_mat_view.duration"},{"$ref":"#/parameters/rowFilter.logs_mat_view._from_moorage_id"},{"$ref":"#/parameters/rowFilter.logs_mat_view._to_moorage_id"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/logs_mat_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Logs MATERIALIZED web view","tags":["logs_mat_view"]}},"/total_info_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.total_info_view.logs"},{"$ref":"#/parameters/rowFilter.total_info_view.stays"},{"$ref":"#/parameters/rowFilter.total_info_view.moorages"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/total_info_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"total_info_view web view","tags":["total_info_view"]}},"/stats_moorages_away_view":{"get":{"parameters":[{"$ref":"#/parameters/rowFilter.stats_moorages_away_view.description"},{"$ref":"#/parameters/rowFilter.stats_moorages_away_view.time_spent_away_by"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"200":{"description":"OK","schema":{"items":{"$ref":"#/definitions/stats_moorages_away_view"},"type":"array"}},"206":{"description":"Partial Content"}},"summary":"Statistics Moorages Time Spent Away web view","tags":["stats_moorages_away_view"]}},"/rpc/export_logbook_geojson_linestring_trip_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate geojson geometry LineString from trip with the corresponding properties","tags":["(rpc) export_logbook_geojson_linestring_trip_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Generate geojson geometry LineString from trip with the corresponding properties","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate geojson geometry LineString from trip with the corresponding properties","tags":["(rpc) export_logbook_geojson_linestring_trip_fn"]}},"/rpc/oauth_vessel":{"get":{"parameters":[{"format":"text","in":"query","name":"_mmsi","required":true,"type":"string"},{"format":"text","in":"query","name":"_name","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"user and vessel register entry point from signalk plugin","tags":["(rpc) oauth_vessel"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"user and vessel register entry point from signalk plugin","properties":{"_mmsi":{"format":"text","type":"string"},"_name":{"format":"text","type":"string"}},"required":["_mmsi","_name"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"user and vessel register entry point from signalk plugin","tags":["(rpc) oauth_vessel"]}},"/rpc/reset":{"get":{"parameters":[{"format":"text","in":"query","name":"pass","required":true,"type":"string"},{"format":"text","in":"query","name":"token","required":true,"type":"string"},{"format":"text","in":"query","name":"uuid","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Reset user password base on otp code and user_id send by email from api.recover","tags":["(rpc) reset"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Reset user password base on otp code and user_id send by email from api.recover","properties":{"pass":{"format":"text","type":"string"},"token":{"format":"text","type":"string"},"uuid":{"format":"text","type":"string"}},"required":["pass","token","uuid"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Reset user password base on otp code and user_id send by email from api.recover","tags":["(rpc) reset"]}},"/rpc/export_logbook_geojson_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log entry to geojson with features LineString and Point","tags":["(rpc) export_logbook_geojson_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a log entry to geojson with features LineString and Point","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log entry to geojson with features LineString and Point","tags":["(rpc) export_logbook_geojson_fn"]}},"/rpc/delete_logbook_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Delete a logbook and dependency stay and moorages","tags":["(rpc) delete_logbook_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Delete a logbook and dependency stay and moorages","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Delete a logbook and dependency stay and moorages","tags":["(rpc) delete_logbook_fn"]}},"/rpc/delete_trip_entry_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"},{"format":"public.tstzspan","in":"query","name":"update_string","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Delete at a specific time a temporal sequence for all trip_* column from a logbook","tags":["(rpc) delete_trip_entry_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Delete at a specific time a temporal sequence for all trip_* column from a logbook","properties":{"_id":{"format":"integer","type":"integer"},"update_string":{"format":"public.tstzspan","type":"string"}},"required":["_id","update_string"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Delete at a specific time a temporal sequence for all trip_* column from a logbook","tags":["(rpc) delete_trip_entry_fn"]}},"/rpc/logs_by_month_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"logbook by month for web charts","tags":["(rpc) logs_by_month_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"logbook by month for web charts","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"logbook by month for web charts","tags":["(rpc) logs_by_month_fn"]}},"/rpc/export_moorages_geojson_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export moorages as geojson","tags":["(rpc) export_moorages_geojson_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export moorages as geojson","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export moorages as geojson","tags":["(rpc) export_moorages_geojson_fn"]}},"/rpc/export_logbook_gpx_trip_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log trip entry to GPX XML format","tags":["(rpc) export_logbook_gpx_trip_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a log trip entry to GPX XML format","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log trip entry to GPX XML format","tags":["(rpc) export_logbook_gpx_trip_fn"]}},"/rpc/maplapse_record_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"maplapse","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Add maplapse video record in queue","tags":["(rpc) maplapse_record_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Add maplapse video record in queue","properties":{"maplapse":{"format":"text","type":"string"}},"required":["maplapse"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Add maplapse video record in queue","tags":["(rpc) maplapse_record_fn"]}},"/rpc/vessel_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Expose vessel details to API","tags":["(rpc) vessel_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Expose vessel details to API","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Expose vessel details to API","tags":["(rpc) vessel_fn"]}},"/rpc/telegram_otp_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"email","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Telegram otp generation","tags":["(rpc) telegram_otp_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Telegram otp generation","properties":{"email":{"format":"text","type":"string"}},"required":["email"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Telegram otp generation","tags":["(rpc) telegram_otp_fn"]}},"/rpc/ispublic_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"boat","required":true,"type":"string"},{"format":"text","in":"query","name":"_type","required":true,"type":"string"},{"format":"integer","in":"query","name":"_id","required":false,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Is web page publicly accessible by register boat name and/or logbook id","tags":["(rpc) ispublic_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Is web page publicly accessible by register boat name and/or logbook id","properties":{"_id":{"format":"integer","type":"integer"},"_type":{"format":"text","type":"string"},"boat":{"format":"text","type":"string"}},"required":["boat","_type"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Is web page publicly accessible by register boat name and/or logbook id","tags":["(rpc) ispublic_fn"]}},"/rpc/email_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"token","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Store email_valid into user preferences if valid token/otp","tags":["(rpc) email_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Store email_valid into user preferences if valid token/otp","properties":{"token":{"format":"text","type":"string"}},"required":["token"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Store email_valid into user preferences if valid token/otp","tags":["(rpc) email_fn"]}},"/rpc/export_moorages_kml_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export moorages as kml","tags":["(rpc) export_moorages_kml_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export moorages as kml","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export moorages as kml","tags":["(rpc) export_moorages_kml_fn"]}},"/rpc/logbook_update_geojson_trip_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log trip entry to GEOJSON format with custom properties for timelapse replay","tags":["(rpc) logbook_update_geojson_trip_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a log trip entry to GEOJSON format with custom properties for timelapse replay","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log trip entry to GEOJSON format with custom properties for timelapse replay","tags":["(rpc) logbook_update_geojson_trip_fn"]}},"/rpc/pushover_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"token","required":true,"type":"string"},{"format":"text","in":"query","name":"pushover_user_key","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Confirm Pushover Subscription and store pushover_user_key into user preferences if provide a valid OTP token","tags":["(rpc) pushover_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Confirm Pushover Subscription and store pushover_user_key into user preferences if provide a valid OTP token","properties":{"pushover_user_key":{"format":"text","type":"string"},"token":{"format":"text","type":"string"}},"required":["token","pushover_user_key"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Confirm Pushover Subscription and store pushover_user_key into user preferences if provide a valid OTP token","tags":["(rpc) pushover_fn"]}},"/rpc/login":{"get":{"parameters":[{"format":"text","in":"query","name":"email","required":true,"type":"string"},{"format":"text","in":"query","name":"pass","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"tags":["(rpc) login"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"properties":{"email":{"format":"text","type":"string"},"pass":{"format":"text","type":"string"}},"required":["email","pass"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"tags":["(rpc) login"]}},"/rpc/update_logbook_observations_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"},{"format":"text","in":"query","name":"observations","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Update/Add logbook observations jsonb key pair value","tags":["(rpc) update_logbook_observations_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Update/Add logbook observations jsonb key pair value","properties":{"_id":{"format":"integer","type":"integer"},"observations":{"format":"text","type":"string"}},"required":["_id","observations"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Update/Add logbook observations jsonb key pair value","tags":["(rpc) update_logbook_observations_fn"]}},"/rpc/export_logbook_geojson_trip_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to GeoJSON format of geometry point","tags":["(rpc) export_logbook_geojson_trip_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a logs entries to GeoJSON format of geometry point","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to GeoJSON format of geometry point","tags":["(rpc) export_logbook_geojson_trip_fn"]}},"/rpc/export_moorages_gpx_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export moorages as gpx","tags":["(rpc) export_moorages_gpx_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export moorages as gpx","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export moorages as gpx","tags":["(rpc) export_moorages_gpx_fn"]}},"/rpc/mapgl_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"start_log","required":false,"type":"integer"},{"format":"integer","in":"query","name":"end_log","required":false,"type":"integer"},{"format":"text","in":"query","name":"start_date","required":false,"type":"string"},{"format":"text","in":"query","name":"end_date","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate a geojson with all logs as geometry LineString with moorages as geometry Point to be process by DeckGL","tags":["(rpc) mapgl_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Generate a geojson with all logs as geometry LineString with moorages as geometry Point to be process by DeckGL","properties":{"end_date":{"format":"text","type":"string"},"end_log":{"format":"integer","type":"integer"},"start_date":{"format":"text","type":"string"},"start_log":{"format":"integer","type":"integer"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate a geojson with all logs as geometry LineString with moorages as geometry Point to be process by DeckGL","tags":["(rpc) mapgl_fn"]}},"/rpc/status_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"generate vessel status","tags":["(rpc) status_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"generate vessel status","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"generate vessel status","tags":["(rpc) status_fn"]}},"/rpc/find_log_from_moorage_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Find all log from moorage geopoint within 100m","tags":["(rpc) find_log_from_moorage_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Find all log from moorage geopoint within 100m","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Find all log from moorage geopoint within 100m","tags":["(rpc) find_log_from_moorage_fn"]}},"/rpc/vessel_details_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Return vessel details such as metadata (length,beam,height), ais type and country name and country iso3166-alpha-2","tags":["(rpc) vessel_details_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Return vessel details such as metadata (length,beam,height), ais type and country name and country iso3166-alpha-2","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Return vessel details such as metadata (length,beam,height), ais type and country name and country iso3166-alpha-2","tags":["(rpc) vessel_details_fn"]}},"/rpc/export_logbook_kml_trip_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log trip entry to KML XML format","tags":["(rpc) export_logbook_kml_trip_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a log trip entry to KML XML format","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log trip entry to KML XML format","tags":["(rpc) export_logbook_kml_trip_fn"]}},"/rpc/export_logbooks_gpx_trips_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"start_log","required":false,"type":"integer"},{"format":"integer","in":"query","name":"end_log","required":false,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to GPX XML format","tags":["(rpc) export_logbooks_gpx_trips_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a logs entries to GPX XML format","properties":{"end_log":{"format":"integer","type":"integer"},"start_log":{"format":"integer","type":"integer"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to GPX XML format","tags":["(rpc) export_logbooks_gpx_trips_fn"]}},"/rpc/logs_by_day_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"logbook by day for web charts","tags":["(rpc) logs_by_day_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"logbook by day for web charts","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"logbook by day for web charts","tags":["(rpc) logs_by_day_fn"]}},"/rpc/telegram":{"get":{"parameters":[{"format":"bigint","in":"query","name":"user_id","required":true,"type":"integer"},{"format":"text","in":"query","name":"email","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate a JWT user_role token based on chat_id from telegram","tags":["(rpc) telegram"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Generate a JWT user_role token based on chat_id from telegram","properties":{"email":{"format":"text","type":"string"},"user_id":{"format":"bigint","type":"integer"}},"required":["user_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate a JWT user_role token based on chat_id from telegram","tags":["(rpc) telegram"]}},"/rpc/register_vessel":{"get":{"parameters":[{"format":"text","in":"query","name":"vessel_email","required":true,"type":"string"},{"format":"text","in":"query","name":"vessel_mmsi","required":true,"type":"string"},{"format":"text","in":"query","name":"vessel_name","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"tags":["(rpc) register_vessel"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"properties":{"vessel_email":{"format":"text","type":"string"},"vessel_mmsi":{"format":"text","type":"string"},"vessel_name":{"format":"text","type":"string"}},"required":["vessel_email","vessel_mmsi","vessel_name"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"tags":["(rpc) register_vessel"]}},"/rpc/export_logbooks_geojson_point_trips_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"start_log","required":false,"type":"integer"},{"format":"integer","in":"query","name":"end_log","required":false,"type":"integer"},{"format":"text","in":"query","name":"start_date","required":false,"type":"string"},{"format":"text","in":"query","name":"end_date","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export all selected logs into a geojson `trip` to a geojson as points including properties","tags":["(rpc) export_logbooks_geojson_point_trips_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export all selected logs into a geojson `trip` to a geojson as points including properties","properties":{"end_date":{"format":"text","type":"string"},"end_log":{"format":"integer","type":"integer"},"start_date":{"format":"text","type":"string"},"start_log":{"format":"integer","type":"integer"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export all selected logs into a geojson `trip` to a geojson as points including properties","tags":["(rpc) export_logbooks_geojson_point_trips_fn"]}},"/rpc/export_logbooks_geojson_linestring_trips_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"start_log","required":false,"type":"integer"},{"format":"integer","in":"query","name":"end_log","required":false,"type":"integer"},{"format":"text","in":"query","name":"start_date","required":false,"type":"string"},{"format":"text","in":"query","name":"end_date","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate geojson geometry LineString from trip with the corresponding properties","tags":["(rpc) export_logbooks_geojson_linestring_trips_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Generate geojson geometry LineString from trip with the corresponding properties","properties":{"end_date":{"format":"text","type":"string"},"end_log":{"format":"integer","type":"integer"},"start_date":{"format":"text","type":"string"},"start_log":{"format":"integer","type":"integer"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate geojson geometry LineString from trip with the corresponding properties","tags":["(rpc) export_logbooks_geojson_linestring_trips_fn"]}},"/rpc/pushover_subscribe_link_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate Pushover subscription link","tags":["(rpc) pushover_subscribe_link_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Generate Pushover subscription link","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate Pushover subscription link","tags":["(rpc) pushover_subscribe_link_fn"]}},"/rpc/timelapse2_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"start_log","required":false,"type":"integer"},{"format":"integer","in":"query","name":"end_log","required":false,"type":"integer"},{"format":"text","in":"query","name":"start_date","required":false,"type":"string"},{"format":"text","in":"query","name":"end_date","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export all selected logs geojson `track_geojson` to a geojson as points including properties","tags":["(rpc) timelapse2_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export all selected logs geojson `track_geojson` to a geojson as points including properties","properties":{"end_date":{"format":"text","type":"string"},"end_log":{"format":"integer","type":"integer"},"start_date":{"format":"text","type":"string"},"start_log":{"format":"integer","type":"integer"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export all selected logs geojson `track_geojson` to a geojson as points including properties","tags":["(rpc) timelapse2_fn"]}},"/rpc/export_logbook_kml_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log entry to KML XML format","tags":["(rpc) export_logbook_kml_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a log entry to KML XML format","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log entry to KML XML format","tags":["(rpc) export_logbook_kml_fn"]}},"/rpc/export_logbooks_kml_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"start_log","required":false,"type":"integer"},{"format":"integer","in":"query","name":"end_log","required":false,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to KML XML format","tags":["(rpc) export_logbooks_kml_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a logs entries to KML XML format","properties":{"end_log":{"format":"integer","type":"integer"},"start_log":{"format":"integer","type":"integer"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to KML XML format","tags":["(rpc) export_logbooks_kml_fn"]}},"/rpc/telegram_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"token","required":true,"type":"string"},{"format":"text","in":"query","name":"telegram_obj","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Confirm telegram user and store telegram chat details into user preferences if provide a valid OTP token","tags":["(rpc) telegram_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Confirm telegram user and store telegram chat details into user preferences if provide a valid OTP token","properties":{"telegram_obj":{"format":"text","type":"string"},"token":{"format":"text","type":"string"}},"required":["token","telegram_obj"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Confirm telegram user and store telegram chat details into user preferences if provide a valid OTP token","tags":["(rpc) telegram_fn"]}},"/rpc/stats_logs_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"start_date","required":false,"type":"string"},{"format":"text","in":"query","name":"end_date","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Logs stats by date","tags":["(rpc) stats_logs_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Logs stats by date","properties":{"end_date":{"format":"text","type":"string"},"start_date":{"format":"text","type":"string"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Logs stats by date","tags":["(rpc) stats_logs_fn"]}},"/rpc/stats_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"start_date","required":false,"type":"string"},{"format":"text","in":"query","name":"end_date","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Stats logbook and moorages by date","tags":["(rpc) stats_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Stats logbook and moorages by date","properties":{"end_date":{"format":"text","type":"string"},"start_date":{"format":"text","type":"string"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Stats logbook and moorages by date","tags":["(rpc) stats_fn"]}},"/rpc/recover":{"get":{"parameters":[{"format":"text","in":"query","name":"email","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Send recover password email to reset password","tags":["(rpc) recover"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Send recover password email to reset password","properties":{"email":{"format":"text","type":"string"}},"required":["email"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Send recover password email to reset password","tags":["(rpc) recover"]}},"/rpc/signup":{"get":{"parameters":[{"format":"text","in":"query","name":"email","required":true,"type":"string"},{"format":"text","in":"query","name":"pass","required":true,"type":"string"},{"format":"text","in":"query","name":"firstname","required":true,"type":"string"},{"format":"text","in":"query","name":"lastname","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"tags":["(rpc) signup"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"properties":{"email":{"format":"text","type":"string"},"firstname":{"format":"text","type":"string"},"lastname":{"format":"text","type":"string"},"pass":{"format":"text","type":"string"}},"required":["email","pass","firstname","lastname"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"tags":["(rpc) signup"]}},"/rpc/stats_stays_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"start_date","required":false,"type":"string"},{"format":"text","in":"query","name":"end_date","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Stays/Moorages stats by date","tags":["(rpc) stats_stays_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Stays/Moorages stats by date","properties":{"end_date":{"format":"text","type":"string"},"start_date":{"format":"text","type":"string"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Stays/Moorages stats by date","tags":["(rpc) stats_stays_fn"]}},"/rpc/merge_logbook_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"id_start","required":true,"type":"integer"},{"format":"integer","in":"query","name":"id_end","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Merge 2 logbook by id, from the start of the lower log id and the end of the higher log id, update the calculate data as well (avg, geojson)","tags":["(rpc) merge_logbook_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Merge 2 logbook by id, from the start of the lower log id and the end of the higher log id, update the calculate data as well (avg, geojson)","properties":{"id_end":{"format":"integer","type":"integer"},"id_start":{"format":"integer","type":"integer"}},"required":["id_start","id_end"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Merge 2 logbook by id, from the start of the lower log id and the end of the higher log id, update the calculate data as well (avg, geojson)","tags":["(rpc) merge_logbook_fn"]}},"/rpc/settings_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Expose user settings to API","tags":["(rpc) settings_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Expose user settings to API","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Expose user settings to API","tags":["(rpc) settings_fn"]}},"/rpc/export_logbook_geojson_point_trip_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate geojson geometry Point from trip with the corresponding properties","tags":["(rpc) export_logbook_geojson_point_trip_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Generate geojson geometry Point from trip with the corresponding properties","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate geojson geometry Point from trip with the corresponding properties","tags":["(rpc) export_logbook_geojson_point_trip_fn"]}},"/rpc/export_logbook_gpx_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log entry to GPX XML format","tags":["(rpc) export_logbook_gpx_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a log entry to GPX XML format","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a log entry to GPX XML format","tags":["(rpc) export_logbook_gpx_fn"]}},"/rpc/export_logbooks_gpx_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"start_log","required":false,"type":"integer"},{"format":"integer","in":"query","name":"end_log","required":false,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to GPX XML format","tags":["(rpc) export_logbooks_gpx_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a logs entries to GPX XML format","properties":{"end_log":{"format":"integer","type":"integer"},"start_log":{"format":"integer","type":"integer"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to GPX XML format","tags":["(rpc) export_logbooks_gpx_fn"]}},"/rpc/update_user_preferences_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"key","required":true,"type":"string"},{"format":"text","in":"query","name":"value","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Update user preferences jsonb key pair value","tags":["(rpc) update_user_preferences_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Update user preferences jsonb key pair value","properties":{"key":{"format":"text","type":"string"},"value":{"format":"text","type":"string"}},"required":["key","value"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Update user preferences jsonb key pair value","tags":["(rpc) update_user_preferences_fn"]}},"/rpc/oauth":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"openid/oauth user register entry point","tags":["(rpc) oauth"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"openid/oauth user register entry point","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"openid/oauth user register entry point","tags":["(rpc) oauth"]}},"/rpc/generate_otp_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"email","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate otp code","tags":["(rpc) generate_otp_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Generate otp code","properties":{"email":{"format":"text","type":"string"}},"required":["email"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Generate otp code","tags":["(rpc) generate_otp_fn"]}},"/rpc/versions_fn":{"get":{"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Expose as a function, app and system version to API","tags":["(rpc) versions_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Expose as a function, app and system version to API","type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Expose as a function, app and system version to API","tags":["(rpc) versions_fn"]}},"/rpc/find_log_to_moorage_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Find all log to moorage geopoint within 100m","tags":["(rpc) find_log_to_moorage_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Find all log to moorage geopoint within 100m","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Find all log to moorage geopoint within 100m","tags":["(rpc) find_log_to_moorage_fn"]}},"/rpc/update_trip_notes_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"},{"format":"public.ttext","in":"query","name":"update_string","required":true,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Update trip note at a specific time for a temporal sequence","tags":["(rpc) update_trip_notes_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Update trip note at a specific time for a temporal sequence","properties":{"_id":{"format":"integer","type":"integer"},"update_string":{"format":"public.ttext","type":"string"}},"required":["_id","update_string"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Update trip note at a specific time for a temporal sequence","tags":["(rpc) update_trip_notes_fn"]}},"/rpc/export_logbooks_kml_trips_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"start_log","required":false,"type":"integer"},{"format":"integer","in":"query","name":"end_log","required":false,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to KML XML format","tags":["(rpc) export_logbooks_kml_trips_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export a logs entries to KML XML format","properties":{"end_log":{"format":"integer","type":"integer"},"start_log":{"format":"integer","type":"integer"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export a logs entries to KML XML format","tags":["(rpc) export_logbooks_kml_trips_fn"]}},"/rpc/find_stay_from_moorage_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"_id","required":true,"type":"integer"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Find all stay within 100m of moorage geopoint","tags":["(rpc) find_stay_from_moorage_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Find all stay within 100m of moorage geopoint","properties":{"_id":{"format":"integer","type":"integer"}},"required":["_id"],"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Find all stay within 100m of moorage geopoint","tags":["(rpc) find_stay_from_moorage_fn"]}},"/rpc/monitoring_history_fn":{"get":{"parameters":[{"format":"text","in":"query","name":"time_interval","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export metrics from a time period 24h, 48h, 72h, 7d","tags":["(rpc) monitoring_history_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export metrics from a time period 24h, 48h, 72h, 7d","properties":{"time_interval":{"format":"text","type":"string"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export metrics from a time period 24h, 48h, 72h, 7d","tags":["(rpc) monitoring_history_fn"]}},"/rpc/timelapse_fn":{"get":{"parameters":[{"format":"integer","in":"query","name":"start_log","required":false,"type":"integer"},{"format":"integer","in":"query","name":"end_log","required":false,"type":"integer"},{"format":"text","in":"query","name":"start_date","required":false,"type":"string"},{"format":"text","in":"query","name":"end_date","required":false,"type":"string"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export all selected logs geometry `track_geom` to a geojson as MultiLineString with empty properties","tags":["(rpc) timelapse_fn"]},"post":{"parameters":[{"in":"body","name":"args","required":true,"schema":{"description":"Export all selected logs geometry `track_geom` to a geojson as MultiLineString with empty properties","properties":{"end_date":{"format":"text","type":"string"},"end_log":{"format":"integer","type":"integer"},"start_date":{"format":"text","type":"string"},"start_log":{"format":"integer","type":"integer"}},"type":"object"}},{"$ref":"#/parameters/preferParams"}],"produces":["application/json","application/vnd.pgrst.object+json;nulls=stripped","application/vnd.pgrst.object+json"],"responses":{"200":{"description":"OK"}},"summary":"Export all selected logs geometry `track_geom` to a geojson as MultiLineString with empty properties","tags":["(rpc) timelapse_fn"]}}},"definitions":{"stays_at":{"description":"Stay Type","required":["stay_code","description"],"properties":{"stay_code":{"format":"integer","type":"integer"},"description":{"format":"text","type":"string"}},"type":"object"},"vessels_view":{"description":"Expose vessels listing to web api","properties":{"name":{"format":"text","type":"string"},"mmsi":{"format":"numeric","type":"number"},"created_at":{"format":"timestamp with time zone","type":"string"},"last_contact":{"format":"text","type":"string"},"offline":{"format":"boolean","type":"boolean"},"duration":{"format":"interval","type":"string"},"last_metrics":{"format":"text","type":"string"},"metrics_offline":{"format":"boolean","type":"boolean"},"duration_last_metrics":{"format":"interval","type":"string"}},"type":"object"},"stats_moorages_view":{"description":"Statistics Moorages web view","properties":{"home_ports":{"format":"bigint","type":"integer"},"unique_moorages":{"format":"bigint","type":"integer"},"time_spent_at_home_port(s)":{"format":"interval","type":"string"},"time_spent_away":{"format":"interval","type":"string"}},"type":"object"},"eventlogs_view":{"description":"Event logs view","properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"channel":{"format":"text","type":"string"},"payload":{"format":"text","type":"string"},"ref_id":{"format":"text","type":"string"},"stored":{"format":"timestamp with time zone","type":"string"},"processed":{"format":"timestamp with time zone","type":"string"}},"type":"object"},"versions_view":{"description":"Expose as a table view app and system version to API","properties":{"api_version":{"format":"text","type":"string"},"sys_version":{"format":"text","type":"string"},"timescaledb":{"format":"text","type":"string"},"postgis":{"format":"text","type":"string"},"postgrest":{"format":"text","type":"string"}},"type":"object"},"stats_logs_view":{"description":"Statistics Logs web view","properties":{"name":{"format":"text","type":"string"},"first":{"format":"timestamp with time zone","type":"string"},"last":{"format":"timestamp with time zone","type":"string"},"number_of_log_entries":{"format":"bigint","type":"integer"},"max_speed":{"format":"double precision","type":"number"},"max_wind_speed":{"format":"double precision","type":"number"},"total_distance":{"format":"numeric","type":"number"},"total_time_underway":{"format":"interval","type":"string"},"longest_nonstop_sail":{"format":"text","type":"string"}},"type":"object"},"log_view":{"description":"Log web view","properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"name":{"format":"text","type":"string"},"from":{"format":"text","type":"string"},"started":{"format":"timestamp with time zone","type":"string"},"to":{"format":"text","type":"string"},"ended":{"format":"timestamp with time zone","type":"string"},"distance":{"format":"numeric","type":"number"},"duration":{"format":"interval","type":"string"},"notes":{"format":"text","type":"string"},"geojson":{"format":"jsonb"},"avg_speed":{"format":"double precision","type":"number"},"max_speed":{"format":"double precision","type":"number"},"max_wind_speed":{"format":"double precision","type":"number"},"extra":{"format":"jsonb"},"from_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"to_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"}},"type":"object"},"moorages":{"description":"Stores generated moorages","required":["id","vessel_id"],"properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"vessel_id":{"description":"Note:\nThis is a Foreign Key to `metadata.vessel_id`.<fk table='metadata' column='vessel_id'/>","format":"text","type":"string"},"name":{"format":"text","type":"string"},"country":{"format":"text","type":"string"},"stay_code":{"default":1,"description":"Link api.stays_at with api.moorages via FOREIGN KEY and REFERENCES\n\nNote:\nThis is a Foreign Key to `stays_at.stay_code`.<fk table='stays_at' column='stay_code'/>","format":"integer","type":"integer"},"stay_duration":{"default":"PT0S","description":"Best to use standard ISO 8601","format":"interval","type":"string"},"reference_count":{"default":1,"format":"integer","type":"integer"},"latitude":{"format":"double precision","type":"number"},"longitude":{"format":"double precision","type":"number"},"geog":{"description":"postgis geography type default SRID 4326 Unit: degres","format":"public.geography(Point,4326)","type":"string"},"home_flag":{"default":false,"format":"boolean","type":"boolean"},"notes":{"format":"text","type":"string"},"overpass":{"format":"jsonb"},"nominatim":{"format":"jsonb"}},"type":"object"},"moorages_stays_view":{"description":"Moorages stay listing web view","properties":{"_to_name":{"format":"text","type":"string"},"_to_id":{"format":"integer","type":"integer"},"_to_time":{"format":"timestamp with time zone","type":"string"},"_from_id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"_from_name":{"format":"text","type":"string"},"_from_time":{"format":"timestamp with time zone","type":"string"},"stay_code":{"description":"Note:\nThis is a Foreign Key to `stays_at.stay_code`.<fk table='stays_at' column='stay_code'/>","format":"integer","type":"integer"},"duration":{"format":"interval","type":"string"},"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"name":{"format":"text","type":"string"}},"type":"object"},"metadata":{"description":"Stores metadata received from vessel, aka signalk plugin","required":["id","vessel_id","plugin_version","signalk_version","time","created_at","updated_at"],"properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"name":{"format":"text","type":"string"},"mmsi":{"format":"numeric","type":"number"},"client_id":{"format":"text","type":"string"},"vessel_id":{"description":"Link auth.vessels with api.metadata via FOREIGN KEY and REFERENCES","format":"text","type":"string"},"length":{"format":"double precision","type":"number"},"beam":{"format":"double precision","type":"number"},"height":{"format":"double precision","type":"number"},"ship_type":{"format":"numeric","type":"number"},"plugin_version":{"format":"text","type":"string"},"signalk_version":{"format":"text","type":"string"},"time":{"format":"timestamp with time zone","type":"string"},"platform":{"format":"text","type":"string"},"configuration":{"format":"text","type":"string"},"active":{"default":true,"description":"trigger monitor online/offline","format":"boolean","type":"boolean"},"created_at":{"default":"now()","format":"timestamp with time zone","type":"string"},"updated_at":{"default":"now()","format":"timestamp with time zone","type":"string"}},"type":"object"},"monitoring_temperatures":{"description":"Monitoring environment.%.temperature web view","properties":{"time":{"format":"timestamp with time zone","type":"string"},"key":{"format":"text","type":"string"},"value":{"format":"text","type":"string"}},"type":"object"},"logs_view":{"description":"Logs web view","properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"name":{"format":"text","type":"string"},"from":{"format":"text","type":"string"},"started":{"format":"timestamp with time zone","type":"string"},"to":{"format":"text","type":"string"},"ended":{"format":"timestamp with time zone","type":"string"},"distance":{"format":"numeric","type":"number"},"duration":{"format":"interval","type":"string"},"_from_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"_to_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"tags":{"format":"jsonb"}},"type":"object"},"logbook":{"description":"Stores generated logbook","required":["id","vessel_id","_from_time"],"properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"vessel_id":{"description":"Note:\nThis is a Foreign Key to `metadata.vessel_id`.<fk table='metadata' column='vessel_id'/>","format":"text","type":"string"},"active":{"default":false,"format":"boolean","type":"boolean"},"name":{"format":"text","type":"string"},"_from_moorage_id":{"description":"Link api.moorages with api.logbook via FOREIGN KEY and REFERENCES\n\nNote:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"_from":{"format":"text","type":"string"},"_from_lat":{"format":"double precision","type":"number"},"_from_lng":{"format":"double precision","type":"number"},"_to_moorage_id":{"description":"Link api.moorages with api.logbook via FOREIGN KEY and REFERENCES\n\nNote:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"_to":{"format":"text","type":"string"},"_to_lat":{"format":"double precision","type":"number"},"_to_lng":{"format":"double precision","type":"number"},"track_geom":{"description":"postgis geometry type EPSG:4326 Unit: degres","format":"public.geometry(LineString,4326)","type":"string"},"track_geog":{"description":"postgis geography type default SRID 4326 Unit: degres","format":"public.geography(LineString,4326)","type":"string"},"track_geojson":{"description":"store generated geojson with track metrics data using with LineString and Point features, we can not depend api.metrics table","format":"jsonb"},"_from_time":{"format":"timestamp with time zone","type":"string"},"_to_time":{"format":"timestamp with time zone","type":"string"},"distance":{"description":"in NM","format":"numeric","type":"number"},"duration":{"description":"Best to use standard ISO 8601","format":"interval","type":"string"},"avg_speed":{"format":"double precision","type":"number"},"max_speed":{"format":"double precision","type":"number"},"max_wind_speed":{"format":"double precision","type":"number"},"notes":{"format":"text","type":"string"},"extra":{"description":"computed signalk metrics of interest, runTime, currentLevel, etc","format":"jsonb"},"trip":{"description":"MobilityDB trajectory","format":"public.tgeogpoint","type":"string"},"trip_cog":{"description":"courseovergroundtrue","format":"public.tfloat","type":"string"},"trip_sog":{"description":"speedoverground","format":"public.tfloat","type":"string"},"trip_twa":{"description":"windspeedapparent","format":"public.tfloat","type":"string"},"trip_tws":{"description":"truewindspeed","format":"public.tfloat","type":"string"},"trip_twd":{"description":"truewinddirection","format":"public.tfloat","type":"string"},"trip_notes":{"format":"public.ttext","type":"string"},"trip_status":{"format":"public.ttext","type":"string"}},"type":"object"},"metrics":{"description":"Stores metrics from vessel","required":["time","vessel_id"],"properties":{"time":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"timestamp with time zone","type":"string"},"client_id":{"format":"text","type":"string"},"vessel_id":{"description":"Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `metadata.vessel_id`.<fk table='metadata' column='vessel_id'/>","format":"text","type":"string"},"latitude":{"description":"With CONSTRAINT but allow NULL value to be ignored silently by trigger","format":"double precision","type":"number"},"longitude":{"description":"With CONSTRAINT but allow NULL value to be ignored silently by trigger","format":"double precision","type":"number"},"speedoverground":{"format":"double precision","type":"number"},"courseovergroundtrue":{"format":"double precision","type":"number"},"windspeedapparent":{"format":"double precision","type":"number"},"anglespeedapparent":{"format":"double precision","type":"number"},"status":{"format":"text","type":"string"},"metrics":{"format":"jsonb"}},"type":"object"},"monitoring_view":{"description":"Monitoring static web view","properties":{"time":{"format":"timestamp with time zone","type":"string"},"offline":{"format":"boolean","type":"boolean"},"watertemperature":{"format":"jsonb"},"insidetemperature":{"format":"jsonb"},"outsidetemperature":{"format":"jsonb"},"windspeedoverground":{"format":"jsonb"},"winddirectiontrue":{"format":"jsonb"},"insidehumidity":{"format":"jsonb"},"outsidehumidity":{"format":"jsonb"},"outsidepressure":{"format":"jsonb"},"insidepressure":{"format":"jsonb"},"batterycharge":{"format":"jsonb"},"batteryvoltage":{"format":"jsonb"},"depth":{"format":"jsonb"},"geojson":{"format":"jsonb"},"name":{"format":"text","type":"string"},"status":{"format":"text","type":"string"},"live":{"format":"jsonb"}},"type":"object"},"stays_view":{"description":"Stays web view","properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"name":{"format":"text","type":"string"},"moorage":{"format":"text","type":"string"},"moorage_id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"duration":{"format":"interval","type":"string"},"stayed_at":{"format":"text","type":"string"},"stayed_at_id":{"format":"integer","type":"integer"},"arrived":{"format":"timestamp with time zone","type":"string"},"arrived_log_id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"arrived_from_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"arrived_from_moorage_name":{"format":"text","type":"string"},"departed":{"format":"timestamp with time zone","type":"string"},"departed_log_id":{"format":"integer","type":"integer"},"departed_to_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"departed_to_moorage_name":{"format":"text","type":"string"},"notes":{"format":"text","type":"string"}},"type":"object"},"monitoring_view2":{"description":"Monitoring Last whatever data from json web view","properties":{"key":{"format":"text","type":"string"},"value":{"format":"jsonb"}},"type":"object"},"stays":{"description":"Stores generated stays","required":["id","vessel_id","arrived"],"properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"vessel_id":{"description":"Note:\nThis is a Foreign Key to `metadata.vessel_id`.<fk table='metadata' column='vessel_id'/>","format":"text","type":"string"},"active":{"default":false,"format":"boolean","type":"boolean"},"moorage_id":{"description":"Link api.moorages with api.stays via FOREIGN KEY and REFERENCES\n\nNote:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"name":{"format":"text","type":"string"},"latitude":{"format":"double precision","type":"number"},"longitude":{"format":"double precision","type":"number"},"geog":{"description":"postgis geography type default SRID 4326 Unit: degres","format":"public.geography(Point,4326)","type":"string"},"arrived":{"format":"timestamp with time zone","type":"string"},"departed":{"format":"timestamp with time zone","type":"string"},"duration":{"description":"Best to use standard ISO 8601","format":"interval","type":"string"},"stay_code":{"default":1,"description":"Link api.stays_at with api.stays via FOREIGN KEY and REFERENCES\n\nNote:\nThis is a Foreign Key to `stays_at.stay_code`.<fk table='stays_at' column='stay_code'/>","format":"integer","type":"integer"},"notes":{"format":"text","type":"string"}},"type":"object"},"monitoring_view3":{"description":"Monitoring Timeseries whatever data from json web view","properties":{"time":{"format":"timestamp with time zone","type":"string"},"key":{"format":"text","type":"string"},"value":{"format":"text","type":"string"}},"type":"object"},"moorages_view":{"description":"Moorages listing web view","properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"moorage":{"format":"text","type":"string"},"default_stay":{"format":"text","type":"string"},"default_stay_id":{"format":"integer","type":"integer"},"arrivals_departures":{"format":"bigint","type":"integer"},"total_duration":{"format":"interval","type":"string"}},"type":"object"},"stay_view":{"description":"Stay web view","properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"name":{"format":"text","type":"string"},"moorage":{"format":"text","type":"string"},"moorage_id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"duration":{"format":"interval","type":"string"},"stayed_at":{"format":"text","type":"string"},"stayed_at_id":{"format":"integer","type":"integer"},"arrived":{"format":"timestamp with time zone","type":"string"},"arrived_log_id":{"format":"integer","type":"integer"},"arrived_from_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"arrived_from_moorage_name":{"format":"text","type":"string"},"departed":{"format":"timestamp with time zone","type":"string"},"departed_log_id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"departed_to_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"departed_to_moorage_name":{"format":"text","type":"string"},"notes":{"format":"text","type":"string"}},"type":"object"},"monitoring_voltage":{"description":"Monitoring electrical.%.voltage web view","properties":{"time":{"format":"timestamp with time zone","type":"string"},"key":{"format":"text","type":"string"},"value":{"format":"text","type":"string"}},"type":"object"},"explore_view":{"description":"explore_view web view","properties":{"time":{"format":"timestamp with time zone","type":"string"},"key":{"format":"text","type":"string"},"value":{"format":"text","type":"string"}},"type":"object"},"moorage_view":{"description":"Moorage details web view","properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"name":{"format":"text","type":"string"},"default_stay":{"format":"text","type":"string"},"default_stay_id":{"format":"integer","type":"integer"},"notes":{"format":"text","type":"string"},"home":{"format":"boolean","type":"boolean"},"geog":{"format":"public.geography(Point,4326)","type":"string"},"latitude":{"format":"double precision","type":"number"},"longitude":{"format":"double precision","type":"number"},"logs_count":{"format":"bigint","type":"integer"},"stays_count":{"format":"bigint","type":"integer"},"stays_sum_duration":{"format":"interval","type":"string"},"stay_first_seen":{"format":"timestamp with time zone","type":"string"},"stay_last_seen":{"format":"timestamp with time zone","type":"string"},"stay_first_seen_id":{"format":"integer","type":"integer"},"stay_last_seen_id":{"format":"integer","type":"integer"}},"type":"object"},"monitoring_humidity":{"description":"Monitoring environment.%.humidity web view","properties":{"time":{"format":"timestamp with time zone","type":"string"},"key":{"format":"text","type":"string"},"value":{"format":"text","type":"string"}},"type":"object"},"logs_mat_view":{"description":"Logs MATERIALIZED web view","properties":{"id":{"description":"Note:\nThis is a Primary Key.<pk/>","format":"integer","type":"integer"},"name":{"format":"text","type":"string"},"from":{"format":"text","type":"string"},"started":{"format":"timestamp with time zone","type":"string"},"to":{"format":"text","type":"string"},"ended":{"format":"timestamp with time zone","type":"string"},"distance":{"format":"numeric","type":"number"},"duration":{"format":"interval","type":"string"},"_from_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"},"_to_moorage_id":{"description":"Note:\nThis is a Foreign Key to `moorages.id`.<fk table='moorages' column='id'/>","format":"integer","type":"integer"}},"type":"object"},"total_info_view":{"description":"total_info_view web view","properties":{"logs":{"format":"bigint","type":"integer"},"stays":{"format":"bigint","type":"integer"},"moorages":{"format":"bigint","type":"integer"}},"type":"object"},"stats_moorages_away_view":{"description":"Statistics Moorages Time Spent Away web view","properties":{"description":{"format":"text","type":"string"},"time_spent_away_by":{"format":"interval","type":"string"}},"type":"object"}},"parameters":{"preferParams":{"name":"Prefer","description":"Preference","required":false,"enum":["params=single-object"],"in":"header","type":"string"},"preferReturn":{"name":"Prefer","description":"Preference","required":false,"enum":["return=representation","return=minimal","return=none"],"in":"header","type":"string"},"preferCount":{"name":"Prefer","description":"Preference","required":false,"enum":["count=none"],"in":"header","type":"string"},"preferPost":{"name":"Prefer","description":"Preference","required":false,"enum":["return=representation","return=minimal","return=none","resolution=ignore-duplicates","resolution=merge-duplicates"],"in":"header","type":"string"},"select":{"name":"select","description":"Filtering Columns","required":false,"in":"query","type":"string"},"on_conflict":{"name":"on_conflict","description":"On Conflict","required":false,"in":"query","type":"string"},"order":{"name":"order","description":"Ordering","required":false,"in":"query","type":"string"},"range":{"name":"Range","description":"Limiting and Pagination","required":false,"in":"header","type":"string"},"rangeUnit":{"name":"Range-Unit","description":"Limiting and Pagination","required":false,"default":"items","in":"header","type":"string"},"offset":{"name":"offset","description":"Limiting and Pagination","required":false,"in":"query","type":"string"},"limit":{"name":"limit","description":"Limiting and Pagination","required":false,"in":"query","type":"string"},"body.stays_at":{"name":"stays_at","description":"stays_at","required":false,"in":"body","schema":{"$ref":"#/definitions/stays_at"}},"rowFilter.stays_at.stay_code":{"name":"stay_code","required":false,"in":"query","type":"string"},"rowFilter.stays_at.description":{"name":"description","required":false,"in":"query","type":"string"},"body.vessels_view":{"name":"vessels_view","description":"vessels_view","required":false,"in":"body","schema":{"$ref":"#/definitions/vessels_view"}},"rowFilter.vessels_view.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.vessels_view.mmsi":{"name":"mmsi","required":false,"in":"query","type":"string"},"rowFilter.vessels_view.created_at":{"name":"created_at","required":false,"in":"query","type":"string"},"rowFilter.vessels_view.last_contact":{"name":"last_contact","required":false,"in":"query","type":"string"},"rowFilter.vessels_view.offline":{"name":"offline","required":false,"in":"query","type":"string"},"rowFilter.vessels_view.duration":{"name":"duration","required":false,"in":"query","type":"string"},"rowFilter.vessels_view.last_metrics":{"name":"last_metrics","required":false,"in":"query","type":"string"},"rowFilter.vessels_view.metrics_offline":{"name":"metrics_offline","required":false,"in":"query","type":"string"},"rowFilter.vessels_view.duration_last_metrics":{"name":"duration_last_metrics","required":false,"in":"query","type":"string"},"body.stats_moorages_view":{"name":"stats_moorages_view","description":"stats_moorages_view","required":false,"in":"body","schema":{"$ref":"#/definitions/stats_moorages_view"}},"rowFilter.stats_moorages_view.home_ports":{"name":"home_ports","required":false,"in":"query","type":"string"},"rowFilter.stats_moorages_view.unique_moorages":{"name":"unique_moorages","required":false,"in":"query","type":"string"},"rowFilter.stats_moorages_view.time_spent_at_home_port(s)":{"name":"time_spent_at_home_port(s)","required":false,"in":"query","type":"string"},"rowFilter.stats_moorages_view.time_spent_away":{"name":"time_spent_away","required":false,"in":"query","type":"string"},"body.eventlogs_view":{"name":"eventlogs_view","description":"eventlogs_view","required":false,"in":"body","schema":{"$ref":"#/definitions/eventlogs_view"}},"rowFilter.eventlogs_view.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.eventlogs_view.channel":{"name":"channel","required":false,"in":"query","type":"string"},"rowFilter.eventlogs_view.payload":{"name":"payload","required":false,"in":"query","type":"string"},"rowFilter.eventlogs_view.ref_id":{"name":"ref_id","required":false,"in":"query","type":"string"},"rowFilter.eventlogs_view.stored":{"name":"stored","required":false,"in":"query","type":"string"},"rowFilter.eventlogs_view.processed":{"name":"processed","required":false,"in":"query","type":"string"},"body.versions_view":{"name":"versions_view","description":"versions_view","required":false,"in":"body","schema":{"$ref":"#/definitions/versions_view"}},"rowFilter.versions_view.api_version":{"name":"api_version","required":false,"in":"query","type":"string"},"rowFilter.versions_view.sys_version":{"name":"sys_version","required":false,"in":"query","type":"string"},"rowFilter.versions_view.timescaledb":{"name":"timescaledb","required":false,"in":"query","type":"string"},"rowFilter.versions_view.postgis":{"name":"postgis","required":false,"in":"query","type":"string"},"rowFilter.versions_view.postgrest":{"name":"postgrest","required":false,"in":"query","type":"string"},"body.stats_logs_view":{"name":"stats_logs_view","description":"stats_logs_view","required":false,"in":"body","schema":{"$ref":"#/definitions/stats_logs_view"}},"rowFilter.stats_logs_view.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.stats_logs_view.first":{"name":"first","required":false,"in":"query","type":"string"},"rowFilter.stats_logs_view.last":{"name":"last","required":false,"in":"query","type":"string"},"rowFilter.stats_logs_view.number_of_log_entries":{"name":"number_of_log_entries","required":false,"in":"query","type":"string"},"rowFilter.stats_logs_view.max_speed":{"name":"max_speed","required":false,"in":"query","type":"string"},"rowFilter.stats_logs_view.max_wind_speed":{"name":"max_wind_speed","required":false,"in":"query","type":"string"},"rowFilter.stats_logs_view.total_distance":{"name":"total_distance","required":false,"in":"query","type":"string"},"rowFilter.stats_logs_view.total_time_underway":{"name":"total_time_underway","required":false,"in":"query","type":"string"},"rowFilter.stats_logs_view.longest_nonstop_sail":{"name":"longest_nonstop_sail","required":false,"in":"query","type":"string"},"body.log_view":{"name":"log_view","description":"log_view","required":false,"in":"body","schema":{"$ref":"#/definitions/log_view"}},"rowFilter.log_view.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.log_view.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.log_view.from":{"name":"from","required":false,"in":"query","type":"string"},"rowFilter.log_view.started":{"name":"started","required":false,"in":"query","type":"string"},"rowFilter.log_view.to":{"name":"to","required":false,"in":"query","type":"string"},"rowFilter.log_view.ended":{"name":"ended","required":false,"in":"query","type":"string"},"rowFilter.log_view.distance":{"name":"distance","required":false,"in":"query","type":"string"},"rowFilter.log_view.duration":{"name":"duration","required":false,"in":"query","type":"string"},"rowFilter.log_view.notes":{"name":"notes","required":false,"in":"query","type":"string"},"rowFilter.log_view.geojson":{"name":"geojson","required":false,"in":"query","type":"string"},"rowFilter.log_view.avg_speed":{"name":"avg_speed","required":false,"in":"query","type":"string"},"rowFilter.log_view.max_speed":{"name":"max_speed","required":false,"in":"query","type":"string"},"rowFilter.log_view.max_wind_speed":{"name":"max_wind_speed","required":false,"in":"query","type":"string"},"rowFilter.log_view.extra":{"name":"extra","required":false,"in":"query","type":"string"},"rowFilter.log_view.from_moorage_id":{"name":"from_moorage_id","required":false,"in":"query","type":"string"},"rowFilter.log_view.to_moorage_id":{"name":"to_moorage_id","required":false,"in":"query","type":"string"},"body.moorages":{"name":"moorages","description":"moorages","required":false,"in":"body","schema":{"$ref":"#/definitions/moorages"}},"rowFilter.moorages.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.moorages.vessel_id":{"name":"vessel_id","required":false,"in":"query","type":"string"},"rowFilter.moorages.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.moorages.country":{"name":"country","required":false,"in":"query","type":"string"},"rowFilter.moorages.stay_code":{"name":"stay_code","description":"Link api.stays_at with api.moorages via FOREIGN KEY and REFERENCES","required":false,"in":"query","type":"string"},"rowFilter.moorages.stay_duration":{"name":"stay_duration","description":"Best to use standard ISO 8601","required":false,"in":"query","type":"string"},"rowFilter.moorages.reference_count":{"name":"reference_count","required":false,"in":"query","type":"string"},"rowFilter.moorages.latitude":{"name":"latitude","required":false,"in":"query","type":"string"},"rowFilter.moorages.longitude":{"name":"longitude","required":false,"in":"query","type":"string"},"rowFilter.moorages.geog":{"name":"geog","description":"postgis geography type default SRID 4326 Unit: degres","required":false,"in":"query","type":"string"},"rowFilter.moorages.home_flag":{"name":"home_flag","required":false,"in":"query","type":"string"},"rowFilter.moorages.notes":{"name":"notes","required":false,"in":"query","type":"string"},"rowFilter.moorages.overpass":{"name":"overpass","required":false,"in":"query","type":"string"},"rowFilter.moorages.nominatim":{"name":"nominatim","required":false,"in":"query","type":"string"},"body.moorages_stays_view":{"name":"moorages_stays_view","description":"moorages_stays_view","required":false,"in":"body","schema":{"$ref":"#/definitions/moorages_stays_view"}},"rowFilter.moorages_stays_view._to_name":{"name":"_to_name","required":false,"in":"query","type":"string"},"rowFilter.moorages_stays_view._to_id":{"name":"_to_id","required":false,"in":"query","type":"string"},"rowFilter.moorages_stays_view._to_time":{"name":"_to_time","required":false,"in":"query","type":"string"},"rowFilter.moorages_stays_view._from_id":{"name":"_from_id","required":false,"in":"query","type":"string"},"rowFilter.moorages_stays_view._from_name":{"name":"_from_name","required":false,"in":"query","type":"string"},"rowFilter.moorages_stays_view._from_time":{"name":"_from_time","required":false,"in":"query","type":"string"},"rowFilter.moorages_stays_view.stay_code":{"name":"stay_code","required":false,"in":"query","type":"string"},"rowFilter.moorages_stays_view.duration":{"name":"duration","required":false,"in":"query","type":"string"},"rowFilter.moorages_stays_view.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.moorages_stays_view.name":{"name":"name","required":false,"in":"query","type":"string"},"body.metadata":{"name":"metadata","description":"metadata","required":false,"in":"body","schema":{"$ref":"#/definitions/metadata"}},"rowFilter.metadata.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.metadata.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.metadata.mmsi":{"name":"mmsi","required":false,"in":"query","type":"string"},"rowFilter.metadata.client_id":{"name":"client_id","required":false,"in":"query","type":"string"},"rowFilter.metadata.vessel_id":{"name":"vessel_id","description":"Link auth.vessels with api.metadata via FOREIGN KEY and REFERENCES","required":false,"in":"query","type":"string"},"rowFilter.metadata.length":{"name":"length","required":false,"in":"query","type":"string"},"rowFilter.metadata.beam":{"name":"beam","required":false,"in":"query","type":"string"},"rowFilter.metadata.height":{"name":"height","required":false,"in":"query","type":"string"},"rowFilter.metadata.ship_type":{"name":"ship_type","required":false,"in":"query","type":"string"},"rowFilter.metadata.plugin_version":{"name":"plugin_version","required":false,"in":"query","type":"string"},"rowFilter.metadata.signalk_version":{"name":"signalk_version","required":false,"in":"query","type":"string"},"rowFilter.metadata.time":{"name":"time","required":false,"in":"query","type":"string"},"rowFilter.metadata.platform":{"name":"platform","required":false,"in":"query","type":"string"},"rowFilter.metadata.configuration":{"name":"configuration","required":false,"in":"query","type":"string"},"rowFilter.metadata.active":{"name":"active","description":"trigger monitor online/offline","required":false,"in":"query","type":"string"},"rowFilter.metadata.created_at":{"name":"created_at","required":false,"in":"query","type":"string"},"rowFilter.metadata.updated_at":{"name":"updated_at","required":false,"in":"query","type":"string"},"body.monitoring_temperatures":{"name":"monitoring_temperatures","description":"monitoring_temperatures","required":false,"in":"body","schema":{"$ref":"#/definitions/monitoring_temperatures"}},"rowFilter.monitoring_temperatures.time":{"name":"time","required":false,"in":"query","type":"string"},"rowFilter.monitoring_temperatures.key":{"name":"key","required":false,"in":"query","type":"string"},"rowFilter.monitoring_temperatures.value":{"name":"value","required":false,"in":"query","type":"string"},"body.logs_view":{"name":"logs_view","description":"logs_view","required":false,"in":"body","schema":{"$ref":"#/definitions/logs_view"}},"rowFilter.logs_view.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.logs_view.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.logs_view.from":{"name":"from","required":false,"in":"query","type":"string"},"rowFilter.logs_view.started":{"name":"started","required":false,"in":"query","type":"string"},"rowFilter.logs_view.to":{"name":"to","required":false,"in":"query","type":"string"},"rowFilter.logs_view.ended":{"name":"ended","required":false,"in":"query","type":"string"},"rowFilter.logs_view.distance":{"name":"distance","required":false,"in":"query","type":"string"},"rowFilter.logs_view.duration":{"name":"duration","required":false,"in":"query","type":"string"},"rowFilter.logs_view._from_moorage_id":{"name":"_from_moorage_id","required":false,"in":"query","type":"string"},"rowFilter.logs_view._to_moorage_id":{"name":"_to_moorage_id","required":false,"in":"query","type":"string"},"rowFilter.logs_view.tags":{"name":"tags","required":false,"in":"query","type":"string"},"body.logbook":{"name":"logbook","description":"logbook","required":false,"in":"body","schema":{"$ref":"#/definitions/logbook"}},"rowFilter.logbook.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.logbook.vessel_id":{"name":"vessel_id","required":false,"in":"query","type":"string"},"rowFilter.logbook.active":{"name":"active","required":false,"in":"query","type":"string"},"rowFilter.logbook.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.logbook._from_moorage_id":{"name":"_from_moorage_id","description":"Link api.moorages with api.logbook via FOREIGN KEY and REFERENCES","required":false,"in":"query","type":"string"},"rowFilter.logbook._from":{"name":"_from","required":false,"in":"query","type":"string"},"rowFilter.logbook._from_lat":{"name":"_from_lat","required":false,"in":"query","type":"string"},"rowFilter.logbook._from_lng":{"name":"_from_lng","required":false,"in":"query","type":"string"},"rowFilter.logbook._to_moorage_id":{"name":"_to_moorage_id","description":"Link api.moorages with api.logbook via FOREIGN KEY and REFERENCES","required":false,"in":"query","type":"string"},"rowFilter.logbook._to":{"name":"_to","required":false,"in":"query","type":"string"},"rowFilter.logbook._to_lat":{"name":"_to_lat","required":false,"in":"query","type":"string"},"rowFilter.logbook._to_lng":{"name":"_to_lng","required":false,"in":"query","type":"string"},"rowFilter.logbook.track_geom":{"name":"track_geom","description":"postgis geometry type EPSG:4326 Unit: degres","required":false,"in":"query","type":"string"},"rowFilter.logbook.track_geog":{"name":"track_geog","description":"postgis geography type default SRID 4326 Unit: degres","required":false,"in":"query","type":"string"},"rowFilter.logbook.track_geojson":{"name":"track_geojson","description":"store generated geojson with track metrics data using with LineString and Point features, we can not depend api.metrics table","required":false,"in":"query","type":"string"},"rowFilter.logbook._from_time":{"name":"_from_time","required":false,"in":"query","type":"string"},"rowFilter.logbook._to_time":{"name":"_to_time","required":false,"in":"query","type":"string"},"rowFilter.logbook.distance":{"name":"distance","description":"in NM","required":false,"in":"query","type":"string"},"rowFilter.logbook.duration":{"name":"duration","description":"Best to use standard ISO 8601","required":false,"in":"query","type":"string"},"rowFilter.logbook.avg_speed":{"name":"avg_speed","required":false,"in":"query","type":"string"},"rowFilter.logbook.max_speed":{"name":"max_speed","required":false,"in":"query","type":"string"},"rowFilter.logbook.max_wind_speed":{"name":"max_wind_speed","required":false,"in":"query","type":"string"},"rowFilter.logbook.notes":{"name":"notes","required":false,"in":"query","type":"string"},"rowFilter.logbook.extra":{"name":"extra","description":"computed signalk metrics of interest, runTime, currentLevel, etc","required":false,"in":"query","type":"string"},"rowFilter.logbook.trip":{"name":"trip","description":"MobilityDB trajectory","required":false,"in":"query","type":"string"},"rowFilter.logbook.trip_cog":{"name":"trip_cog","description":"courseovergroundtrue","required":false,"in":"query","type":"string"},"rowFilter.logbook.trip_sog":{"name":"trip_sog","description":"speedoverground","required":false,"in":"query","type":"string"},"rowFilter.logbook.trip_twa":{"name":"trip_twa","description":"windspeedapparent","required":false,"in":"query","type":"string"},"rowFilter.logbook.trip_tws":{"name":"trip_tws","description":"truewindspeed","required":false,"in":"query","type":"string"},"rowFilter.logbook.trip_twd":{"name":"trip_twd","description":"truewinddirection","required":false,"in":"query","type":"string"},"rowFilter.logbook.trip_notes":{"name":"trip_notes","required":false,"in":"query","type":"string"},"rowFilter.logbook.trip_status":{"name":"trip_status","required":false,"in":"query","type":"string"},"body.metrics":{"name":"metrics","description":"metrics","required":false,"in":"body","schema":{"$ref":"#/definitions/metrics"}},"rowFilter.metrics.time":{"name":"time","required":false,"in":"query","type":"string"},"rowFilter.metrics.client_id":{"name":"client_id","required":false,"in":"query","type":"string"},"rowFilter.metrics.vessel_id":{"name":"vessel_id","required":false,"in":"query","type":"string"},"rowFilter.metrics.latitude":{"name":"latitude","description":"With CONSTRAINT but allow NULL value to be ignored silently by trigger","required":false,"in":"query","type":"string"},"rowFilter.metrics.longitude":{"name":"longitude","description":"With CONSTRAINT but allow NULL value to be ignored silently by trigger","required":false,"in":"query","type":"string"},"rowFilter.metrics.speedoverground":{"name":"speedoverground","required":false,"in":"query","type":"string"},"rowFilter.metrics.courseovergroundtrue":{"name":"courseovergroundtrue","required":false,"in":"query","type":"string"},"rowFilter.metrics.windspeedapparent":{"name":"windspeedapparent","required":false,"in":"query","type":"string"},"rowFilter.metrics.anglespeedapparent":{"name":"anglespeedapparent","required":false,"in":"query","type":"string"},"rowFilter.metrics.status":{"name":"status","required":false,"in":"query","type":"string"},"rowFilter.metrics.metrics":{"name":"metrics","required":false,"in":"query","type":"string"},"body.monitoring_view":{"name":"monitoring_view","description":"monitoring_view","required":false,"in":"body","schema":{"$ref":"#/definitions/monitoring_view"}},"rowFilter.monitoring_view.time":{"name":"time","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.offline":{"name":"offline","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.watertemperature":{"name":"watertemperature","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.insidetemperature":{"name":"insidetemperature","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.outsidetemperature":{"name":"outsidetemperature","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.windspeedoverground":{"name":"windspeedoverground","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.winddirectiontrue":{"name":"winddirectiontrue","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.insidehumidity":{"name":"insidehumidity","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.outsidehumidity":{"name":"outsidehumidity","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.outsidepressure":{"name":"outsidepressure","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.insidepressure":{"name":"insidepressure","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.batterycharge":{"name":"batterycharge","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.batteryvoltage":{"name":"batteryvoltage","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.depth":{"name":"depth","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.geojson":{"name":"geojson","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.status":{"name":"status","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view.live":{"name":"live","required":false,"in":"query","type":"string"},"body.stays_view":{"name":"stays_view","description":"stays_view","required":false,"in":"body","schema":{"$ref":"#/definitions/stays_view"}},"rowFilter.stays_view.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.stays_view.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.stays_view.moorage":{"name":"moorage","required":false,"in":"query","type":"string"},"rowFilter.stays_view.moorage_id":{"name":"moorage_id","required":false,"in":"query","type":"string"},"rowFilter.stays_view.duration":{"name":"duration","required":false,"in":"query","type":"string"},"rowFilter.stays_view.stayed_at":{"name":"stayed_at","required":false,"in":"query","type":"string"},"rowFilter.stays_view.stayed_at_id":{"name":"stayed_at_id","required":false,"in":"query","type":"string"},"rowFilter.stays_view.arrived":{"name":"arrived","required":false,"in":"query","type":"string"},"rowFilter.stays_view.arrived_log_id":{"name":"arrived_log_id","required":false,"in":"query","type":"string"},"rowFilter.stays_view.arrived_from_moorage_id":{"name":"arrived_from_moorage_id","required":false,"in":"query","type":"string"},"rowFilter.stays_view.arrived_from_moorage_name":{"name":"arrived_from_moorage_name","required":false,"in":"query","type":"string"},"rowFilter.stays_view.departed":{"name":"departed","required":false,"in":"query","type":"string"},"rowFilter.stays_view.departed_log_id":{"name":"departed_log_id","required":false,"in":"query","type":"string"},"rowFilter.stays_view.departed_to_moorage_id":{"name":"departed_to_moorage_id","required":false,"in":"query","type":"string"},"rowFilter.stays_view.departed_to_moorage_name":{"name":"departed_to_moorage_name","required":false,"in":"query","type":"string"},"rowFilter.stays_view.notes":{"name":"notes","required":false,"in":"query","type":"string"},"body.monitoring_view2":{"name":"monitoring_view2","description":"monitoring_view2","required":false,"in":"body","schema":{"$ref":"#/definitions/monitoring_view2"}},"rowFilter.monitoring_view2.key":{"name":"key","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view2.value":{"name":"value","required":false,"in":"query","type":"string"},"body.stays":{"name":"stays","description":"stays","required":false,"in":"body","schema":{"$ref":"#/definitions/stays"}},"rowFilter.stays.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.stays.vessel_id":{"name":"vessel_id","required":false,"in":"query","type":"string"},"rowFilter.stays.active":{"name":"active","required":false,"in":"query","type":"string"},"rowFilter.stays.moorage_id":{"name":"moorage_id","description":"Link api.moorages with api.stays via FOREIGN KEY and REFERENCES","required":false,"in":"query","type":"string"},"rowFilter.stays.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.stays.latitude":{"name":"latitude","required":false,"in":"query","type":"string"},"rowFilter.stays.longitude":{"name":"longitude","required":false,"in":"query","type":"string"},"rowFilter.stays.geog":{"name":"geog","description":"postgis geography type default SRID 4326 Unit: degres","required":false,"in":"query","type":"string"},"rowFilter.stays.arrived":{"name":"arrived","required":false,"in":"query","type":"string"},"rowFilter.stays.departed":{"name":"departed","required":false,"in":"query","type":"string"},"rowFilter.stays.duration":{"name":"duration","description":"Best to use standard ISO 8601","required":false,"in":"query","type":"string"},"rowFilter.stays.stay_code":{"name":"stay_code","description":"Link api.stays_at with api.stays via FOREIGN KEY and REFERENCES","required":false,"in":"query","type":"string"},"rowFilter.stays.notes":{"name":"notes","required":false,"in":"query","type":"string"},"body.monitoring_view3":{"name":"monitoring_view3","description":"monitoring_view3","required":false,"in":"body","schema":{"$ref":"#/definitions/monitoring_view3"}},"rowFilter.monitoring_view3.time":{"name":"time","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view3.key":{"name":"key","required":false,"in":"query","type":"string"},"rowFilter.monitoring_view3.value":{"name":"value","required":false,"in":"query","type":"string"},"body.moorages_view":{"name":"moorages_view","description":"moorages_view","required":false,"in":"body","schema":{"$ref":"#/definitions/moorages_view"}},"rowFilter.moorages_view.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.moorages_view.moorage":{"name":"moorage","required":false,"in":"query","type":"string"},"rowFilter.moorages_view.default_stay":{"name":"default_stay","required":false,"in":"query","type":"string"},"rowFilter.moorages_view.default_stay_id":{"name":"default_stay_id","required":false,"in":"query","type":"string"},"rowFilter.moorages_view.arrivals_departures":{"name":"arrivals_departures","required":false,"in":"query","type":"string"},"rowFilter.moorages_view.total_duration":{"name":"total_duration","required":false,"in":"query","type":"string"},"body.stay_view":{"name":"stay_view","description":"stay_view","required":false,"in":"body","schema":{"$ref":"#/definitions/stay_view"}},"rowFilter.stay_view.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.stay_view.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.stay_view.moorage":{"name":"moorage","required":false,"in":"query","type":"string"},"rowFilter.stay_view.moorage_id":{"name":"moorage_id","required":false,"in":"query","type":"string"},"rowFilter.stay_view.duration":{"name":"duration","required":false,"in":"query","type":"string"},"rowFilter.stay_view.stayed_at":{"name":"stayed_at","required":false,"in":"query","type":"string"},"rowFilter.stay_view.stayed_at_id":{"name":"stayed_at_id","required":false,"in":"query","type":"string"},"rowFilter.stay_view.arrived":{"name":"arrived","required":false,"in":"query","type":"string"},"rowFilter.stay_view.arrived_log_id":{"name":"arrived_log_id","required":false,"in":"query","type":"string"},"rowFilter.stay_view.arrived_from_moorage_id":{"name":"arrived_from_moorage_id","required":false,"in":"query","type":"string"},"rowFilter.stay_view.arrived_from_moorage_name":{"name":"arrived_from_moorage_name","required":false,"in":"query","type":"string"},"rowFilter.stay_view.departed":{"name":"departed","required":false,"in":"query","type":"string"},"rowFilter.stay_view.departed_log_id":{"name":"departed_log_id","required":false,"in":"query","type":"string"},"rowFilter.stay_view.departed_to_moorage_id":{"name":"departed_to_moorage_id","required":false,"in":"query","type":"string"},"rowFilter.stay_view.departed_to_moorage_name":{"name":"departed_to_moorage_name","required":false,"in":"query","type":"string"},"rowFilter.stay_view.notes":{"name":"notes","required":false,"in":"query","type":"string"},"body.monitoring_voltage":{"name":"monitoring_voltage","description":"monitoring_voltage","required":false,"in":"body","schema":{"$ref":"#/definitions/monitoring_voltage"}},"rowFilter.monitoring_voltage.time":{"name":"time","required":false,"in":"query","type":"string"},"rowFilter.monitoring_voltage.key":{"name":"key","required":false,"in":"query","type":"string"},"rowFilter.monitoring_voltage.value":{"name":"value","required":false,"in":"query","type":"string"},"body.explore_view":{"name":"explore_view","description":"explore_view","required":false,"in":"body","schema":{"$ref":"#/definitions/explore_view"}},"rowFilter.explore_view.time":{"name":"time","required":false,"in":"query","type":"string"},"rowFilter.explore_view.key":{"name":"key","required":false,"in":"query","type":"string"},"rowFilter.explore_view.value":{"name":"value","required":false,"in":"query","type":"string"},"body.moorage_view":{"name":"moorage_view","description":"moorage_view","required":false,"in":"body","schema":{"$ref":"#/definitions/moorage_view"}},"rowFilter.moorage_view.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.default_stay":{"name":"default_stay","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.default_stay_id":{"name":"default_stay_id","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.notes":{"name":"notes","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.home":{"name":"home","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.geog":{"name":"geog","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.latitude":{"name":"latitude","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.longitude":{"name":"longitude","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.logs_count":{"name":"logs_count","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.stays_count":{"name":"stays_count","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.stays_sum_duration":{"name":"stays_sum_duration","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.stay_first_seen":{"name":"stay_first_seen","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.stay_last_seen":{"name":"stay_last_seen","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.stay_first_seen_id":{"name":"stay_first_seen_id","required":false,"in":"query","type":"string"},"rowFilter.moorage_view.stay_last_seen_id":{"name":"stay_last_seen_id","required":false,"in":"query","type":"string"},"body.monitoring_humidity":{"name":"monitoring_humidity","description":"monitoring_humidity","required":false,"in":"body","schema":{"$ref":"#/definitions/monitoring_humidity"}},"rowFilter.monitoring_humidity.time":{"name":"time","required":false,"in":"query","type":"string"},"rowFilter.monitoring_humidity.key":{"name":"key","required":false,"in":"query","type":"string"},"rowFilter.monitoring_humidity.value":{"name":"value","required":false,"in":"query","type":"string"},"body.logs_mat_view":{"name":"logs_mat_view","description":"logs_mat_view","required":false,"in":"body","schema":{"$ref":"#/definitions/logs_mat_view"}},"rowFilter.logs_mat_view.id":{"name":"id","required":false,"in":"query","type":"string"},"rowFilter.logs_mat_view.name":{"name":"name","required":false,"in":"query","type":"string"},"rowFilter.logs_mat_view.from":{"name":"from","required":false,"in":"query","type":"string"},"rowFilter.logs_mat_view.started":{"name":"started","required":false,"in":"query","type":"string"},"rowFilter.logs_mat_view.to":{"name":"to","required":false,"in":"query","type":"string"},"rowFilter.logs_mat_view.ended":{"name":"ended","required":false,"in":"query","type":"string"},"rowFilter.logs_mat_view.distance":{"name":"distance","required":false,"in":"query","type":"string"},"rowFilter.logs_mat_view.duration":{"name":"duration","required":false,"in":"query","type":"string"},"rowFilter.logs_mat_view._from_moorage_id":{"name":"_from_moorage_id","required":false,"in":"query","type":"string"},"rowFilter.logs_mat_view._to_moorage_id":{"name":"_to_moorage_id","required":false,"in":"query","type":"string"},"body.total_info_view":{"name":"total_info_view","description":"total_info_view","required":false,"in":"body","schema":{"$ref":"#/definitions/total_info_view"}},"rowFilter.total_info_view.logs":{"name":"logs","required":false,"in":"query","type":"string"},"rowFilter.total_info_view.stays":{"name":"stays","required":false,"in":"query","type":"string"},"rowFilter.total_info_view.moorages":{"name":"moorages","required":false,"in":"query","type":"string"},"body.stats_moorages_away_view":{"name":"stats_moorages_away_view","description":"stats_moorages_away_view","required":false,"in":"body","schema":{"$ref":"#/definitions/stats_moorages_away_view"}},"rowFilter.stats_moorages_away_view.description":{"name":"description","required":false,"in":"query","type":"string"},"rowFilter.stats_moorages_away_view.time_spent_away_by":{"name":"time_spent_away_by","required":false,"in":"query","type":"string"}},"externalDocs":{"description":"PostgREST Documentation","url":"https://postgrest.org/en/v12/references/api.html"}}