Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-106040

Refactor AddressBook server to be compatible with the reqres.in

    XMLWordPrintable

    Details

    • Type: User Story
    • Status: In Progress
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.4.0 Beta3
    • Fix Version/s: 6.5
    • Component/s: Network
    • Labels:
      None
    • Platform/s:
      All
    • Story Points:
      13
    • Sprint:
      Foundation PM Prioritized, Foundation Sprint 65, Foundation Sprint 66, Foundation Sprint 67, Foundation Sprint 68, Foundation Sprint 69

      Description

      Refactor AddressBook server to be compatible with the reqres.in, meaning:

      • Rename AddressBook to Color List/Color Palette
      • Rename Contacts into Users
      • Change user schema fields to contain id, email, first name, last name, avatar link
      • Add Color schema - id, name, color, pantone value (ignore year)
      • Have the updated_at/created_at fields in the user and return them only when the update/create of the user happens
      • Implement missing functionalities in the server:
        • List users, colors with pagination
        • GET single user, color
        • POST new user
        • PUT/PATCH user data
        • DELETE user
        • POST Register user (add existing user to new list of users with assigned passwords and grant 'access' to the modifying requests by returning token)
        • POST login (get token for already registered user)
        • GET user avatar
      • Keep the prepopulated json list of colors and users in the assets and load them when starting the server
      • PUT, PATCH, DELETE commands must expect valid token to be passed in the header to authorize the request

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-106040
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              kokujawa Konrad Kujawa
              Reporter:
              kokujawa Konrad Kujawa
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change