Skip to content

Latest commit

 

History

History
80 lines (65 loc) · 2.03 KB

README.mdown

File metadata and controls

80 lines (65 loc) · 2.03 KB

Build Status

Blood-Bank

Blood Bank is Railslove's static content repository, which ensures Railslove's heart keeps pumping. Without it, our API would be rather anaemic or might start coagulating. Check out railslove.com and api.railslove.com to see the juices flowing ^_^

Kudos and a big thank you to Travis CI for their excellent haemodialytic services!

For Authors

The easiest way to get your Twitter ID is to go here (thanks to Tim): http://twitter-id-from-username.heroku.com/YOUR_TWITTER_NAME

Slugs

have to be exactly in this format (cf. Heart Chamber's /lib/string_helpers.rb, sluggify method):

YOURSTRING.underscore.parameterize(sep = '_')

examples:

"Tatjana Lajendäcker".underscore.parameterize(sep = '_')
# -> "tajana_lajendacker"

"9flats.com" # -> "9flats_com"
"SalesKing GmbH"       # -> "sales_king_gmb_h"

Tips

Arrays in schemas:

{
  "type": "object",
  "properties": {
    "keywords": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}

or:

{
  "type": "object",
  "title": "project",
  "description": "A project",
  "name": "project",
  "properties": {
    "name": {
      "description": "the name of the project.",
      "required": true,
      "type": "string"
    },
    //[...]
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "person": {
          "slug": {
            "description": "a project member's slug (FIRSTNAME_LASTNAME)",
            "type": "string",
            "required": true
          },
          "contact": {
            "description": "defines whether this person is one of the project's contact persons",
            "type": "boolean"
          }
        }
      }
    }
  }
}