Dev sum hypemedia talk

19
Would you like some Hypermedia with that API? Glenn Block @gblock

Transcript of Dev sum hypemedia talk

Page 1: Dev sum hypemedia talk

Would you like some Hypermedia with thatAPI?

Glenn Block@gblock

Page 2: Dev sum hypemedia talk

https://github.com/glennblockhttps://twitter.com/gblock

“I should be tweeting"

Page 3: Dev sum hypemedia talk

3

Page 4: Dev sum hypemedia talk

4

Make machine data accessible, usable and valuable to everyone.

Page 5: Dev sum hypemedia talk

Platform for Machine DataAny Machine Data

HA Indexes and Storage

Search and Investigation

Proactive Monitoring

Operational Visibility

Real-time Business Insights

CommodityServers

Online Services

Web Services

ServersSecurity

GPS Location

StorageDesktops

Networks

Packaged Applications

CustomApplicationsMessaging

TelecomsOnline

Shopping Cart

Web Clickstreams

Databases

Energy Meters

Call Detail Records

Smartphones and Devices

RFID

Page 6: Dev sum hypemedia talk

Hypermedia Primer

Page 7: Dev sum hypemedia talk

Hypermedia Primer

Page 8: Dev sum hypemedia talk

What is Hypermedia?

Control information that an API provides to clients to help them navigate the

system

issue

Next

approve

Page 9: Dev sum hypemedia talk

LinksEmbedded links which a

client can follow

Catalog

Next

Previous

Page 10: Dev sum hypemedia talk

FormsControls which “ask” clients for information to help them

move from state to state

Name

Title

Descrip-tion

Page 11: Dev sum hypemedia talk

How does hypermedia

work?Server embeds hypermedia

controls for the client (links and forms)

API

Page 12: Dev sum hypemedia talk

Clients identifies available controls

Client

How does hypermedia

work?

Page 13: Dev sum hypemedia talk

Client activates the controlClient

How does hypermedia

work?

Page 14: Dev sum hypemedia talk

Our APIIssue tracker

Page 15: Dev sum hypemedia talk

Clients can retrieve issues

Clients can retrieve a single issue

Clients can open or close an issue

Clients can search for issues

Page 16: Dev sum hypemedia talk

Collection+JSON

Page 17: Dev sum hypemedia talk

Let’s see how to implement it

Implemented with ASP.NET Web API

Xunit and Xbehave for Unit Tests

Autofac for IOC

CollectionJson.NET

Page 18: Dev sum hypemedia talk

More information

http://github.com/webapibook/issuetracker

http://amundsen.com/media-types/collection

Page 19: Dev sum hypemedia talk

@gblock http://github.com/glennblock

http://www.flickr.com/photos/11812960@N04/4050576435