Calebs.WebAPI
1.0.1
dotnet tool install --global Calebs.WebAPI --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local Calebs.WebAPI --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Calebs.WebAPI&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Calebs.WebAPI --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Caleb's WebAPI
a basic Web API useful for testing multiple scenarios - deployed as a console app and dotnet tool.
Install
dotnet tool install --global Calebs.WebAPI
See the latest package details on nuget
Usage
To start web API app:
calebs.webapi
Optionaly specifiy port to run on:
calebs.webapi --urls=http://localhost:PORT
Supported Commands:
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
secure
end point. Will return403 Not Authorized
if 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
VERB
used (GET, POST, DELETE, PUT, PATCH) are currently supported. Allquerystring
,headers
,cookies
andbody
information are all reflected back as aJSON
object.
Coming Soon
- A set of RESTFUL end-points for
User
objects - backed by anIKeyValueRepo
for some minimal stateful scenarios. - Considering: a set of "admin" end-points to allow dynamically adding new endpoints and supported RESTFUL nouns.
Contribution
Please submit all PRs to the develop
branch
Version History
- 0.1.0 - intial version.
.NET 7
Installs 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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 95 | 11/9/2024 |
1.0.1-ci-5 | 75 | 11/10/2024 |
1.0.1-ci-4 | 71 | 11/9/2024 |
1.0.0 | 94 | 11/8/2024 |
1.0.0-ci-3 | 71 | 11/9/2024 |
1.0.0-ci-2 | 69 | 11/8/2024 |
0.1.0 | 89 | 11/8/2024 |
0.1.0-ci-1 | 124 | 1/22/2024 |