#5058 Make the API endpoint to update project's options accept JSON
Merged by pingou. Opened by pingou.
api_options_json  into  master

Download 5058.patch

Up until now that API endpoint only accepted HTTP arguments but
it is sometime useful to send the update as a JSON blob instead
of different arguments. This API endpoint will now support both
approaches.

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

rebased onto 2b7b26e5b1c18bbb2de154e74d7f7156e2e31a38

probably related: pagure/api/project.py line 2868 does not have a sample request.

    Sample request body
    ^^^^^^^^^^^^^^^^^^^
     ::
        {
            'issue_tracker': false,
            'disable_non_fast-forward_merges': true
        }

rebased onto a76d141c8c999d485871fa924ccbcd452a17717a

probably related: pagure/api/project.py line 2868 does not have a sample request.

Adjusted :)

rebased onto 0504b8a4b3768e77f42d52f762565fecc39adb52

rebased onto 0b399a3cea968876a8d261018096d77e353cf1ad

:thumbsup:

Pull-Request has been merged by pingou

Metadata