Thread overview
How to create a API server?
Dec 16, 2022
Dariu Drew
Dec 16, 2022
TTK Ciar
Dec 18, 2022
TTK Ciar
Dec 18, 2022
Adam D Ruppe
Dec 18, 2022
Sergey
December 16, 2022

Hi! i need help in can i create a serve API, what library i should use? what documentation i should read?

December 16, 2022

On Friday, 16 December 2022 at 20:57:30 UTC, Dariu Drew wrote:

>

Hi! i need help in can i create a serve API, what library i should use? what documentation i should read?

The arsd package includes arsd.http2 which makes it easy to implement API servers with very little code.

https://code.dlang.org/packages/arsd-official

December 18, 2022

On Friday, 16 December 2022 at 22:10:37 UTC, TTK Ciar wrote:

>

On Friday, 16 December 2022 at 20:57:30 UTC, Dariu Drew wrote:

>

Hi! i need help in can i create a serve API, what library i should use? what documentation i should read?

The arsd package includes arsd.http2 which makes it easy to implement API servers with very little code.

https://code.dlang.org/packages/arsd-official

Oops, wrong module!! I meant arsd.cgi, very sorry!

December 18, 2022
On Sunday, 18 December 2022 at 09:34:06 UTC, TTK Ciar wrote:
> Oops, wrong module!! I meant arsd.cgi, very sorry!

Yes, http2.d is the client side for http, arsd.cgi implements the http server.
December 18, 2022

On Friday, 16 December 2022 at 20:57:30 UTC, Dariu Drew wrote:

>

Hi! i need help in can i create a serve API, what library i should use? what documentation i should read?

Check the bench: https://github.com/tchaloupka/httpbench
there are a lot of web servers in D. You can find one that fits your needs :)