Uploaded image for project: 'mod-tags'
  1. mod-tags
  2. MODTAG-55

mod-tags: Handle exception and change API documentation

    XMLWordPrintable

Details

    • eHoldings Sprint 120
    • 1
    • Spitfire

    Description

      Purpose/Overview:
      Not valid data cause 500 error, instead of 422.

      API documentation declares 400 error if malformed request body or parameter 'query' - but in this case must be 422 error.

       

      Approach:

      • add MethodArgumentNotValidException handler
      • remove 400 error code from API documentation

      TestRail: Results

        Attachments

          1. 500 error.jpg
            500 error.jpg
            144 kB
          2. After fix.jpg
            After fix.jpg
            135 kB

          Issue Links

            Activity

              People

                Daos Serhii Zdorenko
                Daos Serhii Zdorenko
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases