+ All Categories
Home > Engineering > Work hard and REST

Work hard and REST

Date post: 13-Apr-2017
Category:
Upload: csaba-csordas
View: 196 times
Download: 0 times
Share this document with a friend
23
Work hard and REST CSABA CSORDAS
Transcript
Page 1: Work hard and REST

Work hard and REST CSABA CSORDAS

Page 2: Work hard and REST

Mobile challanges

Page 3: Work hard and REST

Great SDK's that makes life easier but also limiting

us

Page 4: Work hard and REST

You used a few set of API's you think you are ready to design one?

Page 5: Work hard and REST

Where to start?

Page 6: Work hard and REST

Roy Thomas Fielding 2000

Architectural Styles and the Design of Network-based Software Architectures

Chapter 5 - Representational State Transfer https://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm

Page 7: Work hard and REST

Richardson Maturity Model

Developed by Leonard Richardson

http://martinfowler.com/articles/richardsonMaturityModel.html http://shop.oreilly.com/product/0636920028468.do

Page 8: Work hard and REST

Level 0 - Single URI and a single Verb

Level 1- Multiple URI with single verbs

Level 2- Multiple URI resources and verbs

Level 3- HATEOAS

Page 9: Work hard and REST

POST? GET? PUT? Query parameter? Headers?

Links?

Page 10: Work hard and REST

Framework to help designing new API's

Page 11: Work hard and REST

USE CASE REST API

CLIENT IMPLEMENATION ERRORS

• Requirement (user story, application flow)

• New web service? • Modification on existing service

• Backward compatibility • Service and Data provider

• Data structure • Session / Caching • API usage

• HTTP errors • Service errors (Error domain definition)

Page 12: Work hard and REST

USE CASE

Requirement (user story, application flow)

Page 13: Work hard and REST

REST API

Adding new resources is easy but what about modifying? - versioning, backward compatibility

Page 14: Work hard and REST

CLIENT IMPLEMENTATION

How client side apps will consume your API's

• Data structure • Session / Caching • API usage

Page 15: Work hard and REST

ERROR CASES

Error handling Examples or error domains and http codes

Page 16: Work hard and REST

Document your API's specs using tools that also helps to try them straight away.

APIBlueprint Swagger

Page 17: Work hard and REST

SECURE YOUR API’s

Page 18: Work hard and REST

API vulnerability

17 month between contacting the provider and publishing the security breach online without action

http://www.ifc0nfig.com/moonpig-vulnerability/

Page 19: Work hard and REST

OAuth

http://oauth.net

Page 20: Work hard and REST

Learn from what others are doing.

Facebook, Twitter, Google

Page 21: Work hard and REST

Use tools like Charles to understand how the magic

works behind those great SDK's

Page 22: Work hard and REST

Try yourself And let me know how it

goes.

@cscsordas

Page 23: Work hard and REST

Thank you!


Recommended