1

I need to know if I write Rest API in JAVA using Spring framework and I will be using it in angular js front end, is it possible to use the same API's for Andriod app later. Is it a good to use same api's for both web and app, I have no idea about android development, please help.

1
  • You have a good answer below, and I think you might like to check out NativeScript (NativeScript.org) with Angular integration... I'm playing with that right now to make an app. Commented Aug 29, 2016 at 3:37

1 Answer 1

1

If your API is RESTful, and by that I mean at least stateless and resource based. Then yeah, it doesn't matter what program you're requesting data from.

If your are able to process the response into your front end (reading the format, etc). It'll be fine. Just make sure your API's endpoints work correctly and are configured to handle the request your programs will be using to communicate with your API (most of the times these are http requests)

Sign up to request clarification or add additional context in comments.

2 Comments

Great thanks, I also wanted to know if its good to use same API's for web and app, as I am not sure if its gonna affect the performance and speed for app or any other issues.
It won't as long as both you front end and back end code (your API) are well written. Other than that, there shouldn't be any other issues.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.