I used this synthax to get list Items

http://server/site/_api/lists/getbytitle('listname')/items

I get a list repeating today's date but not items .

EDIT: I notice that the number of lines that the REST Query print is equal to the number of elements in the list

list of dates image

up vote 2 down vote accepted

There is problem in your Browser setting Please follow below steps you get the desired data In Internet Explorer

->Open Tools->Internet Options

->Select the Content tab Click the “Settings” button in the Feed and Web slices section

->Uncheck Turn on feed reading view

->Click “OK” to save the settings

And for Firefox

With your output on firefox use ctrl + u will convert it xml format but not readable as IE you can copy the output in notepad as .xml and open it with Office XMl handler.

  • I can't find that. I'm using FireFox – infodev Mar 1 '17 at 12:09
  • Hope this link may help with the settings superuser.com/questions/81892/… – Sunil Sahu Mar 1 '17 at 13:18
  • If not then no clue try using IE – Sunil Sahu Mar 1 '17 at 13:20
  • ctrl+u has done the job. it's a shortcut for what ? – infodev Mar 2 '17 at 8:28
  • Its a shortcut to ->viewsource:'url' of a web feed – Sunil Sahu Mar 2 '17 at 8:34

Please try with this url

http://server/site/_api/Web/lists/getbytitle('listname')/items
  • I get same result by adding /web. I want to precise that I'm putting the link to the web navigator directly not in a script. – infodev Mar 1 '17 at 10:39

You are missing the web in URL. It should be :

 http://server/site/_api/web/lists/getbytitle('listname')/items
  • I have added a comment to Suresh Bolineni – infodev Mar 1 '17 at 10:41

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.