ForkbombEu / ncr

no‧code‧room: No code REST API server based on zencode natural language smart contracts
4 stars 2 forks source link

disableGet and disablePost improvements #233

Closed matteo-cristino closed 3 months ago

matteo-cristino commented 4 months ago

At the moment when disableGet or disbalePost are set to true in the metadata the contract is simply not exposed to that type of HTTP method, and if called the response is

404 (Not Found)

An improvement can to responde with

405 (Method Not Allowed)

This could be usefull to be more compliant with the oauth flow (https://github.com/ForkbombEu/DIDroom_microservices/issues/20)