Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-2635

CrowdAdminResource is not very RESTful

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • 1
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Stash's REST endpoints tend to follow very RESTful structure, but the URLs for the CrowdAdminResource are widely varied on how they work. For example, creating a user or a group requires a POST request, as expected, but the payload is never examined; instead, all of the user or group's properties must be provided as query parameters. Removing a user from a group is also a POST request, rather than a DELETE request, and takes a JSON payload rather than query parameters.

      If you are trying to automate user management in Stash using our REST services, you will run into a lot of pain with doing so. Some is documentation-related, but some is caused by the inconsistency of how the API is constructed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mmangier Malik Mangier (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: