REANNZ / federationregistry2-Tuakiri

Federation Registry2 by the Australian Access Federation - local Tuakiri customizations
http://www.aaf.edu.au
Apache License 2.0
4 stars 1 forks source link

APIv1 metadata controller breaks on individual entity metadata #2

Open vladimir-mencl-eresearch opened 4 years ago

vladimir-mencl-eresearch commented 4 years ago

Imported from upstream #162

I ran into this when exploring the REST API: the APIv1 metadata controller returns as the last entry of the list:

{"name":"entity","description":"SAML 2 compliant metadata snippet for specific entity descriptor ID","format":"xml","type":"entity","functioning":true,"link":"https://registry.tamaki.dev.tuakiri.ac.nz/federationregistry/api/v1/metadata/entity"}

But, when accessing the /federationregistry/api/v1/metadata/entity link, I only get

HTTP Status 400 -
type Status report
message

description The request sent by the client was syntactically incorrect.
Apache Tomcat/7.0.39

When I add the ID of an EntityDescriptor as an parameter, I do correctly get the metadata for that entityDescriptor:

https://registry.tamaki.dev.tuakiri.ac.nz/federationregistry/api/v1/metadata/entity/8

But it looks like the API controller is missing functionality to return a JSON list of entities with links to individual entity metadata URLs, similar to what other controllers do... looks like broken API to me.

Note: this is not used by any client - would be there just for completeness of the API.