www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to create a API server?

reply Dariu Drew <dariubizzle gmail.com> writes:
Hi! i need help in can i create a serve API, what library i 
should use? what documentation i should read?
Dec 16 2022
next sibling parent reply TTK Ciar <ttk ciar.org> writes:
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
Dec 16 2022
parent reply TTK Ciar <ttk ciar.org> writes:
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!
Dec 18 2022
parent Adam D Ruppe <destructionator gmail.com> writes:
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.
Dec 18 2022
prev sibling parent Sergey <kornburn yandex.ru> writes:
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 :)
Dec 18 2022