firebase java,如何让Firebase与Java后端一起工作

First of all I'd like to apologize if this question is to abstract or unsuitable for this site. I really don't know where else to ask.

Currently I have developed apps in iOS and Android. They keep all their state in firebase, so everything is instantly persisted to the Firebase Realtime Database.

Before a user is created I populate the realtime database manually with some data that is expected to be there so that the app can run, such as config data for the user. When I'm "done" using the app I view the data directly in the Firebase console.

Now I want a backend to do the job I have done manually. I want the backend to be able to populate the realtime database and I want it also to be able to retrieve data from Firebase. I would like this to be done from a Java backend(Spring MVC but that might not be critical information right now).

How should I go about doing this? Googling hasn't gotten me that far(java+backend+firebase mostly tells me that "Firebase offers a backend to Android Java").

If this is the wrong place to post this, then please suggest where I can post it instead.

Edit: I am aware of the Server SDK. I am rather referring on how to implement this in what would typically be a stateless rest solution than specifically how the methods in the Server SDK are executed.

解决方案

Firebase has its own RestApi, you can use it in your api https://firebase.google.com/docs/database/rest/start

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值