Well, if you’re sure – better be…

Posted by in Technology

Gryffindor! Jokes. I’m obviously a Ravenclaw.

Just a quick one. Character data is now in the database! And, as an added extra, I’ve also added house data:

{
    "house": {
        "animal": "Lion", 
        "colours": "Crimson/Scarlet and Gold", 
        "common_room": "Gryffindor Tower", 
        "element": "Fire", 
        "founder": {
            "character_id": 60, 
            "name": "Godric Gryffindor", 
            "url": "http://localhost:5000/characters/60"
        }, 
        "ghost": {
            "character_id": 189, 
            "name": "Nicholas de Mimsy-Porpington", 
            "url": "http://localhost:5000/characters/189"
        }, 
        "house_id": 1, 
        "name": "Gryffindor", 
        "url": "http://localhost:5000/houses/1"
    }
}

I think ‘de Mimsy-Porpington’ has to be the best surname ever.

And after a helpful tip from @phalt_, I’ve changed the uri field to return the absolute Url of the resource (which, for now, is localhost). Now comes the task of allocating characters to their houses and the films / books they appear in.

On a different (but Harry Potter related) note, this is a thing: The Outdoor Cinema – Harry Potter Marathon