i want to filter a list by one spesific column. For exmple i want to see only when [City] = NYC. I tried something likr this:
_api/Lists/getbytitle('EmployeeInfo')/items?$filter=City eq NYC
But it's doesn't work for me.
thank
EDIT:
1. $.ajax({
2.
3. url: "/_api/web/lists/getbytitle('employeeInfo’)/items?$filter=City eq 'NYC'",
4. headers: { Accept: "application/json;odata=verbose" },
5. method: GET,
6. success: function (data) {
7. Console.log("success");
8. }
9. },error: function (data) {
10. alert("An error occurred. Please try again.");
11. }
12. });
13. }