outofcopyright / outofcopyright-website

Website components for OutOfCopyright.eu
http://outofcopyright.eu
Other
0 stars 2 forks source link

Testing the API does not work when following the presented links. #68

Closed mzeinstra closed 9 years ago

mzeinstra commented 9 years ago

Doing:

GET http://api.outofcopyright.eu/Netherlands?ref=Netherlands

Gives me

{
  "categories": [
    {
      "name": "Broadcast",
      "url": "http://api.outofcopyright.eu/Netherlands/Broadcast"
    },
    {
      "name": "First Fixation of a Film",
      "url": "http://api.outofcopyright.eu/Netherlands/First%20Fixation%20of%20a%20Film"
    },
    {
      "name": "Unoriginal Database",
      "url": "http://api.outofcopyright.eu/Netherlands/Unoriginal%20Database"
    },
    {
      "name": "Performance",
      "url": "http://api.outofcopyright.eu/Netherlands/Performance"
    },
    {
      "name": "Literary or Artistic Works",
      "url": "http://api.outofcopyright.eu/Netherlands/Literary%20or%20Artistic%20Works"
    },
    {
      "name": "Phonogram",
      "url": "http://api.outofcopyright.eu/Netherlands/Phonogram"
    }
  ]
}

but following those links gives me the API of the master branch. For example

GET http://api.outofcopyright.eu/Netherlands/Literary%20or%20Artistic%20Works

gives me:

{
"error": 9,
"message": "Type of work not found"
}

These links should contain ?ref=Netherlands as

GET http://api.outofcopyright.eu/Netherlands/Literary%20or%20Artistic%20Works?ref=Netherlands

does work.

jeromejesse commented 9 years ago

The right URL is http://api.outofcopyright.eu/wip/Netherlands/Literary%20or%20Artistic%20Works

I will correct the link to the site.