3 ms·
Someone sent me a WADL file the other day: http://www.w3.org/Submission/wadl/ http://www.w3.org/Submission/wadl/ It didn't take long to find a tool which woul
by twic 12y ago
Someone sent me a WADL file the other day:
http://www.w3.org/Submission/wadl/ http://www.w3.org/Submission/wadl/
It didn't take long to find a tool which would generate a client library from it.
Three caveats:
Firstly, i was working in Java; WADL originated at Sun, so there are Java tools for it, but i doubt any other language has support.
Secondly, i don't think it really saved me much time. Hand-coding a JSON API client isn't exactly difficult. The main advantage i can see would be in dealing with an evolving API, where the implementer of the API can continually update a WADL file which clients can use in their build process to stay up to date.
Thidly, the generated code had a bug, and blew up on one of the data types returned from the API!