N
N
newdancer2015-12-23 14:38:41
Java
newdancer, 2015-12-23 14:38:41

Handling data between phone and server using Rest api?

Handling data between phone and server using Rest api?
The bottom line is that there is a server on which the site is located. I use the Rest api to get data from the site's database. Now I need to sort them? where is it better to do it on the phone or on the server? If on the server how to implement? Make a lot of rest api files with different requests, or how can you pass the code of the request itself and the number of returned values?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
maxt888, 2015-12-23
@maxt888

Do the manipulations yourself, of course, on the server. Communicate with the server using json. I feel you need to read about REST & JSON.

O
Oleg Gamega, 2015-12-23
@gadfi

you need to read about restful api in isolation from any programming language.
it doesn’t matter how you do it in what language ... it doesn’t matter until a certain moment, someone needs to support all this ))
sit down and write the documentation for your api first, then re-read it with a fresh mind and most likely rewrite it again ))
the main thing you should remember is that the rest is very simple and if something is difficult somewhere, then most likely you are doing something wrong) api can and should be able to work with parameters, pagination
, etc.
I don’t know what language your server is in, but read about template engines and then about mvc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question