unAPI revision 1-compliant
I noticed Dan Chudnov’s earlier note about the launch of the unAPI website and noted in particular the the unAPI revision 1 specification. I decided to give Technosophia a run through some error cases and some of the errors came up as 400 where they should have been 404 or 406. I made a few minor tweaks to pbinkley’s unAPI WordPress plug-in and I believe Technosophia is now fully compliant with unAPI revision 1.Â
Here are the test cases I used:
- /unapi.php 200 Ok
- /unapi.php?uri=oai%3Alackoftalent.org%3Atechnosophia%3A25 300 Multiple Choices
- /unapi.php?uri=oai%3Alackoftalent.org%3Atechnosophia%3A25&format=mods 200 Ok
- /unapi.php?uri=oai%3Alackoftalent.org%3Atechnosophia%3A25&format=BADFORMAT 406 Not Acceptable
- /unapi.php?uri=BADURI&format=mods 404 Not Found
- /unapi.php?format=mods 400 Bad Request
Woohoo?
Â