Note: This document is a work in progress. You can help improve it.

extend the blog API

Add comments to a blog

Schema

public class Blog{
public int Id { get; set; }
public string Title { get; set; }
public string Author { get; set; }
public DateTime DateCreated { get; set; }
public string Content { get; set; }
public List<Comment> Comments {get;set;}
}
public class Comment {
public int Id {get;set;}
public string Content {get;set;}
public string Author { get; set; }
public DateTime DateCreated { get; set; }
public int BlogId {get;set;}
public Blog Blog {get;set;}
}

API Definiation

``