user1706817
user1706817

Reputation: 11

connecting android client to rails server

I am a rails beginner and just generated scaffolded models. I am trying to connect this rails server to an android client that my co-founder made.

How can I do this? I was wondering if someone can please simplify the process to a beginner so that I can take the necessary steps to getting this done.

Thank you to anyone that helps!

Upvotes: 1

Views: 703

Answers (1)

jstim
jstim

Reputation: 2432

In this case, the Android app's code will include calls to the server's API (via calls to URLs like http://myapp.com/users which are generated by Rails' routes), which will return a response from the database in the Rails app with the data the client will show/evaluate.

You need to work with your cofounder to figure out what type of data is needed on the client, identify those RESTful endpoints and create other methods and routes in rails for those endpoints that are not yet available.

There are a ton of "Create a Rails API" articles out there, so dig around. If you have more specific questions, let me know and we can add the detail here.

Upvotes: 1

Related Questions