|
SimpleREST.NET 0.1
A simple and minimal api framework for .net base on Express.js
|


Public Member Functions | |
| SimpleRestApi (int port, ISimpleRestLogger? logger=null, ISimpleRestContentTypeParser? responseParser=null, ISimpleRestUriTemplateFormatter? uriFormatter=null, ISimpleRestEndpointFormatter? endpointFormatter=null, JsonSerializerOptions? jsonSerializerOptions=null, Type? defaultIntType=null) | |
| void | Use (ISimpleRestApiHandler customHandler) |
| void | Map (string endpoint, ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | All (ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Options (ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Options (string endpoint, ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Get (string endpoint, ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Get (ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Post (string endpoint, ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Post (ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Put (string endpoint, ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Put (ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Patch (string endpoint, ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Patch (ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Delete (string endpoint, ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Delete (ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Head (string endpoint, ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| void | Head (ApiMiddleWare middleWare, params ISimpleRestRouteHandler[] routeHandlers) |
| async Task | Start (Action< int, string >? OnStartup=null) |
| void | Stop () |
| void | Dispose () |
Properties | |
| bool | HasStarted = false [get] |
| bool | Disposed = false [get] |
Definition at line 14 of file SimpleRestApi.cs.
| SimpleRest.Api.SimpleRestApi.SimpleRestApi | ( | int | port, |
| ISimpleRestLogger? | logger = null, | ||
| ISimpleRestContentTypeParser? | responseParser = null, | ||
| ISimpleRestUriTemplateFormatter? | uriFormatter = null, | ||
| ISimpleRestEndpointFormatter? | endpointFormatter = null, | ||
| JsonSerializerOptions? | jsonSerializerOptions = null, | ||
| Type? | defaultIntType = null ) |
Definition at line 72 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.All | ( | ApiMiddleWare | middleWare, |
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 159 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Delete | ( | ApiMiddleWare | middleWare, |
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 243 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Delete | ( | string | endpoint, |
| ApiMiddleWare | middleWare, | ||
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 234 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Dispose | ( | ) |
| void SimpleRest.Api.SimpleRestApi.Get | ( | ApiMiddleWare | middleWare, |
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 187 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Get | ( | string | endpoint, |
| ApiMiddleWare | middleWare, | ||
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 178 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Head | ( | ApiMiddleWare | middleWare, |
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 257 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Head | ( | string | endpoint, |
| ApiMiddleWare | middleWare, | ||
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 248 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Map | ( | string | endpoint, |
| ApiMiddleWare | middleWare, | ||
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 150 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Options | ( | ApiMiddleWare | middleWare, |
| params ISimpleRestRouteHandler[] | routeHandlers ) |
| void SimpleRest.Api.SimpleRestApi.Options | ( | string | endpoint, |
| ApiMiddleWare | middleWare, | ||
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 169 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Patch | ( | ApiMiddleWare | middleWare, |
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 229 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Patch | ( | string | endpoint, |
| ApiMiddleWare | middleWare, | ||
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 220 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Post | ( | ApiMiddleWare | middleWare, |
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 201 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Post | ( | string | endpoint, |
| ApiMiddleWare | middleWare, | ||
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 192 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Put | ( | ApiMiddleWare | middleWare, |
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 215 of file SimpleRestApi.cs.
| void SimpleRest.Api.SimpleRestApi.Put | ( | string | endpoint, |
| ApiMiddleWare | middleWare, | ||
| params ISimpleRestRouteHandler[] | routeHandlers ) |
Definition at line 206 of file SimpleRestApi.cs.
| async Task SimpleRest.Api.SimpleRestApi.Start | ( | Action< int, string >? | OnStartup = null | ) |
| OnStartup |
Definition at line 267 of file SimpleRestApi.cs.

| void SimpleRest.Api.SimpleRestApi.Stop | ( | ) |
| void SimpleRest.Api.SimpleRestApi.Use | ( | ISimpleRestApiHandler | customHandler | ) |
Definition at line 145 of file SimpleRestApi.cs.
|
get |
Definition at line 28 of file SimpleRestApi.cs.
|
get |
Definition at line 27 of file SimpleRestApi.cs.
| Action< SimpleRestApi, SimpleRestRequest, SimpleRestResponse, UriTemplateMatch, SimpleRestMap >? SimpleRest.Api.SimpleRestApi.OnApplyUriParams |
Definition at line 54 of file SimpleRestApi.cs.
| Action<SimpleRestApi>? SimpleRest.Api.SimpleRestApi.OnBeforeRequestCreate |
Definition at line 30 of file SimpleRestApi.cs.
| Action<SimpleRestApi, SimpleRestRequest, SimpleRestResponse>? SimpleRest.Api.SimpleRestApi.OnBeforeRequestEnd |
Definition at line 69 of file SimpleRestApi.cs.
| Action<SimpleRestApi, SimpleRestRequest>? SimpleRest.Api.SimpleRestApi.OnBeforeResponseCreate |
Definition at line 32 of file SimpleRestApi.cs.
| Action< SimpleRestApi, SimpleRestRequest, SimpleRestResponse, UriTemplateMatch, SimpleRestMap >? SimpleRest.Api.SimpleRestApi.OnBeforeRunMiddleware |
Definition at line 61 of file SimpleRestApi.cs.
| Action< SimpleRestApi, SimpleRestRequest, SimpleRestResponse, Dictionary<UriTemplateMatch, SimpleRestMap> >? SimpleRest.Api.SimpleRestApi.OnHandleRequestStack |
Definition at line 40 of file SimpleRestApi.cs.
| Action<SimpleRestApi, SimpleRestRequest>? SimpleRest.Api.SimpleRestApi.OnLog |
Definition at line 34 of file SimpleRestApi.cs.
| Action<SimpleRestApi, SimpleRestRequest>? SimpleRest.Api.SimpleRestApi.OnRequestCreate |
Definition at line 31 of file SimpleRestApi.cs.
| Action<SimpleRestApi, SimpleRestRequest, SimpleRestResponse>? SimpleRest.Api.SimpleRestApi.OnRequestEnd |
Definition at line 70 of file SimpleRestApi.cs.
| Action< SimpleRestApi, SimpleRestRequest, SimpleRestResponse, UriTemplateMatch, SimpleRestMap >? SimpleRest.Api.SimpleRestApi.OnRequestMatch |
Definition at line 47 of file SimpleRestApi.cs.
| Action<SimpleRestApi, SimpleRestRequest, SimpleRestResponse>? SimpleRest.Api.SimpleRestApi.OnResponseCreate |
Definition at line 33 of file SimpleRestApi.cs.
| Action< SimpleRestApi, SimpleRestRequest, SimpleRestResponse, UriTemplateMatch, SimpleRestMap >? SimpleRest.Api.SimpleRestApi.OnRunMiddleware |
Definition at line 68 of file SimpleRestApi.cs.
| Action<SimpleRestApi>? SimpleRest.Api.SimpleRestApi.OnServerStart |
Definition at line 29 of file SimpleRestApi.cs.