1

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

3 Answers 3

2

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.

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

Please try with this url

http://server/site/_api/Web/lists/getbytitle('listname')/items
1
  • 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
    Commented Mar 1, 2017 at 10:39
0

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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