Posts Tagged rest
In my previous post I started a project/experiment to create a simple Java Rest client. I immediately found that I would need a simple service that didn’t do much in order to test it properly. So that is leading to another part of the project, the simple PHP service. I started writing what I thought would be a pretty simple generic PHP service, then it hit me…I suck at PHP. No really, I haven’t done it in a while, and even then I wasn’t highly proficient. So I scrapped the whole idea and decided that someone out there in the interweb must have created a simple PHP rest service thinger. As it turns out, I was right
This project was super simple and did everything I needed it to do. Predefined service routes and responses. Yes, I could shoe-horn it into doing a lot more, but I don’t need that. Just something easy to create and modify service responses to test my simple client with.
I guess after all this I have to say that the old mantra of Unix coding is really starting to die out. “Make each program do one thing well” It seems everyone is so concerned with creating programs that do everything for everyone, they don’t do anything very well.
I added a new page for my newest experiment. I had to create a very simple REST client for a project that couldn’t depend on any outside libraries, just the standard Java EE libs. I got it build and functioning, but it’s pretty barebones right now. It was a good learning experience and I plan to continue that, making it more functional and complete. The goals of the experiment are:
1. It will be a single java file
2. It will not depend on anything other than the standard Java libraries
3. It will handle HTTP and HTTPS
4. It will handle all standard HTML responses in a logical fashion (thats open to interpretation right now)
5. It won’t suck…
Well thats all I have right now. Check the project out here if you want.