aws / aws/chalice

Calling different routes from the same function

Open
#1,726 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

I have 2 functions like that I want to call the second function(/foo) from my first function with route(/do-something). Do we have anything like that?

Tried many resources but no luck. I have tried pure lambda invoking too but still no luck...

@app.route('/do-something', method=["POST","GET"])
def index():pass

@app.route('/foo',method=["POST"])
def other_handler(): pass

Contributor guide

Open the contributing guide

Research direction

Start with the two route handlers shown in the issue and review Chalice's routing and Lambda invocation documentation. Clarify whether the request is for direct handler reuse or an HTTP call between routes; the issue is done only when the supported approach and its limitations are documented or demonstrated.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
api, backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.