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

Refactor AddressBook server to be compatible with the reqres.in

    XMLWordPrintable

Details

    • User Story
    • Resolution: Fixed
    • P2: Important
    • 6.5.0, 6.5, 6.6.0
    • 6.4.0 Beta3
    • Network
    • None

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vuokko Juha Vuolle
              kokujawa Konrad Kujawa (Inactive)
              Vladimir Minenko Vladimir Minenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes