Last active
October 31, 2022 12:52
-
-
Save jalallinux/91b2d65d50d70a9eac5ccf5ab931f085 to your computer and use it in GitHub Desktop.
Shinobi.video Postman Collection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "f49590d5-f725-448d-ba8f-11e895fed806", | |
"name": "Shinobi CCTV", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "SuperAdmin", | |
"item": [ | |
{ | |
"name": "Administrator", | |
"item": [ | |
{ | |
"name": "Administrator | List", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/super/{{super_auth_token}}/accounts/list", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"super", | |
"{{super_auth_token}}", | |
"accounts", | |
"list" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Administrator | Add", | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"data\": {\n \"mail\": \"tenant3@shinobi.video\",\n \"pass\": \"tenant3@shinobi.video\",\n \"pass_again\": \"tenant3@shinobi.video\",\n \"ke\": \"tenantuuid3\",\n \"details\": {\n \"factorAuth\": \"0\",\n \"size\": \"10000\",\n \"days\": \"5\",\n \"event_days\": \"10\",\n \"log_days\": \"10\",\n \"max_camera\": \"\",\n \"permissions\": \"all\",\n \"edit_size\": \"1\",\n \"edit_days\": \"1\",\n \"edit_event_days\": \"1\",\n \"edit_log_days\": \"1\",\n \"use_admin\": \"1\",\n \"use_aws_s3\": \"1\",\n \"use_webdav\": \"1\",\n \"use_discordbot\": \"1\",\n \"use_ldap\": \"1\"\n }\n }\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{host_url}}/super/{{super_auth_token}}/accounts/registerAdmin", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"super", | |
"{{super_auth_token}}", | |
"accounts", | |
"registerAdmin" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Administrator | Update", | |
"request": { | |
"method": "PUT", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"account\": {\n \"mail\": \"tenant3@shinobi.video\",\n \"ke\": \"tenantuuid3\",\n \"uid\": \"k5LOiwaZ6U\"\n },\n \"data\": {\n \"mail\": \"tenant3@shinobi.video\",\n \"pass\": \"tenant3@shinobi.video\",\n \"pass_again\": \"tenant3@shinobi.video\",\n \"ke\": \"tenantuuid3\",\n \"details\": {\n \"factorAuth\": \"0\",\n \"size\": \"10000\",\n \"days\": \"5\",\n \"event_days\": \"10\",\n \"log_days\": \"10\",\n \"max_camera\": \"\",\n \"permissions\": \"all\",\n \"edit_size\": \"1\",\n \"edit_days\": \"1\",\n \"edit_event_days\": \"1\",\n \"edit_log_days\": \"1\",\n \"use_admin\": \"1\",\n \"use_aws_s3\": \"1\",\n \"use_webdav\": \"1\",\n \"use_discordbot\": \"1\",\n \"use_ldap\": \"1\"\n }\n }\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{host_url}}/super/{{super_auth_token}}/accounts/editAdmin", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"super", | |
"{{super_auth_token}}", | |
"accounts", | |
"editAdmin" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Administrator | Delete", | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"account\": {\n \"mail\": \"tenant3@shinobi.video\",\n \"ke\": \"tenantuuid3\",\n \"uid\": \"hfmWL3q8Ew\"\n },\n \"deleteSubAccounts\": \"1\",\n \"deleteMonitors\": \"1\",\n \"deleteVideos\": \"1\",\n \"deleteEvents\": \"1\"\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{host_url}}/super/{{super_auth_token}}/accounts/deleteAdmin", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"super", | |
"{{super_auth_token}}", | |
"accounts", | |
"deleteAdmin" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Setting", | |
"item": [ | |
{ | |
"name": "Setting | Update", | |
"request": { | |
"method": "PUT", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"data\": {\n \"mail\": \"tenant3@shinobi.video\",\n \"pass\": \"tenant3@shinobi.video\",\n \"pass_again\": \"tenant3@shinobi.video\",\n \"ke\": \"tenantuuid3\",\n \"details\": {\n \"factorAuth\": \"0\",\n \"size\": \"10000\",\n \"days\": \"5\",\n \"event_days\": \"10\",\n \"log_days\": \"10\",\n \"max_camera\": \"\",\n \"permissions\": \"all\",\n \"edit_size\": \"1\",\n \"edit_days\": \"1\",\n \"edit_event_days\": \"1\",\n \"edit_log_days\": \"1\",\n \"use_admin\": \"1\",\n \"use_aws_s3\": \"1\",\n \"use_webdav\": \"1\",\n \"use_discordbot\": \"1\",\n \"use_ldap\": \"1\"\n }\n }\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{host_url}}/super/{{super_auth_token}}/accounts/saveSettings", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"super", | |
"{{super_auth_token}}", | |
"accounts", | |
"saveSettings" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Logs", | |
"item": [ | |
{ | |
"name": "Logs | List", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/super/{{super_auth_token}}/logs", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"super", | |
"{{super_auth_token}}", | |
"logs" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Logs | Delete", | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/super/{{super_auth_token}}/logs/delete", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"super", | |
"{{super_auth_token}}", | |
"logs", | |
"delete" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "Auth", | |
"item": [ | |
{ | |
"name": "Auth | Login", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('auth_token', res.$user.auth_token);", | |
"pm.collectionVariables.set('group_key', res.$user.ke);" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"mail\": \"\",\n \"pass\": \"\"\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{host_url}}?json=true", | |
"host": [ | |
"{{host_url}}" | |
], | |
"query": [ | |
{ | |
"key": "json", | |
"value": "true" | |
} | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "API Key", | |
"item": [ | |
{ | |
"name": "API Key | List", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/api/{{group_key}}/list", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"api", | |
"{{group_key}}", | |
"list" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "API Key | Add", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('auth_token', res.api.code);" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"data\": {\n \"ip\": \"0.0.0.0\",\n \"details\": {\n \"auth_socket\": \"1\",\n \"get_monitors\": \"1\",\n \"control_monitors\": \"1\",\n \"get_logs\": \"1\",\n \"watch_stream\": \"1\",\n \"watch_snapshot\": \"1\",\n \"watch_videos\": \"1\",\n \"delete_videos\": \"1\"\n }\n }\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/api/{{group_key}}/add", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"api", | |
"{{group_key}}", | |
"add" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "API Key | Delete", | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"data\": {\n \"code\": \"{{auth_token}}\"\n }\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/api/{{group_key}}/delete", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"api", | |
"{{group_key}}", | |
"delete" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Monitor", | |
"item": [ | |
{ | |
"name": "Monitor | List", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('monitor_id', res[0].mid);" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/monitor/{{group_key}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"monitor", | |
"{{group_key}}" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Monitor | Single", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('monitor_id', res[0].mid);" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/monitor/{{group_key}}/{{monitor_id}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"monitor", | |
"{{group_key}}", | |
"{{monitor_id}}" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Monitor | Add", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('monitor_id', pm.collectionVariables.get('new_monitor_id'));" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"data\": {\n \"ke\": \"tenantuuid\",\n \"name\": \"192.168.200.110\",\n \"shto\": \"[]\",\n \"shfr\": \"[]\",\n \"details\": {\n \"max_keep_days\": \"\",\n \"notes\": \"\",\n \"dir\": \"\",\n \"auto_compress_videos\": null,\n \"rtmp_key\": \"\",\n \"auto_host_enable\": \"1\",\n \"auto_host\": \"rtsp://admin:Aa123456!@192.168.200.110:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif\",\n \"rtsp_transport\": \"tcp\",\n \"muser\": \"admin\",\n \"mpass\": \"Aa123456!\",\n \"port_force\": \"0\",\n \"fatal_max\": \"0\",\n \"skip_ping\": null,\n \"is_onvif\": null,\n \"onvif_non_standard\": null,\n \"onvif_port\": \"\",\n \"primary_input\": \"0\",\n \"aduration\": \"1000000\",\n \"probesize\": \"1000000\",\n \"stream_loop\": \"0\",\n \"sfps\": \"\",\n \"wall_clock_timestamp_ignore\": null,\n \"accelerator\": \"0\",\n \"hwaccel\": \"auto\",\n \"hwaccel_vcodec\": \"\",\n \"hwaccel_device\": \"\",\n \"stream_type\": \"hls\",\n \"stream_flv_type\": \"ws\",\n \"stream_flv_maxLatency\": \"\",\n \"stream_mjpeg_clients\": \"\",\n \"stream_vcodec\": \"copy\",\n \"stream_acodec\": \"no\",\n \"hls_time\": \"2\",\n \"hls_list_size\": \"3\",\n \"preset_stream\": \"ultrafast\",\n \"stream_quality\": \"15\",\n \"stream_fps\": \"2\",\n \"stream_scale_x\": \"\",\n \"stream_scale_y\": \"\",\n \"stream_rotate\": null,\n \"signal_check\": \"10\",\n \"signal_check_log\": \"0\",\n \"stream_vf\": \"\",\n \"tv_channel\": \"0\",\n \"tv_channel_id\": \"\",\n \"tv_channel_group_title\": \"\",\n \"stream_timestamp\": \"0\",\n \"stream_timestamp_font\": \"\",\n \"stream_timestamp_font_size\": \"\",\n \"stream_timestamp_color\": \"\",\n \"stream_timestamp_box_color\": \"\",\n \"stream_timestamp_x\": \"\",\n \"stream_timestamp_y\": \"\",\n \"stream_watermark\": \"0\",\n \"stream_watermark_location\": \"\",\n \"stream_watermark_position\": \"tr\",\n \"snap\": \"0\",\n \"snap_fps\": \"\",\n \"snap_scale_x\": \"\",\n \"snap_scale_y\": \"\",\n \"snap_vf\": \"\",\n \"vcodec\": \"copy\",\n \"crf\": \"1\",\n \"preset_record\": \"\",\n \"acodec\": \"no\",\n \"record_scale_y\": \"\",\n \"record_scale_x\": \"\",\n \"cutoff\": \"15\",\n \"rotate\": null,\n \"vf\": \"\",\n \"timestamp\": \"0\",\n \"timestamp_font\": \"\",\n \"timestamp_font_size\": \"10\",\n \"timestamp_color\": \"white\",\n \"timestamp_box_color\": \"0x00000000@1\",\n \"timestamp_x\": \"(w-tw)/2\",\n \"timestamp_y\": \"0\",\n \"watermark\": \"0\",\n \"watermark_location\": \"\",\n \"watermark_position\": \"tr\",\n \"record_timelapse\": null,\n \"record_timelapse_mp4\": null,\n \"record_timelapse_fps\": null,\n \"record_timelapse_scale_x\": \"\",\n \"record_timelapse_scale_y\": \"\",\n \"record_timelapse_vf\": \"\",\n \"record_timelapse_watermark\": null,\n \"record_timelapse_watermark_location\": \"\",\n \"record_timelapse_watermark_position\": null,\n \"detector\": \"0\",\n \"onvif_events\": null,\n \"detector_save\": \"1\",\n \"use_detector_filters\": \"0\",\n \"use_detector_filters_object\": \"1\",\n \"detector_record_method\": \"sip\",\n \"detector_trigger\": \"1\",\n \"detector_buffer_seconds_before\": \"\",\n \"detector_timeout\": \"0.5\",\n \"watchdog_reset\": \"1\",\n \"detector_delete_motionless_videos\": \"0\",\n \"detector_http_api\": null,\n \"detector_send_frames\": \"1\",\n \"detector_fps\": \"\",\n \"detector_scale_x\": \"640\",\n \"detector_scale_y\": \"480\",\n \"detector_lock_timeout\": \"\",\n \"detector_send_video_length\": \"\",\n \"snap_seconds_inward\": \"\",\n \"cords\": \"[]\",\n \"detector_filters\": \"{\\\"7cam3\\\":{\\\"id\\\":\\\"7cam3\\\",\\\"enabled\\\":\\\"1\\\",\\\"filter_name\\\":\\\"Standard Object Detection Filter\\\",\\\"where\\\":[{\\\"p1\\\":\\\"tag\\\",\\\"p2\\\":\\\"!indexOf\\\",\\\"p3\\\":\\\"person\\\",\\\"p4\\\":\\\"&&\\\"},{\\\"p1\\\":\\\"tag\\\",\\\"p2\\\":\\\"!indexOf\\\",\\\"p3\\\":\\\"car\\\",\\\"p4\\\":\\\"&&\\\"},{\\\"p1\\\":\\\"tag\\\",\\\"p2\\\":\\\"!indexOf\\\",\\\"p3\\\":\\\"truck\\\",\\\"p4\\\":\\\"&&\\\"}],\\\"actions\\\":{\\\"halt\\\":\\\"1\\\",\\\"save\\\":\\\"\\\",\\\"indifference\\\":\\\"\\\",\\\"webhook\\\":\\\"\\\",\\\"command\\\":\\\"\\\",\\\"record\\\":\\\"\\\",\\\"emailClient\\\":\\\"\\\",\\\"global_webhook\\\":\\\"\\\"}}}\",\n \"det_multi_trig\": null,\n \"group_detector_multi\": [],\n \"detector_pam\": \"1\",\n \"detector_sensitivity\": \"\",\n \"detector_max_sensitivity\": \"\",\n \"detector_threshold\": \"1\",\n \"detector_color_threshold\": \"\",\n \"inverse_trigger\": null,\n \"detector_frame\": \"0\",\n \"detector_motion_tile_mode\": null,\n \"detector_tile_size\": \"\",\n \"detector_noise_filter\": null,\n \"detector_noise_filter_range\": \"\",\n \"detector_use_detect_object\": \"0\",\n \"detector_send_frames_object\": null,\n \"detector_obj_count_in_region\": null,\n \"detector_obj_region\": null,\n \"detector_use_motion\": \"1\",\n \"detector_fps_object\": \"\",\n \"detector_scale_x_object\": \"\",\n \"detector_scale_y_object\": \"\",\n \"detector_buffer_vcodec\": \"auto\",\n \"detector_buffer_acodec\": null,\n \"detector_buffer_fps\": \"\",\n \"event_record_scale_x\": \"\",\n \"event_record_scale_y\": \"\",\n \"event_record_aduration\": \"\",\n \"event_record_probesize\": \"\",\n \"detector_audio\": null,\n \"detector_audio_min_db\": \"\",\n \"detector_audio_max_db\": \"\",\n \"detector_webhook\": \"0\",\n \"detector_webhook_timeout\": \"\",\n \"detector_webhook_url\": \"\",\n \"detector_webhook_method\": null,\n \"detector_command_enable\": \"0\",\n \"detector_command\": \"\",\n \"detector_command_timeout\": \"\",\n \"detector_notrigger\": \"0\",\n \"detector_notrigger_timeout\": \"\",\n \"detector_notrigger_discord\": null,\n \"detector_notrigger_webhook\": null,\n \"detector_notrigger_webhook_url\": \"\",\n \"detector_notrigger_webhook_method\": null,\n \"detector_notrigger_command_enable\": null,\n \"detector_notrigger_command\": \"\",\n \"detector_notrigger_command_timeout\": \"\",\n \"control\": \"0\",\n \"control_base_url\": \"\",\n \"control_url_method\": null,\n \"control_digest_auth\": null,\n \"control_stop\": \"0\",\n \"control_url_stop_timeout\": \"\",\n \"control_turn_speed\": \"\",\n \"detector_ptz_follow\": null,\n \"detector_ptz_follow_target\": \"\",\n \"control_url_center\": \"\",\n \"control_url_left\": \"\",\n \"control_url_left_stop\": \"\",\n \"control_url_right\": \"\",\n \"control_url_right_stop\": \"\",\n \"control_url_up\": \"\",\n \"control_url_up_stop\": \"\",\n \"control_url_down\": \"\",\n \"control_url_down_stop\": \"\",\n \"control_url_enable_nv\": \"\",\n \"control_url_disable_nv\": \"\",\n \"control_url_zoom_out\": \"\",\n \"control_url_zoom_out_stop\": \"\",\n \"control_url_zoom_in\": \"\",\n \"control_url_zoom_in_stop\": \"\",\n \"control_invert_y\": null,\n \"groups\": [],\n \"notify_emailClient\": null,\n \"notify_global_webhook\": null,\n \"notify_onUnexpectedExit\": null,\n \"notify_useRawSnapshot\": null,\n \"detector_emailClient_timeout\": \"\",\n \"cust_input\": \"\",\n \"cust_stream\": \"\",\n \"cust_snap\": \"\",\n \"cust_record\": \"\",\n \"cust_detect\": \"\",\n \"cust_detect_object\": \"\",\n \"cust_sip_record\": \"\",\n \"custom_output\": \"\",\n \"loglevel\": \"warning\",\n \"sqllog\": \"0\",\n \"detector_cascades\": \"\",\n \"stream_channels\": \"\",\n \"input_maps\": \"\",\n \"input_map_choices\": {\n \"stream\": [],\n \"snap\": [],\n \"record\": [],\n \"record_timelapse\": [],\n \"detector\": [],\n \"detector_object\": [],\n \"detector_sip_buffer\": []\n },\n \"substream\": {\n \"input\": {\n \"type\": \"h264\",\n \"stream_flv_type\": null,\n \"fulladdress\": \"\",\n \"sfps\": \"\",\n \"aduration\": \"\",\n \"probesize\": \"\",\n \"stream_loop\": null,\n \"rtsp_transport\": \"\",\n \"accelerator\": \"0\",\n \"hwaccel\": null,\n \"hwaccel_vcodec\": \"\",\n \"hwaccel_device\": \"\",\n \"cust_input\": \"\"\n },\n \"output\": {\n \"stream_type\": \"hls\",\n \"stream_mjpeg_clients\": \"\",\n \"stream_vcodec\": \"copy\",\n \"stream_acodec\": \"no\",\n \"hls_time\": \"\",\n \"hls_list_size\": \"\",\n \"preset_stream\": \"\",\n \"stream_quality\": \"\",\n \"stream_v_br\": \"\",\n \"stream_a_br\": \"\",\n \"stream_fps\": \"\",\n \"stream_scale_x\": \"640\",\n \"stream_scale_y\": \"480\",\n \"stream_rotate\": null,\n \"svf\": \"\",\n \"cust_stream\": \"\"\n }\n }\n },\n \"type\": \"h264\",\n \"ext\": \"mp4\",\n \"protocol\": \"rtsp\",\n \"host\": \"192.168.200.110\",\n \"path\": \"/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif\",\n \"port\": 554,\n \"fps\": 1,\n \"mode\": \"start\",\n \"width\": 640,\n \"height\": 480,\n \"saveDir\": \"\",\n \"currentlyWatching\": 0,\n \"status\": \"Watching\",\n \"code\": \"2\",\n \"streams\": [\n \"/{{auth_token}}/hls/tenantuuid1/{{new_monitor_id}}/s.m3u8\"\n ],\n \"streamsSortedByType\": {\n \"hls\": [\n \"/{{auth_token}}/hls/tenantuuid1/{{new_monitor_id}}/s.m3u8\"\n ]\n }\n }\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/configureMonitor/{{group_key}}/{{new_monitor_id}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"configureMonitor", | |
"{{group_key}}", | |
"{{new_monitor_id}}" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Monitor | Update", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('monitor_id', pm.collectionVariables.get('new_monitor_id'));" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "PUT", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"data\": {\n \"ke\": \"tenantuuid\",\n \"name\": \"192.168.200.110\",\n \"shto\": \"[]\",\n \"shfr\": \"[]\",\n \"details\": {\n \"max_keep_days\": \"\",\n \"notes\": \"\",\n \"dir\": \"\",\n \"auto_compress_videos\": null,\n \"rtmp_key\": \"\",\n \"auto_host_enable\": \"1\",\n \"auto_host\": \"rtsp://admin:Aa123456!@192.168.200.110:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif\",\n \"rtsp_transport\": \"tcp\",\n \"muser\": \"admin\",\n \"mpass\": \"Aa123456!\",\n \"port_force\": \"0\",\n \"fatal_max\": \"0\",\n \"skip_ping\": null,\n \"is_onvif\": null,\n \"onvif_non_standard\": null,\n \"onvif_port\": \"\",\n \"primary_input\": \"0\",\n \"aduration\": \"1000000\",\n \"probesize\": \"1000000\",\n \"stream_loop\": \"0\",\n \"sfps\": \"\",\n \"wall_clock_timestamp_ignore\": null,\n \"accelerator\": \"0\",\n \"hwaccel\": \"auto\",\n \"hwaccel_vcodec\": \"\",\n \"hwaccel_device\": \"\",\n \"stream_type\": \"hls\",\n \"stream_flv_type\": \"ws\",\n \"stream_flv_maxLatency\": \"\",\n \"stream_mjpeg_clients\": \"\",\n \"stream_vcodec\": \"copy\",\n \"stream_acodec\": \"no\",\n \"hls_time\": \"2\",\n \"hls_list_size\": \"3\",\n \"preset_stream\": \"ultrafast\",\n \"stream_quality\": \"15\",\n \"stream_fps\": \"2\",\n \"stream_scale_x\": \"\",\n \"stream_scale_y\": \"\",\n \"stream_rotate\": null,\n \"signal_check\": \"10\",\n \"signal_check_log\": \"0\",\n \"stream_vf\": \"\",\n \"tv_channel\": \"0\",\n \"tv_channel_id\": \"\",\n \"tv_channel_group_title\": \"\",\n \"stream_timestamp\": \"0\",\n \"stream_timestamp_font\": \"\",\n \"stream_timestamp_font_size\": \"\",\n \"stream_timestamp_color\": \"\",\n \"stream_timestamp_box_color\": \"\",\n \"stream_timestamp_x\": \"\",\n \"stream_timestamp_y\": \"\",\n \"stream_watermark\": \"0\",\n \"stream_watermark_location\": \"\",\n \"stream_watermark_position\": \"tr\",\n \"snap\": \"0\",\n \"snap_fps\": \"\",\n \"snap_scale_x\": \"\",\n \"snap_scale_y\": \"\",\n \"snap_vf\": \"\",\n \"vcodec\": \"copy\",\n \"crf\": \"1\",\n \"preset_record\": \"\",\n \"acodec\": \"no\",\n \"record_scale_y\": \"\",\n \"record_scale_x\": \"\",\n \"cutoff\": \"15\",\n \"rotate\": null,\n \"vf\": \"\",\n \"timestamp\": \"0\",\n \"timestamp_font\": \"\",\n \"timestamp_font_size\": \"10\",\n \"timestamp_color\": \"white\",\n \"timestamp_box_color\": \"0x00000000@1\",\n \"timestamp_x\": \"(w-tw)/2\",\n \"timestamp_y\": \"0\",\n \"watermark\": \"0\",\n \"watermark_location\": \"\",\n \"watermark_position\": \"tr\",\n \"record_timelapse\": null,\n \"record_timelapse_mp4\": null,\n \"record_timelapse_fps\": null,\n \"record_timelapse_scale_x\": \"\",\n \"record_timelapse_scale_y\": \"\",\n \"record_timelapse_vf\": \"\",\n \"record_timelapse_watermark\": null,\n \"record_timelapse_watermark_location\": \"\",\n \"record_timelapse_watermark_position\": null,\n \"detector\": \"0\",\n \"onvif_events\": null,\n \"detector_save\": \"1\",\n \"use_detector_filters\": \"0\",\n \"use_detector_filters_object\": \"1\",\n \"detector_record_method\": \"sip\",\n \"detector_trigger\": \"1\",\n \"detector_buffer_seconds_before\": \"\",\n \"detector_timeout\": \"0.5\",\n \"watchdog_reset\": \"1\",\n \"detector_delete_motionless_videos\": \"0\",\n \"detector_http_api\": null,\n \"detector_send_frames\": \"1\",\n \"detector_fps\": \"\",\n \"detector_scale_x\": \"640\",\n \"detector_scale_y\": \"480\",\n \"detector_lock_timeout\": \"\",\n \"detector_send_video_length\": \"\",\n \"snap_seconds_inward\": \"\",\n \"cords\": \"[]\",\n \"detector_filters\": \"{\\\"7cam3\\\":{\\\"id\\\":\\\"7cam3\\\",\\\"enabled\\\":\\\"1\\\",\\\"filter_name\\\":\\\"Standard Object Detection Filter\\\",\\\"where\\\":[{\\\"p1\\\":\\\"tag\\\",\\\"p2\\\":\\\"!indexOf\\\",\\\"p3\\\":\\\"person\\\",\\\"p4\\\":\\\"&&\\\"},{\\\"p1\\\":\\\"tag\\\",\\\"p2\\\":\\\"!indexOf\\\",\\\"p3\\\":\\\"car\\\",\\\"p4\\\":\\\"&&\\\"},{\\\"p1\\\":\\\"tag\\\",\\\"p2\\\":\\\"!indexOf\\\",\\\"p3\\\":\\\"truck\\\",\\\"p4\\\":\\\"&&\\\"}],\\\"actions\\\":{\\\"halt\\\":\\\"1\\\",\\\"save\\\":\\\"\\\",\\\"indifference\\\":\\\"\\\",\\\"webhook\\\":\\\"\\\",\\\"command\\\":\\\"\\\",\\\"record\\\":\\\"\\\",\\\"emailClient\\\":\\\"\\\",\\\"global_webhook\\\":\\\"\\\"}}}\",\n \"det_multi_trig\": null,\n \"group_detector_multi\": [],\n \"detector_pam\": \"1\",\n \"detector_sensitivity\": \"\",\n \"detector_max_sensitivity\": \"\",\n \"detector_threshold\": \"1\",\n \"detector_color_threshold\": \"\",\n \"inverse_trigger\": null,\n \"detector_frame\": \"0\",\n \"detector_motion_tile_mode\": null,\n \"detector_tile_size\": \"\",\n \"detector_noise_filter\": null,\n \"detector_noise_filter_range\": \"\",\n \"detector_use_detect_object\": \"0\",\n \"detector_send_frames_object\": null,\n \"detector_obj_count_in_region\": null,\n \"detector_obj_region\": null,\n \"detector_use_motion\": \"1\",\n \"detector_fps_object\": \"\",\n \"detector_scale_x_object\": \"\",\n \"detector_scale_y_object\": \"\",\n \"detector_buffer_vcodec\": \"auto\",\n \"detector_buffer_acodec\": null,\n \"detector_buffer_fps\": \"\",\n \"event_record_scale_x\": \"\",\n \"event_record_scale_y\": \"\",\n \"event_record_aduration\": \"\",\n \"event_record_probesize\": \"\",\n \"detector_audio\": null,\n \"detector_audio_min_db\": \"\",\n \"detector_audio_max_db\": \"\",\n \"detector_webhook\": \"0\",\n \"detector_webhook_timeout\": \"\",\n \"detector_webhook_url\": \"\",\n \"detector_webhook_method\": null,\n \"detector_command_enable\": \"0\",\n \"detector_command\": \"\",\n \"detector_command_timeout\": \"\",\n \"detector_notrigger\": \"0\",\n \"detector_notrigger_timeout\": \"\",\n \"detector_notrigger_discord\": null,\n \"detector_notrigger_webhook\": null,\n \"detector_notrigger_webhook_url\": \"\",\n \"detector_notrigger_webhook_method\": null,\n \"detector_notrigger_command_enable\": null,\n \"detector_notrigger_command\": \"\",\n \"detector_notrigger_command_timeout\": \"\",\n \"control\": \"0\",\n \"control_base_url\": \"\",\n \"control_url_method\": null,\n \"control_digest_auth\": null,\n \"control_stop\": \"0\",\n \"control_url_stop_timeout\": \"\",\n \"control_turn_speed\": \"\",\n \"detector_ptz_follow\": null,\n \"detector_ptz_follow_target\": \"\",\n \"control_url_center\": \"\",\n \"control_url_left\": \"\",\n \"control_url_left_stop\": \"\",\n \"control_url_right\": \"\",\n \"control_url_right_stop\": \"\",\n \"control_url_up\": \"\",\n \"control_url_up_stop\": \"\",\n \"control_url_down\": \"\",\n \"control_url_down_stop\": \"\",\n \"control_url_enable_nv\": \"\",\n \"control_url_disable_nv\": \"\",\n \"control_url_zoom_out\": \"\",\n \"control_url_zoom_out_stop\": \"\",\n \"control_url_zoom_in\": \"\",\n \"control_url_zoom_in_stop\": \"\",\n \"control_invert_y\": null,\n \"groups\": [],\n \"notify_emailClient\": null,\n \"notify_global_webhook\": null,\n \"notify_onUnexpectedExit\": null,\n \"notify_useRawSnapshot\": null,\n \"detector_emailClient_timeout\": \"\",\n \"cust_input\": \"\",\n \"cust_stream\": \"\",\n \"cust_snap\": \"\",\n \"cust_record\": \"\",\n \"cust_detect\": \"\",\n \"cust_detect_object\": \"\",\n \"cust_sip_record\": \"\",\n \"custom_output\": \"\",\n \"loglevel\": \"warning\",\n \"sqllog\": \"0\",\n \"detector_cascades\": \"\",\n \"stream_channels\": \"\",\n \"input_maps\": \"\",\n \"input_map_choices\": {\n \"stream\": [],\n \"snap\": [],\n \"record\": [],\n \"record_timelapse\": [],\n \"detector\": [],\n \"detector_object\": [],\n \"detector_sip_buffer\": []\n },\n \"substream\": {\n \"input\": {\n \"type\": \"h264\",\n \"stream_flv_type\": null,\n \"fulladdress\": \"\",\n \"sfps\": \"\",\n \"aduration\": \"\",\n \"probesize\": \"\",\n \"stream_loop\": null,\n \"rtsp_transport\": \"\",\n \"accelerator\": \"0\",\n \"hwaccel\": null,\n \"hwaccel_vcodec\": \"\",\n \"hwaccel_device\": \"\",\n \"cust_input\": \"\"\n },\n \"output\": {\n \"stream_type\": \"hls\",\n \"stream_mjpeg_clients\": \"\",\n \"stream_vcodec\": \"copy\",\n \"stream_acodec\": \"no\",\n \"hls_time\": \"\",\n \"hls_list_size\": \"\",\n \"preset_stream\": \"\",\n \"stream_quality\": \"\",\n \"stream_v_br\": \"\",\n \"stream_a_br\": \"\",\n \"stream_fps\": \"\",\n \"stream_scale_x\": \"640\",\n \"stream_scale_y\": \"480\",\n \"stream_rotate\": null,\n \"svf\": \"\",\n \"cust_stream\": \"\"\n }\n }\n },\n \"type\": \"h264\",\n \"ext\": \"mp4\",\n \"protocol\": \"rtsp\",\n \"host\": \"192.168.200.110\",\n \"path\": \"/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif\",\n \"port\": 554,\n \"fps\": 1,\n \"mode\": \"start\",\n \"width\": 640,\n \"height\": 480,\n \"saveDir\": \"\",\n \"currentlyWatching\": 0,\n \"status\": \"Watching\",\n \"code\": \"2\",\n \"streams\": [\n \"/{{auth_token}}/hls/tenantuuid1/{{new_monitor_id}}/s.m3u8\"\n ],\n \"streamsSortedByType\": {\n \"hls\": [\n \"/{{auth_token}}/hls/tenantuuid1/{{new_monitor_id}}/s.m3u8\"\n ]\n }\n }\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/configureMonitor/{{group_key}}/{{monitor_id}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"configureMonitor", | |
"{{group_key}}", | |
"{{monitor_id}}" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Monitor | Delete", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('monitor_id', pm.collectionVariables.get('new_monitor_id'));" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/configureMonitor/{{group_key}}/{{monitor_id}}/delete", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"configureMonitor", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"delete" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "TV Channel", | |
"item": [ | |
{ | |
"name": "TV Channel | List", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/tvChannels/{{group_key}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"tvChannels", | |
"{{group_key}}" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Stream", | |
"item": [ | |
{ | |
"name": "Stream | JPEG", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/jpeg/{{group_key}}/{{monitor_id}}/s.jpg", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"jpeg", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"s.jpg" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Stream | MJPEG", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/mjpeg/{{group_key}}/{{monitor_id}}?full=true", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"mjpeg", | |
"{{group_key}}", | |
"{{monitor_id}}" | |
], | |
"query": [ | |
{ | |
"key": "full", | |
"value": "true" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Stream | HLS", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/hls/{{group_key}}/{{monitor_id}}/s.m3u8", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"hls", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"s.m3u8" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Stream | FLV", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/flv/{{group_key}}/{{monitor_id}}/s.flv", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"flv", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"s.flv" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Stream | mp4", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/mp4/{{group_key}}/{{monitor_id}}/s.mp4", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"mp4", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"s.mp4" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Video", | |
"item": [ | |
{ | |
"name": "Video | List", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('video_file_name', res.videos[0].filename);" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/videos/{{group_key}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"videos", | |
"{{group_key}}" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Video | Monitor", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('video_file_name', res.videos[0].filename);" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/videos/{{group_key}}/{{monitor_id}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"videos", | |
"{{group_key}}", | |
"{{monitor_id}}" | |
], | |
"query": [ | |
{ | |
"key": "start", | |
"value": "1996-01-01T00:00:00", | |
"description": "YYYY-MM-DDTHH:mm:ss", | |
"disabled": true | |
}, | |
{ | |
"key": "end", | |
"value": "2030-01-01T00:00:00", | |
"description": "YYYY-MM-DDTHH:mm:ss", | |
"disabled": true | |
}, | |
{ | |
"key": "startOperator", | |
"value": ">=", | |
"description": ">= | <=", | |
"disabled": true | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Video | Download", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/videos/{{group_key}}/{{monitor_id}}/{{video_file_name}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"videos", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"{{video_file_name}}" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Video | Delete", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/videos/{{group_key}}/{{monitor_id}}/{{video_file_name}}/delete", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"videos", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"{{video_file_name}}", | |
"delete" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Video | Mark as UnRead", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/videos/{{group_key}}/{{monitor_id}}/{{video_file_name}}/status/2", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"videos", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"{{video_file_name}}", | |
"status", | |
"2" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Video | Mark as Read", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/videos/{{group_key}}/{{monitor_id}}/{{video_file_name}}/status/1", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"videos", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"{{video_file_name}}", | |
"status", | |
"1" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Video | Download Multiple", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/zipVideos/{{group_key}}?videos=[{\"filename\":\"{{video_file_name}}\", \"mid\":\"[{{monitor_id}}]\"}]", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"zipVideos", | |
"{{group_key}}" | |
], | |
"query": [ | |
{ | |
"key": "videos", | |
"value": "[{\"filename\":\"{{video_file_name}}\", \"mid\":\"[{{monitor_id}}]\"}]" | |
} | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Cloude Video", | |
"item": [ | |
{ | |
"name": "Cloude Video | List", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('cloud_video_file_name', res.videos[0].filename);" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/cloudVideos/{{group_key}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"cloudVideos", | |
"{{group_key}}" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Cloude Video | Monitor", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"var res = pm.response.json();", | |
"pm.collectionVariables.set('cloud_video_file_name', res.videos[0].filename);" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/cloudVideos/{{group_key}}/{{monitor_id}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"cloudVideos", | |
"{{group_key}}", | |
"{{monitor_id}}" | |
], | |
"query": [ | |
{ | |
"key": "start", | |
"value": "1996-01-01T00:00:00", | |
"description": "YYYY-MM-DDTHH:mm:ss", | |
"disabled": true | |
}, | |
{ | |
"key": "end", | |
"value": "2030-01-01T00:00:00", | |
"description": "YYYY-MM-DDTHH:mm:ss", | |
"disabled": true | |
}, | |
{ | |
"key": "startOperator", | |
"value": ">=", | |
"description": ">= | <=", | |
"disabled": true | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Cloude Video | Download", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{host_url}}/{{auth_token}}/cloudVideos/{{group_key}}/{{monitor_id}}/{{cloud_video_file_name}}", | |
"host": [ | |
"{{host_url}}" | |
], | |
"path": [ | |
"{{auth_token}}", | |
"cloudVideos", | |
"{{group_key}}", | |
"{{monitor_id}}", | |
"{{cloud_video_file_name}}" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} | |
], | |
"event": [ | |
{ | |
"listen": "prerequest", | |
"script": { | |
"type": "text/javascript", | |
"exec": [ | |
"" | |
] | |
} | |
}, | |
{ | |
"listen": "test", | |
"script": { | |
"type": "text/javascript", | |
"exec": [ | |
"" | |
] | |
} | |
} | |
], | |
"variable": [ | |
{ | |
"key": "host_url", | |
"value": "http://localhost:8080" | |
}, | |
{ | |
"key": "auth_token", | |
"value": "" | |
}, | |
{ | |
"key": "group_key", | |
"value": "" | |
}, | |
{ | |
"key": "monitor_id", | |
"value": "" | |
}, | |
{ | |
"key": "video_file_name", | |
"value": "" | |
}, | |
{ | |
"key": "new_monitor_id", | |
"value": "" | |
}, | |
{ | |
"key": "super_auth_token", | |
"value": "" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment