Subterfuge-Revived / Remake-Backend

Server side validation and API
Creative Commons Zero v1.0 Universal
10 stars 1 forks source link

Create message group requires a room id #27

Open QuinnBast opened 4 years ago

QuinnBast commented 4 years ago

Expected Behavior

When creating a new group chat, you should not have to send the room_id in the body of the data as the URL already contains the room id

Current Behavior

Omitting the room_id parameter from base/api/rooms/4/groups endpoint throws an error

Failure Information

{
    "message": "The given data was invalid.",
    "errors": {
        "room_id": [
            "The room id field is required."
        ]
    }
}

Possible Solution

Remove room_id from being required

Detailed Description

Just a minor annoyance