Go to file
Mike Nolan 9a7bb1160d Fix swagme method POST 2023-01-20 20:01:51 -06:00
Tesses.WebServer.EasyServer Fix swagme method POST 2023-01-20 20:01:51 -06:00
Tesses.WebServer.Swagme Fix swagme method POST 2023-01-20 20:01:51 -06:00
Tesses.WebServer.SwagmeTest Fix swagme method POST 2023-01-20 20:01:51 -06:00
README.md Initial commit 2022-09-30 03:27:12 -05:00
Tesses.WebServer.Extras.sln Initial commit 2022-09-30 03:27:12 -05:00

README.md

Tesses.WebServer.Extras

EasyServer Stats

Tesses.WebServer.EasyServer Nuget

Tesses.WebServer Downloads

Swagme Stats

Tesses.WebServer Nuget

Tesses.WebServer Downloads


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