Jaymon / endpoints

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

positional params should support the metavar value #58

Closed Jaymon closed 7 years ago

Jaymon commented 7 years ago

I'm still working out how reflection will work for urls like:

foo/<POSITIONAL_PARAM_0>/<POSITIONAL_PARAM_1>

To convey the information that you might be able to request this endpoint in multiple ways:

/foo/
/foo/0
/foo/0/1

and they would all be valid, but one thing that would help is to be able to use a metavar value so we can give the /0/1 distinct names.