We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue, I'll just post my example here to explain the scenario:
body: Body
/docs
body
request.json()
from robyn import Robyn, Request from robyn.types import Body app = Robyn(__file__) @app.post('/api/c2f') async def c2f(request: Request) -> dict | None: data = request.json() if 'celsius' not in data: return return {'fahrenheit': float(data['celsius']) * 9 / 5 + 32} @app.post('/api/f2c') async def f2c(request: Request, body: Body) -> dict | None: data = request.json() if 'fahrenheit' not in data: return return {'celsius': (float(data['fahrenheit']) - 32) * 5 / 9} if __name__ == '__main__': app.start(host='127.0.0.1', port=8000)
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: