-
Notifications
You must be signed in to change notification settings - Fork 91
WebApiProxy on the client side
Fanie Reynders edited this page Jan 18, 2016
·
4 revisions
This extension provides a proxy endpoint in your service (with /api/proxies
as the default) that serves a JavaScript client (using JQuery) and/or service metadata.
The following examples will assume a Person API on the server:
public class Person {
public int Id { get; set; }
public string Name { get; set; }
}
public class PeopleController : ApiController
{
public Person[] Get() {
...
}
public Person Get(int id) {
...
}
}