resgateio / resgate

A Realtime API Gateway used with NATS to build REST, real time, and RPC APIs, where all your clients are synchronized seamlessly.
https://resgate.io
MIT License
689 stars 67 forks source link

HTTP method mapping #150

Closed jirenius closed 4 years ago

jirenius commented 4 years ago

Issue

For HTTP requests, it should be possible to map certain HTTP methods to a corresponding call method.

The methods that should be allowed for mapping are:

Configuration

The mapping should be available through flags:

--putmethod=put --deletemethod=delete --patchmethod=patch

or through configuration (value may be null):

{
    "putMethod": "put",
    "deleteMethod": "delete",
    "patchMethod": "patch"
}

Default is no mapping.

Consideration

jirenius commented 4 years ago

Resolved in #152