Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I was wondering how to create a java rest api where there is possibility to create something like a "signUp" and "signIn" user authentication to firestore (given it tokens). Supporting it with endpoints which can be accessed with for example postman or swift or android app when the api link is provided.
If I understood your question correctly, you would like to build a REST API which internally authenticates against Firestore? This can definitely be done by exposing the Firebase REST API for authentication with the Java binding for admin accesses.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm trying to connect a backend program that I wrote in java to frontend design that I made with "FIGMA". I pretty new in that, I was trying to read some information about it but didn't successes.
how could I make this connection. its kind of a form application that i want to link it to HTML design
There are several ways to connect backend and frontend, one way is to use REST protocol.
Your Backend can expose REST service (some library you can use are Spring MVC, Jersey, CXF, etc) then your Frontend can call the REST service.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
Currently I am working on an Android app what needs to call a Spring Boot REST API for some data stored in DB. What is the best practise to handle REST API calls from Android? I am interesed in the most clear way.
Do I need HTTPS or HTTP is enough? I will storing some user based data, but not like personal.or something. The most personal data would be email address. I am using Java.
I suggest you to use Retrofit 2 which is a powerful REST API client!
Also I found Futurestudios tutorials quite useful to learn how to use it in an android app.
As others already suggested I'd always use https:// nowadays.
Try the MVVM pattern with Repository pattern.
Here are the Architecture samples from Google
https://github.com/googlesamples/android-architecture
Apart from this use Retrofit to make remote API calls. In sample they are mocking the data so replace it with your api call.
Link to retrofit: https://square.github.io/retrofit/
How to consume REST services using Retrofit: https://android.jlelse.eu/consuming-rest-api-using-retrofit-library-in-android-ed47aef01ecb
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am trying to authenticate users from LDAP server to use the database using JAVA code. So far I have authentication working I just need to know how to get the roles from the LDAP?
According to the MySQL 5.5 manual, the way to get different MySQL roles for different users depending on their LDAP group membership is to use the PAM authentication plugin's proxy user mechanism. The manual includes extensive material on how to do this, and it would be pointless to repeat it all here.
However, you don't configure this from Java, and the mechanisms are not Java / JDBC specific.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a Vaadin Project that I didn't wrote. I didn't do anything with Vaadin before. Now I have to implement an API and Web Services for further communication.
So my question is: Is it possible to create web services and a further URL structure to the project besides the Vaadin stuff?
Thank you for your answers.
Vaadin is just a User Interface framework - for the presentation layer.You can write your service layer separately from the presentation layer as usual. So you can use whatever framework or mechanism you are familliar with in java or better yet just add more web services in a same way the old ones are published to preserve consistency.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new to the restful web services. So my knowledge is minimal about the topic. I am developing a restful service in Java & I want to call an Amazon web service API from inside the service. Is this possible? How many ways can I do this?
There's no difference to any other java program. Just call the URL using a HTTP Client. A popular one ist the HttpClient from Apache HttpComponent.
Take a look at Jersey framework. If I understand you correctly, you should find this section of the documentation useful.