shift-board / shiftboard

MIT License
0 stars 0 forks source link

Create posts #25

Open shari09 opened 3 years ago

shari09 commented 3 years ago

Relating to #4 :

The user will post form data with the following attached:

Fields:
name -> string: the author of the post, optional.
message -> string: the message the user wish to convey. photo -> Image: the photo the user uploads.

Returns: Invalid form data: 400 Board UUID not found: 404 Success: JSON representation of the post

As I was thinking about what you said with the UUID from #20 and also some stackoverflow resources, I decided to use 400 this time and I'll create an issue to change #20 to match as well.