9a7bb1160d | ||
---|---|---|
Tesses.WebServer.EasyServer | ||
Tesses.WebServer.Swagme | ||
Tesses.WebServer.SwagmeTest | ||
README.md | ||
Tesses.WebServer.Extras.sln |
README.md
Tesses.WebServer.Extras
EasyServer Stats
Swagme Stats
How to use Easy Server, ex for a static website
using Tesses.WebServer;
StaticServer server=new StaticServer("website");
server.StartServer(4000);
How to use Swagme
using Tesses.WebServer;
using Tesses.WebServer.Swagme;
int value=0;
SwagmeServer svr=new SwagmeServer();
svr.AbsoluteUrl=true;
svr.Add("/Progress",async (e)=>{
await e.SendJsonAsync(new{Progress=50});
},new SwagmeDocumentation("Description","Extended Description"),group: "Getting Values");
RouteServer rsvr=new RouteServer();
rsvr.Add("/",(e)=>{
e.SendText("...html...");
});
MountableServer mount =new MountableServer(rsvr);
mount.Mount("/api/",svr);
mount.StartServer(4202);
The frontend for Swagme uses Bootstrap