Ojonugwa Jude Ochalifu
Ojonugwa Jude Ochalifu

Reputation: 27256

Creating a Google App Engine App without a User Interface

Am trying to create an Android app that uses Google App Engine as a backend, but i want to create the Google App Engine app first then create the Android app to send and get requests from it.The problem is i don't want to go through the pain of writing JSPs to test the app, is there another way of knowing my app works fine without creating a UI (which would be redundant for my final app anyways).

Upvotes: 0

Views: 90

Answers (1)

Martin Berends
Martin Berends

Reputation: 4178

Use Eclipse to create an AppEngine project. Delete the index.html file and its web.xml entry and instead put your RESTful URLs and class names into the web.xml file. Create a Servlet class for each RESTful URL that you defined and make its doGet method respond with some non-HTML content, for example some JSON, CSV or XML data instead. Test with your browser or a command line utility such as curl.

After that works, implement request parameters to let the client pass data to the servlet. Add doPost, doPut and doDelete methods to make the app more RESTful. Research the addition of libraries such as Jackson and Jersey to do some of the heavy lifting for you (optional).

Upvotes: 3

Related Questions