Presentation is loading. Please wait.

Presentation is loading. Please wait.

@ScotHillier Web Parts Workflows Pages Libraries App Parts SharePoint-Hosted Apps Provider-Hosted Apps.

Similar presentations


Presentation on theme: "@ScotHillier Web Parts Workflows Pages Libraries App Parts SharePoint-Hosted Apps Provider-Hosted Apps."— Presentation transcript:

1

2

3 @ScotHillier

4 Web Parts Workflows Pages Libraries App Parts SharePoint-Hosted Apps Provider-Hosted Apps

5

6

7

8

9

10 public IEnumerable Get() {} public string Get(int id) {} public void Post([FromBody]string value){} public void Put(int id, [FromBody]string value){} public void Delete(int id){} public class ValuesController : ApiController

11 config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } );

12 public IQueryable Get() { var d = new List () {"a", "b" }; return d.AsQueryable(); } public HttpResponseMessage Get(int id) { return Request.CreateResponse (HttpStatusCode.OK, data[id - 1]); }

13

14

15

16

17

18

19

20 public class ContactsController : ODataController

21 ODataConventionModelBuilder builder = new ODataConventionModelBuilder(); builder.EntitySet ("Contacts"); builder.EntitySet ("Companies"); config.Routes.MapODataRoute("odata", "odata", builder.GetEdmModel());

22

23

24

25

26 Pre-flight request Request Headers Response Headers

27 Service not validating domains Page with malicious script Script gains access

28

29

30

31

32

33

34

35

36

37

38

39

40

41 Sponsored by

42


Download ppt "@ScotHillier Web Parts Workflows Pages Libraries App Parts SharePoint-Hosted Apps Provider-Hosted Apps."

Similar presentations


Ads by Google