Getting parameter from a request
See original GitHub issueHi! I’m trying to get a parameter value from an HTTP request that is generated randomly. This is my code:
#create auth user
# @name createUser
POST {{authServiceUrl}}/api/v1/users
content-type: application/json
{
"email": "test-{{$guid}}@example.com",
"passwordhash": "XXX"
}
@email = {{createUser.request.body.$.email}}
As a result I get the error:
Unexpected token @ in JSON at position 187
What is the correct way to do it?
Thanks in advance
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
How to get parameters from GET request? - Stack Overflow
When you use $.get('EventServe', {location_id: location_id}, ...) to make a HTTP GET request, you are passing the value of location_id as a ...
Read more >URL Get Parameter - Ryte
The getParameter() method is the HTTP request method most often used to request resources from a server through a client such as a...
Read more >Python Requests get Method - W3Schools
The get() method sends a GET request to the specified url. ... args means zero or more of the named arguments in the...
Read more >Request Parameters in Postman - Tools QA
Request Parameters in Postman. 1.Just prepare a GET Request in Postman with the URL www.google.com/search and then click on Params. params.
Read more >Extracting Request Parameters
Parameters of a resource method may be annotated with parameter-based annotations to extract information from a request. A previous example presented the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, it works!