Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wherbertms opened this issue May 28, 2024 · 0 comments
Open

Comments

@wherbertms
Copy link

💡 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant