A
A
Anna2016-12-19 12:03:57
API
Anna, 2016-12-19 12:03:57

How to make an API for the server?

Friends, help a newbie with a slightly stupid question.
In general, there is an android application, and it needs a server with a minimal api that allows you to get information in json and write it to the database, and accordingly get it from there and give it to the client. Apart from authorization, 1 post and 1 get request. No tricks are needed, everything is minimally simple. I want to use asp.net web api, I can roughly imagine how it is, but I don’t know where to start.
Maybe there are some step-by-step articles on how all this is done: where to get free hosting, how to install php mysql there, how to attach api, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2016-12-19
@hummingbird

Take cheap VDS. For example, here - https://firstvds.ru/products/vds_vps_hosting (not advertising).
You can also hang PU on it, which will make your life easier, but also add 190 rubles a month. I would not take PU, since you have a primitive task and setting up only for one project - API.
Further, if you know PHP, then google and find something like this: anton.shevchuk.name/php/create-restful-api
In any case, the query for Google is: "restful api language_name".
If you do not know PHP, then you can implement it on anything. I can advise to look towards NodeJS.
Next, when you have prepared the server and also written your API, it's time to talk about security. It is not fashionable to transfer data over http now and it is always not safe. So google about https. As an option for the homeless: https://www.cloudflare.com (but this service is really very good).
PS: Since, as you yourself said, you don’t understand anything about this, it’s better to entrust this work to a knowledgeable person, moreover, such an implementation is not so expensive (I’m not hinting at anyone).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question