Skip to content

cedmax/baas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Baas (Blasphemy as a Service) provides a modern, RESTful, scalable solution to the common problem of swearing.

Content Negotiation

Baas will respond to the following 'Accept:' values with appropriate content

  • application/json - Content will be returned as a JSON object { message: 'message', subtitle: 'subtitle' }
  • text/html - Content will be returned as an HTML page with a twitter bootstrap hero unit, containing the message and the subtitle.

API

/swear/:divinity/:animal[/:from]

Will return content of the form ':Divinity :animal! - :from'
e.g.: /swear/giunone/maiala/ced will return 'Giunone maiala! - ced'

/sake/:divinity[/:from]

Will return content of the form 'For :Divinity'[s] sake! - :from'
e.g.: /sake/jesus/ced will return 'For Jesus' sake! - ced'

/holy/:divinity[/:from]

Will return content of the form 'Holy :Divinity'[s]! - :from'
e.g.: /holy/jesus/ced will return 'Holy Jesus! - ced'

/blood/:divinity[/:from]

Will return content of the form 'By the blood of :Divinity! - :from'
e.g.: /blood/god/ced will return 'By the blood of God! - ced'

/bloody/:divinity[/:from]

Will return content of the form 'Bloody :Divinity! - :from'
e.g.: /blood/god/ced will return 'Bloody God! - ced'

/ohmy/:divinity[/:from]

Will return content of the form 'Oh my fucking :Divinity'! - :from'
e.g.: /ohmy/lord/ced will return 'Oh my fucking Lord! - ced'

/nails/:divinity[/:from]

Will return content of the form 'By :Divinity'[s] nails! - :from'
e.g.: /nails/jesus/ced will return 'By Jesus' nails! - ced'

URL

http://baas.dsgn.it

Credits

Not Written with Fastify.
Not Inspired to FOAAS (Fuck Off As A Service)

All contributions are very welcome.

Fork me on github
Created by @cedmax