Create Video

To create the data in the specified collection with the specified parameters. When a JSON object is saved, the object properties are automatically added to the collection you specified.

Method : POST

URL : /gallery/video

Body : JSON

{
"link": "https://www.youtube.com/watch?v=GfO-3Oir-qM"
}

Response : 200 OK

{
"message": "Success add video",
"status": 200
}

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"link": ["Link Video tidak boleh kosong"]
}
}

Response : 500 ERROR

Internal Server Error