pyeve / eve-swagger

Swagger extension for Eve-powered RESTful APIs
http://python-eve.org
Other
154 stars 43 forks source link

starting to implement #54 (expose sorting, projection, allowed_filters,embedding) #73

Closed Annakan closed 5 years ago

Annakan commented 6 years ago

This is a quick hack to try to expose the sorting, projection, allowed_filters,embedding domain configuration settings through eve swagger.

I also added a requirements_tests.py for json_schema and modified the tests accordingly (Eve file loading of settings strategy is a definite pain in the ass ;) ) Code is not nice and test could use some refactoring ( self.swagger_doc = self.get_swagger_doc() has to be called twice in the setup_py override and its ancestor etc ...) but is seems to work. I am also halfway in documenting strategy of the parameters and since they are propagated in every endpoints the doc should probably be more minmal with some example and a link for instance ...

The two "pipfiles" are from pipenv and can be removed is you have no interest in pipenv.

Annakan commented 6 years ago

I dont think this one is mine ;) eve_swagger/validation.py:25:31: W605 invalid escape sequence '.' (saying this because I don't see the obvious cause, thought it was the regex but nope ..) Ok wrong push before, it was the regex line 37, fixed.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.