Slide 1

Slide 1 text

@fredwu

Slide 2

Slide 2 text

API Taster Bustle

Slide 3

Slide 3 text

Bustle https://github.com/fredwu/bustle

Slide 4

Slide 4 text

Readme Driven Development RDD

Slide 5

Slide 5 text

Activities recording and retrieving using a simple Pub/Sub* architecture. * At least on surface it is, lol.

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Like Faye, Redis and ZeroMQ, etc A "traditional" pub/sub usually involves 3rd party services

Slide 8

Slide 8 text

I want...

Slide 9

Slide 9 text

Really simple, perl devs would hate it Don't need to support 100M (imaginary) users Works with ActiveRecord Can be extended/migrated to use with other data stores Decoupled from the main app

Slide 10

Slide 10 text

Bustle Overview Publisher Subscriber Subscription Active Record Persistence Layer w/ orm_adapter Redis Faye

Slide 11

Slide 11 text

Simple API Bustle::Publishers.add Bustle::Subscribers.add Bustle::Subscriptions.add Bustle::Publisher.publish Bustle::Subscriber.activities and a few others ...

Slide 12

Slide 12 text

gem 'bustle'

Slide 13

Slide 13 text

https://github.com/fredwu/api_taster API Taster

Slide 14

Slide 14 text

It's insanely great.

Slide 15

Slide 15 text

Just kidding.

Slide 16

Slide 16 text

*For some, I hope. But it's useful.*

Slide 17

Slide 17 text

*Not just on surface!! (╯°□°)╯ ┻━┻ A quick and easy way* to visually test your Rails application's API

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

It's a Chrome extension Every single API needs to be manually defined Inputs (request data) need to be manually entered Can't share the inputs easily Postman is Awesome, But...

Slide 20

Slide 20 text

I want...

Slide 21

Slide 21 text

API endpoints are automatically generated from your Rails routes definition Defining inputs is as easy as defining routes Post params can be shared with your test factories

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Isn't it beautiful?

Slide 24

Slide 24 text

gem 'api_taster'

Slide 25

Slide 25 text

Demo