ContentController Class

Namespace:
Weavy.Web.Api.Controllers
Assembly:
Weavy.Web.dll

The Content API allows a user to manage content.

public class ContentController : WeavyApiController
Inheritance:
System.Object → WeavyApiControllerContentController

Constructors

ContentController()

Methods

Delete(Int32) Permanently delete a content item.
Discard(Int32) Discards the draft with the specified id.
Draft(Int32, Delta, Boolean) Creates a draft for an content item.
Follow(Int32) Follow a content item.
Get(Int32) Get the content item with the specified id.
Insert(Int32, IEnumerableIn>) Insert content into the root of the specified app.
InsertChildren(Int32, IEnumerableIn>) Insert a content item as a child of the specified content item.
InsertOrReplace(Int32, ContentReplaceIn) Inserts or replaces existing items in the root of the specified app.
InsertOrReplaceChildren(ContentReplaceIn, Int32) Inserts or replaces existing items in in a folder or other content item.
Like(Int32) Like an item.
Restore(Int32) Restore a trashed content item from the recycle bin.
Search(ContentQuery) Searches for content items.
Star(Int32) Star an item.
Trash(Int32) Trash a content item, i.e. move it to the recycle bin.
Unfollow(Int32) Unfollow a content item.
Unlike(Int32) Unlike an item.
Unstar(Int32) Unstar an item.
UploadAndReplaceAttachments(Int32, UploadIn) Replace existing attachments with the specified blobs.
UploadAndReplaceChildren(Int32, UploadIn) Replace existing files in folder with the specified blobs.
UploadAndReplaceRoots(Int32, UploadIn) Replace existing files in app root with the specified blobs.
UploadAttachments(Int32) Upload attachments to a content item. The request format must be multipart/form-data.
UploadChildren(Int32) Upload file(s) to a folder (or any other content item that allows it). The request format must be multipart/form-data.
UploadRoots(Int32) Upload file(s) to the root of an app. The request format must be multipart/form-data.

Extension Methods

IsNullOrDefault(T) 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.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.