What is rest API? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is rest API?

What is rest API? i want authentication in api

9th May 2017, 6:22 PM
Aditya Gupta
Aditya Gupta - avatar
3 Answers
+ 14
REST: REpresentative State Transfer. API: Application Programming Interface. A REST API is essencially a way for computer programs to talk to each other. For example, when you login to SoloLearn, your web browser sends your email and password over to SoloLearn's servers, and if the two match on its servers then SoloLearn allows you to login and access the platform. This is possible thanks to an API. One of the most common REST APIs is called HTTP or "Hypertext Transfer Protocol", which sends things over the web; I'm sure you're familiar with the "http" that precedes almost all URLs. HTTP has several methods, which are ways of interacting with data. The 4 basic ones are: - POST (creates a new resource to the server, like when you post a new question in SoloLearn) - GET (reads a resource from the server, like the answers of the sololearners on your question) - PUT (updates a resource on the server, say you want to edit your question or answer you already sent) - DELETE (deletes a resource on the server, for example if you delete this question)
10th May 2017, 11:21 AM
Pao
Pao - avatar
0
what a fantastic explanation u have given dear poala mb . i have created a program in c# through which i can get the data in json format, now i want some authentication in it , how can i do it? if possible share ur mail id . ucan mail ur id on adityagupta200@gmail.com. need help regarding web api.
10th May 2017, 4:25 PM
Aditya Gupta
Aditya Gupta - avatar