Uploaded image for project: 'Poulpe'
  1. Poulpe
  2. POULPE-503

Registering users via REST

VotersWatchers
    XMLWordPrintable

    Details

    • Sprint:
      1.3 Swallows

      Description

      As a JTalks Component developer I'd like to be able to register a user in Poulpe via REST API so that this user is shared across all the JTalks Components
      Acceptance Criteria:

      • URI: /rest/user
      • POST method should be used
      • Positive outcome: HTTP 200 Ok
      • Negative outcomes: HTTP 400 Bad Request. Error messages depending on the particular problem should be taken from JTalks Common:
        • user.email.invalid_format - take validation regex from JCommune
        • user.email.length_constraint_violation - 50 symbols
        • user.email.already_exists
        • user.password.length_constraint_violation - note, that JTalks Component is going to send an MD5 hash instead of open password which should be stored as is. Even though it's always 32 symbols long, we need to support 50 symbols (later expected to make 255). This is important because in the future we'll change our hash algorithm.
        • user.username.length_constraint_violation - right now it's 1..25 symbols, let's keep it like that atm.
        • user.username.already_exists

      Input message:

      <user>
        <username>...</username>
        <passwordHash>...</passwordHash>
        <email>...</email>
      </user>

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  sasha2888 Alexandra Pancheshenko
                  Reporter:
                  ctapobep Stanislav Bashkyrtsev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0h
                    0h
                    Logged:
                    Time Spent - 11.75h
                    11.75h

                      Structure Helper Panel