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?
120 Views Asked by sos3k At
1
There are 1 best solutions below
Related Questions in AWS-MOBILEHUB
- AWS Cognito Mobile Hub
- Is it possible to define path params in AWS Mobile Hub API?
- AWS iOS Swift 3 Cognito Type does not conform to protocol
- AWS Cognito. Is possible to import users to a User Pool and relate them with their existing developer authenticated identities?
- AWS Cognitio Swift 3 Identity not found
- Limiting and Ordering the Scan Result AWS
- AWS Mobile Hub Localization
- Designing custom sign in flow/activity for Cognito
- Swift AWS Cognito error: Authentication delegate not set
- AWS Cognito Authentication + AWS Mobile Client + API Gateway + S3 Bucket
- How to set up dev environment with AWS Mobile hub?
- Using AWS Mobile Hub to get a working sign in
- AWS Cognito Login Data
- Amazon SNS Sample Application
- Apple Developer Account generates invalid push certificates
Related Questions in AMAZON-MOBILE-HUB
- Is it possible to define path params in AWS Mobile Hub API?
- Direct Linking (Amazon Mobile Associates API) not working for non-US items?
- I wrote a android app using aws mobile hub for usersign using facebook and google, but getting error
- How to get the user details using mobile hub User-sign feature?
- AWS mobile hub nosql
- AWS SNS - Error Domain=com.amazonaws.AWSSNSErrorDomain Code=0 "(null)"
- AWS Mobile Hub Environments
- Stage management with AWS Mobile hub and AWS Amplify
- What Cloud Service should I use to deploy mobile apps and when should I use Cloud Services?
- AWS SNS - Subscribe to topic fails - "Application endpoint arn invalid"
- aws mobilehub no-sql batch update with append set
- In which table does Amazon Cognito data gets saved - Beginner
- User signing in using Amazon Cognito
- AWSMobileHubHelper DynamoDB AccessDeniedException
- AWS: NotAuthorizedException: Invalid login token. Incorrect token audience. (Service: AmazonCognitoIdentity
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)
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?
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.