Postman no longer returns the entire body of data in the query - postman

Postman is no longer returning the same information as before.
I include a user using Ruby, when I go to query I can't see the data:
{"status":"success","data": {"name":"Zachariah","salary":8907.639999999999417923390865325927734375,"age":69,"id":580},"message":"Successfully! Record has been added."}
In this case on Postman: https://dummy.restapiexample.com/api/v1/employee/580
{"status":"success","data":null,"message":"Successfully! Record has been fetched."}

Related

Cannot post a piece in apostrophe through headless api [duplicate]

Am am currently using Postman to test the api results. I have been following the apostrophe headless docs, since am completely new to this. so what i need is to submit a post request in Postman to add a piece and its fields from REST api. I have got the bearer token and login was success. but when i insert a piece with body as JSON schema. am getting a error message.
May be the way am doing is wrong. so can one one help me in Making a post request to add piece and fields through POSTMAN atleast?
I did not understand the question quite right. You should add some of your inputs, error message, url, pics and etc. to clarify the problem.
However, if you need an example to how to use postman to make a POST request, it's like this:
Select the POST method and insert the API URL (The landing url for POST method not the view and etc.)
Go to headers Tab and add the Authorization token to header
Select the Body tab; Then raw type and finally JSON type. Now insert the Json body and click Send.
You can see the result of webservice call on the top of response window. If it returned 200, everything was OK.

Inserting/Updating pieces and its fields via (apostrophe-headless) REST API

Am am currently using Postman to test the api results. I have been following the apostrophe headless docs, since am completely new to this. so what i need is to submit a post request in Postman to add a piece and its fields from REST api. I have got the bearer token and login was success. but when i insert a piece with body as JSON schema. am getting a error message.
May be the way am doing is wrong. so can one one help me in Making a post request to add piece and fields through POSTMAN atleast?
I did not understand the question quite right. You should add some of your inputs, error message, url, pics and etc. to clarify the problem.
However, if you need an example to how to use postman to make a POST request, it's like this:
Select the POST method and insert the API URL (The landing url for POST method not the view and etc.)
Go to headers Tab and add the Authorization token to header
Select the Body tab; Then raw type and finally JSON type. Now insert the Json body and click Send.
You can see the result of webservice call on the top of response window. If it returned 200, everything was OK.

In Postman Test script Can we execute another request in collection

In collection I have 5 requests. In one of a request I want to script in Test tab that after getting a response to execute a request already in the collection.
I cant find references/blogs/article for accessing requests in collection. Alternatively I can write a request. But I need to set authorization logic, and other settings.
Use the below script in the request from where you want to trigger the next request.
Note that request names has to be unique in a collection.
Refer this link for more details
postman.setNextRequest("Request Name")
Update
If you want to send a request after a single request is run, use
pm.sendRequest()
Refer this for pm.sendRequest
Note that pm.sendRequest has to include all parameters such as request URL, authentication etc., and is NOT a postman request self that is visible under a collection.

Is there a way to retrieve the redirected url from a Postman response?

I'm trying to submit a form in Postman which then redirects to another url. The redirected url query string contains some information that I want to use in my next call. Is this even possible and if yes, how?
I haven't been able to find anything in Postman docs regarding this.
Yes, you can retrieve the redirected URL, extract interested information, and use it in the next request in Postman.
First, to retrieve the redirected URL, the "Automatically follow redirects" option in Postman should be turned off:
Then, you can intercept the redirect response, extract what is interested, and set it as global variable or environment variable:
Finally, this variable can be used in "next request", as query string in GET request, or as part of POST request's body:

Empty Checkin Response

I'm having an issue that I've seen in a couple of places, but with no real resolution.
I'm attempting to view my friends' checkins using the /checking api. I'd prefer not to use fql, as proposed in this answer: Graph Checkin method returns empty data, because I'd like to have all of the user/place/checkin meta data in one call.
I've tested the call using the access token that all the examples on the Graph API docs site use (http://developers.facebook.com/docs/reference/api/). When I use that access token on this url:
https://graph.facebook.com/103309013088837/checkins?access_token=ACCESS_TOKEN
I get back a result with one checkin.
However, when I use the token I've generated via my app on the same url I get an empty data set. I've confirmed that the permissions on both tokens are the same using the /me/permissions call and that other calls return the same result for both access tokens.
Is there something that needs to be configured on the app side? Is there anything else I could be doing incorrectly?