Encyclopedia swagger API error
There is problem when using the swagger client for accessing the API for:
from bravado.client import SwaggerClient
client = SwaggerClient.from_url('http://nomad-lab.eu/prod/rae/api/swagger.json')
material_id = 'FfM9OUYlD65FoxA9l6XChXgyiXH0' #just an example
response = client.encyclopedia.get_material(material_id = material_id).response()
fails with:
HTTPNotFound: 404 NOT FOUND
However, accessing the URL directly using e.g. requests
:
import requests
response = requests.get('http://nomad-lab.eu/prod/rae/api/encyclopedia/materials/FfM9OUYlD65FoxA9l6XChXgyiXH0')
works fine.