Skip to content

Arch/ApiWidgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft.AspNetCore.ApiWidgets

Join the chat at https://gitter.im/lovedotnet/ApiWidgets This package contains some reusable, flexible and scalable api widgets for Asp.Net Core.

Features

  • Request Filtering that use middleware to implement IIS Request Filtering module.
  • Plugin for Asp.Net Core to convert RESTful API to 200 OK + ApiResult response.

In China, the GSM and TD-SCDMA will hijacking the HTTP status code 400, 404 to 139.com navigation page in some case. In this cases, we need to convert RESTful API to 200 OK + ApiResult

public class ApiResult<TResult> {
	public ApiResult() {

	}

	public int StatusCode { get; set; }

	public string Message { get; set; }

	public ApiResult(TResult result, int? statusCode) {
		StatusCode = statusCode ?? 200
		Result = result;
	}

	public TResult Result { get; set; }
}
  • More...

How to use

See Host for more information.

About

This repo contains some reusable, flexible and scalable api widgets for Asp.Net Core.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages