Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.05 KB

documentation.md

File metadata and controls

46 lines (31 loc) · 1.05 KB

base URL: http://67.164.191.36:5000



Retrieve single video from database DEPRICATED (removed lol)

Full endpoint: '/videos/get/single'
accepted methods: POST
content type: 'application/json'
body: 'video_id' -> database ID you'd like to retrieve
returns: JSON object of the video you've requested from the table



Retrieve all videos from database

Full endpoint:      `/videos/get/all`
accepted methods:   GET
content type:       'application/json'
body:               N/A (GET)
returns:            JSON array of all objects from the videos table


Add new video to database

Full endpoint:      '/videos/add'
accepted methods:   POST
content type:       'application/json'
body:               'url' -> full URL of the youtube video
purpose: Add a new youtube video entry to the database. Automatically transcribes speech for context consumption later on.
returns:            'id' -> the database primary ID of the new row