WeavyApiController Class
- Namespace:
- Weavy.Web.Api.Controllers
- Assembly:
- Weavy.Web.dll
Abstract base class for API controllers.
public abstract class WeavyApiController : ApiController
- Inheritance:
- System.Object → WeavyApiController
Constructors
Weavy |
Fields
Default |
The default page size for api requests. |
Max |
The max page size for api requests. |
Properties
Owin |
Get the current Owin context. |
User | Gets the user security information for the current HTTP request. |
Methods
Throw |
Throws a HttpResponseException with the specified code and message. |
Throw |
Throws a HttpResponseException with the specified code and message. |
Validate |
Helper method for validating an object after patch and put requests. |
Extension Methods
Is |
Gets a value indicating if the specified value has the default value of the generic type. |
Serialize(object) | Serializes an object, or graph of connected objects, to a byte array. |
Serialize |
Serializes an object, or graph of connected objects, to a json string. |
Is |
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type. |