Follow

blast from the past: github.com/judofyr/tipi/blob/m

in 2014 I wrote a Ruby REST API system which had:

- a router that was based on a graph-structure: e.g. you say that "/users/:id" returns a User resource, and then you define the other actions available on a User resource

- strict types on input/output of actions

- usage of a `state` variable that is passed around internally to communicate across resources

this is like 80% of the GraphQL ideas

Sign in to participate in the conversation
Ruby.social

A Mastodon instance for Rubyists & friends