Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-3344

Web Api Parameter `required` is not being used

    Details

    • Work Funnel:
      Maintenance
    • Sprint:
      Repo RestAPI Sprint 25, Repo Libraries Sprint 26
    • Story Points:
      5
    • Work Funnel End:
      2018-03
    • Template:
    • Bug Priority:
      Category 4

      Description

      Web Api Parameter required is not being used.

      REPO-2339 involves changing

      POST /deleted-nodes/{archiveNodeId}/restore
      

      and accepting an optional body containing

      
      {
        "targetParentId": "....",
        "assocType": "...."
      }
      

       The current implementation does not allow doing a POST with an empty body even if the resource method parameter is mapped with required=false.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  rmunteanu Raluca Munteanu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel