Project Description
WebApi for Orchard Content Types.

GET:
$.get("/api/RaisingStudio.ContentTypesApi/ContentTypes?name=Issue", {}, function (data)
{
   .......
});

POST:
$.ajax({
    type: "POST",
    contentType: "application/json",
    url: "/api/RaisingStudio.ContentTypesApi/ContentTypes?name=Issue",
    data: JSON.stringify(issue),
    success: function (data)
    {
        .......
    }
});

PUT:
$.ajax({
    type: "PUT",
    contentType: "application/json",
    url: "/api/RaisingStudio.ContentTypesApi/ContentTypes/" + issue.Id,
    data: JSON.stringify(issue),
    success: function (data)
    {
        .......
    }
});

DELETE:
$.ajax({
    type: "DELETE",
    contentType: "application/json",
    url: "/api/RaisingStudio.ContentTypesApi/ContentTypes/" + issue.Id,
    success: function (data)
    {
        ......
    }
});    

Last edited Feb 16, 2013 at 4:32 PM by zhong_zhaofeng, version 7