简体   繁体   中英

How to create REST API backend using parse.com in Java?

I'm sort of new to http://www.parse.com . And I want to develop backend in Java using REST API. It seems parse.com does not provides direct Java library for REST API development. But I found some third party libraries(un-official) like for Java: JAVA

Almonds — A Java REST API that mimics the Android API.

mobile-parse-api — This library implements the REST API of parse.com in java with open interfaces for libgdx and playN.

Parse4J — Library for the REST API.

ParseFacade — Parse Android SDK alternative.

But I am not understainding how to get start with these libraries in order to create backend API in Java

@Mahendra I assume by now you have found your answer. In case you haven't then here is a thought process that might be of interest.

From the little reading I have done on Parse.com it is a sort of like an Object database in itself which provides ready REST style api for all data stored there. See this - https://parse.com/docs/rest/guide

In addition they provide libraries for all popular Front Ends (iOS, Android, JS). I think they are advocating a paradigm shift for programmers who are used to having a lot of processing on the Backend servers and exposing simpler rest API which provides a processed and targeted response to each http request. Basically they are suggesting that the whole backend infrastructure (db, app server, server side logic etc) can be replaced by parse.com If you are considering using Parse.com I assume you have read and understood above mentioned thought process and decided that it makes sense for your project.

I would advise you to consider using a using a common client side Java library that works with the Parse rest api and then use appropriate Client SDK (iOS, Java, JS etc) to work with your library and design the UI. Since you are asking about Java library, I assume your language of choice for storing processing logic is Java. What I suggest next may be bit of a long shot ... but worth a consideration. Write code non-ui code in Java and work with the Android API from Parse.com. Use a Java to Objective C. https://github.com/google/j2objc
This will also allow you to use Java code for your web browser (using GWT as a UI framework).

Then write UI code in the framework suited for the platform (obj c for ios, Java for Android, GWT + Java for web browsers) and use the java library to connect to Parse.com.

If you have already tried out such an approach would be good to write back opinions in a comment so the community may benefit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM