biothings.api icon indicating copy to clipboard operation
biothings.api copied to clipboard

New features for web parameter parsing module

Open namespacestd0 opened this issue 4 years ago • 1 comments

  1. Integrate OpenAPI spec generation with https://github.com/zcqian/biothings.api/blob/openapi/biothings/web/openapi/contexts.py
  2. Support forgiving argument processing, for example, for a number limited to 1000, if it's larger than 1000, use 1000 instead of returning an error: https://github.com/biothings/mychem.info/issues/88
  3. differentiate argument source, like path argument, body argument, query argument. It will be useful in: https://github.com/biothings/pending.api/issues/20

namespacestd0 avatar Jan 04 '21 18:01 namespacestd0

additional possible features:

  1. warn unexpected parameters
  2. autosuggest similar names for bad parameters input

namespacestd0 avatar Aug 01 '21 06:08 namespacestd0