A Rest API is a combination of . EXE and . DLL’s?

Asked

Viewed 68 times

0

I would like to know exactly how a Rest API works for the files that are part of it. See if my understanding is correct: When it is on the server, running, there will be a file. EXE running listening to a certain port to receive requests, is that it? It will receive requests by the executable, and it can use classes, methods, etc. that are in the . DLL’s? The API communicates with other programs on the computer, or only with those it is expected to communicate with?

Anyway, several questions, but the main point is to know if there is an executable file running on the server receiving requests, or if the requests can be passed directly to a DLL.

1 answer

2

Rest Apis are services consumed through the Http protocol. The consumption of these Apis is done by a client, which can be a Javascript code, an executable, a Dll... any program that can make an HTTP request.

Apis are part of a web application, hosted on a server (IIS, Apache, etc). They can be built in several languages, among them . NET, PHP and Java. In the case of . NET for example, involves the use of Dll’s, so it all depends on the language used.

Anyway, answering your question, it is not a simple Dll that receives and interprets the requests. You need to create and publish an application in Web format, using a language that has the ability to generate Rest Apis.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.