Jaymon / endpoints

Lightweight REST api backend framework that automatically maps urls to python modules and classes
MIT License
29 stars 10 forks source link

param that can either be passed up in the body or the path #99

Closed Jaymon closed 5 days ago

Jaymon commented 4 years ago

basically, making something like this work:

@param("name", 0)

The idea is you could do:

POST /foo/:name

or...

POST /foo {"name": ":name"}

and they would both work.

Jaymon commented 5 days ago

As I integrate more with OpenAPI I just think this is a bad idea