Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-30682

The swagger UI curl example for tasks/{id}/run does not work

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: REST, UI
    • Labels:
    • Notability:
      3

      Description

      The swagger UI curl example for the tasks/run API does not work as shown:

      curl -X 'POST' \
        'http://localhost:8081/service/rest/v1/tasks/42592698-59bf-4207-a208-baaeef1baea5/run' \
        -H 'accept: application/json' \
        -d ''
      

      The "-d" parameter causes an empty content to be sent, and this fails because the content type is recognized.

      Expected: The API example should either leave "-d" off, or add: -H "Content-Type: application/json"

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Michael Oliverio Michael Oliverio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title