Mercurial > p > roundup > code
diff CHANGES.txt @ 6525:c505c774a94d
Mutiple changes to REST code.
Requesting an invalid attribut via rest/data/class/id/attrib used to
return a 405, it now returns a 400 and a better error message.
/rest/ response scans the registered endpoints rather than using a
hard coded description. So new endpoints added in interfaces.py are
listed.
Fix a number of Allow headers that were listing invalid methods. Also
when invalid method is used, report valid methods in response. Extract
methods from Route list.
Fix Access-Control-Allow-Methods. Add X-Requested-With to
Access-Control-Allow-Headers.
Add decorator openapi_doc to add openapi annotations for the rest
endpoints. Added a couple of examples. Returning this info to a
client is still a work in progress.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 07 Nov 2021 01:04:43 -0500 |
| parents | f961dbbc3573 |
| children | 82f870433b18 |
line wrap: on
line diff
--- a/CHANGES.txt Sun Nov 07 01:49:03 2021 -0400 +++ b/CHANGES.txt Sun Nov 07 01:04:43 2021 -0500 @@ -38,6 +38,9 @@ - issue2551167 - pip install in containerized environments puts template and locale files under site-packages where roundup can't find them. Change code to find them under site-packages. +- REST replace hard coded list of child endpoints for /rest/ with list + pulled from registered endpoints. So newly added endpoints are + shown. (John Rouillard) Features: @@ -61,6 +64,15 @@ "-V HTTP/1.0" can turn it off. (John Rouillard) - issue2551163 - add scripts/Dockerfile to provide basic support for containerization. See installation.txt for details. (John Rouillard) +- REST add openapi_doc decorator to add openapi_doc to + endpoints. Decorate a couple of examples. (John Rouillard) +- REST when incorrect method is used, report allowed methods in error + message as well as in an Allow header. (John Rouillard) +- REST change response to invalid attribute specified in path. Return + 400 code not 405 code for this case and improve error. (John + Rouillard) +- REST correct values for some Access-Control-Allow-Methods and + Access-Control-Allow-Headers headers. (John Rouillard) 2021-07-13 2.1.0
