You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ns.route("/normalize/<string:descriptions>")
class Normalizer(Resource):
@ns.expect(_args)
@errors
def get(self, descriptions):
"""Normalize a set of variant descriptions."""
# Split the descriptions using the delimiter
individual_descriptions = descriptions.split('|')
# Normalize each description separately
results = [normalize(description, **_args.parse_args()) for description in individual_descriptions]
return results
And then call it using /normalize/description1|description2|description3
The text was updated successfully, but these errors were encountered:
Would it be possible to add functionality to send multiple variants in the same api call?
https://github.com/mutalyzer/api/blob/master/mutalyzer_api/endpoints/normalize.py
Maybe doing something like this?
And then call it using
/normalize/description1|description2|description3
The text was updated successfully, but these errors were encountered: