Create Foto

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/photo

Body : Form Data

FieldTypeRequired
titleString✔️
descriptionString
photoJPG/PNG✔️

Response : 200 OK

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

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"title": ["Judul Photo tidak boleh kosong"],
"photo": ["Photo tidak boleh kosong"]
}
}

Response : 500 ERROR

Internal Server Error