H
H
Helig2019-07-21 22:17:48
Java
Helig, 2019-07-21 22:17:48

How to work with MySql database using Retrofit2?

You need to connect and process POST / GET requests, but it's not very clear how to do this with MySql, because in all articles on Retrofit2 they offer work with JSON databases, like jsonplaceholde. Please help me figure this out, and also please advise something similar to jsonplaceholde, but with mysql.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alfss, 2019-07-21
@Helig

You need to write a REST API server to access the data, retrofit is an HTTP client to work with the API.

A
alex stephen, 2017-11-01
@berezuev

Apparently, right?
$array = ;

L
Lander, 2017-11-01
@usdglander

$array = [];
for ($n = 0; $n<100; $n++) {
    $array[] = ['field' => $n];
}

It is necessary?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question