microsoft / restler-fuzzer

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.
MIT License
2.52k stars 283 forks source link

[Feature Request] Improve Annotations to Support Integer Responses #895

Open wherbertms opened 1 month ago

wherbertms commented 1 month ago

💡 Idea

Scenario I am trying to support with annotations.

Create resource with POST /foo/bar, which has a response body of integer for the created resource ID, eg 123. Update resource with PUT /foo/bar with a JSON request body using the integer previously returned, eg { "id": 123 } Get resource with GET /foo/bar/123

I imagined an annotation such as the following

"x-restler-global-annotations": [
        {
            "producer_endpoint": "/foo/bar",
            "producer_method": "POST",
            "producer_resource_name": "id",
            "consumer_endpoint": "/foo/bar",
            "consumer_method": "PUT",
            "consumer_param": "/id"
        }
}

Design Notes

No response