dotnet tool install --global Calebs.WebAPI
See the latest package details on nuget
calebs.webapi
calebs.webapi --urls=http://localhost:PORT
-
GET /hello/ This is a hello world end point. Should return
hello world -
GET /hello/{name}/ Hello world, with a passed token. Should return
hello {name} -
GET /secure/ a
secureend point. Will return403 Not Authorizedif no bearer token is present as a header. -
GET /AuthToken/ will return a token that can be used for the /secure/ end point
-
Echo This is why you're here. Echo returns back everything from the request. Including
VERBused (GET, POST, DELETE, PUT, PATCH) are currently supported. Allquerystring,headers,cookiesandbodyinformation are all reflected back as aJSONobject.
- A set of RESTFUL end-points for
Userobjects - backed by anIKeyValueRepofor some minimal stateful scenarios. - Considering: a set of "admin" end-points to allow dynamically adding new endpoints and supported RESTFUL nouns.
Please submit all PRs to the develop branch
- 0.1.0 - intial version.
.NET 7Installs as a dotnet global tool or run locally as a console web app. - 1.0.0 - official release. New features coming soon!
- 1.0.1 - added unit tests and version info on launch text