Project

General

Profile

RESTFul api implementation

Added by Alexandre Bencz about 6 years ago

Hi!

I have implemented a simple RestFul webapi with Wt to a test project ( https://github.com/bencz/CapitalStock/tree/master/src/csWebService ).

I wonder if the way I've implemented it is the best with Wt....

In several parts of the development I have doubts, for example, in this part: https://github.com/bencz/CapitalStock/blob/master/src/csWebService/ServiceSession.cpp#L127

I've created with a limit of 30 connections in SQL, I believe this is not the best for a system that will receive MANY accesses...

So, the REAL world WebApi will receive MANY connections per second, what is the best way to develop webapi? ( in terms of SQL connection )

How can I make a method to receive a file? ( something like this: https://chsakell.com/2015/06/07/web-api-file-uploading-desktop-and-web-client/ )