Skip to content

Chatroom 'affiliation' URL template clash #146

@guusdk

Description

@guusdk

With #141, which was part of release 1.9.0, these endpoints (and their sub-resources):

  • /restapi/v1/chatrooms/{roomName}/owners
  • /restapi/v1/chatrooms/{roomName}/admins
  • /restapi/v1/chatrooms/{roomName}/members
  • /restapi/v1/chatrooms/{roomName}/outcasts

got replaced by one generic endpoint (and sub-resources):

  • /restapi/v1/chatrooms/{roomName}/{affiliation}

Sadly, this new template clashes with other, unrelated endpoints, including:

  • /restapi/v1/chatrooms/{roomName}/chathistory
  • /restapi/v1/chatrooms/{roomName}/occupants
  • /restapi/v1/chatrooms/{roomName}/participants
  • /restapi/v1/chatrooms/{roomName}/invite

The fix for #141 makes these return an 400 response, stating that chathistory, occupants, participants or invite is not a valid affiliation value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions