Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-671

Callable to get user and available public projects

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0
    • 2.0.0
    • Module Catalog
    • None
    • 4.4 M4

      Create a callable with a result closed to:

      {
          "userProject": [
              {
                  "id": 1,
                  "creator": {
                      "name": "Pat Hibulaire",
                      "avatar": "img1.jpg"
                  },
                  "subtitle": "Projet 1 I am a longgggggg tiitltleler abcde abcde abcde",
                  "category": "finance",
                  "canEdit": true,
                  "visibility": 1,
                  "members": ["img7.jpg", "img9.jpg", "img10.jpg"],
                  "membersCount": 230,
                  "lock": false,
                  "color": "#7083fa",
                  "favorite": true,
                  "notification": true,
                  "preview":  "standalone-assets/img/img7.png",
                  "categories": [ { "id": 16, "name": "October" } ],
                  "lang": "Français",
                  "email": "some-email-from@json.fr",
                  "listName": "Some list name from json",
                  "members": [ { "id": 4, "name": "Ali Connors", "group": "Group 1", "avatar": "https://cdn.vuetifyjs.com/images/lists/4.jpg" }, { "id": 2, "name": "Khabib Tiramisu", "group": "Group 1", "avatar": "https://cdn.vuetifyjs.com/images/lists/2.jpg" } ],
                  "modules": ["1", "3"]
              },
              ...
          ],
          "availablePublicProjects": [
              {
                  "id": 9,
                  "creator": {
                      "name": "Pat Hibulaire",
                      "avatar": "img1.jpg"
                  },
                  "subtitle": "Sample project",
                  "category": "urabanisme",
                  "visibility": 2,
                  "members": [ { "id": 4, "name": "Ali Connors", "group": "Group 1", "avatar": "https://cdn.vuetifyjs.com/images/lists/4.jpg" }],
                  "membersCount": 2,
                  "lock": false,
                  "color": "#ab1515",
                  "favorite": true,
                  "notification": true,
                  "preview": "standalone-assets/img/img7.png"
              },
              ...
          ]
      }

      Some of these data could differ from the preceding sample (name, format, etc.).

      First level:
      userProject List of projects which the user belongs (rename it to userProjects)
      availablePublicProjects List of public projects which the user doesn't belong

      Details:

      • id Identifier of the project
      • creator First responsible of the project
        Rename to manager
        • fullname
        • login (with population)
      • subtitle Title of the project
        Rename to title
      • category merged with categories Tags
        • id
        • label
        • color
      • members List of members
        3 maximum
        Managers have priority, but not the one in manager
      • membersCount Total number of members
      • lang Languages selected in the project
        Become multiple
        Rename to languages
        Display the codes
      • preview Illustration of the associated website
        Rename to illustration
      • email Mail of the associated website
      • listName The mailing list defined into the project
        Rename to mailingList
      • modules List of active modules identifier in the project
      • canEdit Boolean to indicate if the user has the right to update the project
      • visibility Removed from the result
      • lock Boolean to indicate if the project is limited
        userProject => true} if private, {{false if public (open or not)
        availablePublicProjects => true if moderated, otherwise false
      • favorite Not implemented, static value will be false
      • notification Not implemented, static value will be true

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: