Sinclair Spectrum Stuff as a Service

v2.0.0

Introduction

You may see a more pointless Thing-as-a-Service today, but I hope not. Uncle Clive is a massively over-engineered solution to a problem that I'm almost 100% certain does not exist - rendering text in the 1982 Sinclair Spectrum character set

This has now been completely rewritten to make use of my new 1982 gem, and my Skellington Sinatra-app-generation tool

API

/font/:text

Will return content of the form :text, rendered in the 1982 Sinclair Spectrum character set.

Content negotiation

Uncle-Clive will respond to the following Accept values with appropriate content:

Content will be returned as a JSON object

Content will be returned as plain text

Content will be returned as an HTML page with a Twitter Bootstrap Jumbotron containing the data rendered as a table

Content will be returned as an SVG image

/colours/:colour

Will return the hex value of the requested colour

/colours/:COLOUR

Will return the BRIGHT variant of the requested colour

Content negotiation

Uncle-Clive will respond to the following Accept values with appropriate content:

Content will be returned as a JSON object (this is the default if no Accept header is sent)

The hex value will be returned as plain text

/messages/:key

Will return the Spectrum error message corresponding to :key

Content negotiation

Uncle-Clive will respond to the following Accept values with appropriate content:

Content will be returned as a JSON object (this is the default if no Accept header is sent)

The error message will be returned as plain text

History

This is at least the third time I've implemented this or something like it: