I would like to define path params in API generated by AWS Mobile Hub but I can't see the way how I could do this using MH API configuration page. There you can define API name + paths but it is not possible to use brackets like placeholders ie. {userId} within subpath during the API creation. As an example, I've created users API with items subpath and lets say I would like to achieve API path like this /users/item/{userId}. When I've created path like /items it is possible to invoke from test module /users/items/1 but this 1 is not mapped as path params (it can't be as I haven't defined it as path params anywhere) and this value is delivered to lambda as path request attribute instead of path param. I would like to use path params instead.
Is it possible to define path params in AWS Mobile Hub API?
123 views Asked by sos3k At
1
There are 1 answers
Related Questions in AWS-MOBILEHUB
- Couldn't read the region / Failed to read Region from AWSConfiguration
- How to use AWS Mobile Hub with NativeScript
- Trying to initialize project with awsmobile init
- Cognito - getInstance().getTokens() Error: Failed to federate the tokens
- aws mobilehub no-sql batch update with append set
- CognitoUserPool userPool = new CognitoUserPool(this, AWSMobileClient.getInstance().getConfiguration()); is giving null value
- How to Subscribe to All GraphQL Mutations in AWS-Amplify Vue Components?
- AWS Amplify GraphQL API in Vue App Returns Null
- Is AWSmobile-cli discontinued?
- How to retrieve username from Amazon cognito user pool in android
- AWS Cognito Authentication + AWS Mobile Client + API Gateway + S3 Bucket
- Swift AWS Cognito error: Authentication delegate not set
- How to set up dev environment with AWS Mobile hub?
- AWS Cognito Identity Pool SignIn and SignOut in iOS
- AWS Amplify/CLI vs AWS mobile hub
Related Questions in AMAZON-MOBILE-HUB
- aws mobilehub no-sql batch update with append set
- How to set DynamoDB Table through mobile hub and Swift?
- How to add better validation feedback to Android app using com.amazonaws.mobile.auth.userpools Class SignUpActivity and SignInUI
- Stage management with AWS Mobile hub and AWS Amplify
- Issue getting AWS Rekognition to read images when placed in S3 bucket
- Passing Amazon dynamoDB query results to main thread to show Google Map pins
- AWS: NotAuthorizedException: Invalid login token. Incorrect token audience. (Service: AmazonCognitoIdentity
- AWS Mobile Hub Environments
- AWS Cognito SDK missing user attribute
- Unable to read data in AWS android mobile while using DynamoDB
- AWSMobileClient is not found
- AWS mobile hub sign in UI
- AWS mobile hub sign in function issue
- AWS mobile hub nosql
- How to get the user details using mobile hub User-sign feature?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
When you add an API with a path in the AWS Mobile Hub Cloud Logic feature, it uses a greedy path variable in the API definition to pass through all path parameters to your AWS Lambda function. You don't need to explicitly define your parameters because any/all parameters will be passed through automatically.
For example, if your path is "items" then requests will pass through to AWS Lambda for /items, /items/123, /items/123/456/789, etc.. They all pass through to your AWS Lambda function.