Frontend | Backend | Api

Blogs routes (Backend)

Name Request Response variables Description
addBlog

GET /cdna-admin/blogs/add-blog

Name Type Description
blog Blog Single (empty) Blog record
Add a new record. Assigns an empty record to the template.
editBlog

GET /cdna-admin/blogs/blog/{id}

id \d+
Name Type Description
blog Blog Retrieved Blog record
Retrieve a single record and display the edit page for the record
manageBlogs

GET /cdna-admin/blogs/blogs

Name Type Description
blogs Collection (Blog) Collection of Blogs
Retrieve available records and assign them to the template for editing.
addPost

GET /cdna-admin/blogs/add-post/{blog.id}

blog.id \d+
Name Type Description
post Post Single (empty) Post record
Add a new record. Assigns an empty record to the template.
editPost

GET /cdna-admin/blogs/post/{id}/{revision.id}

id \d+
revision.id \d+
Name Type Description
post Post Retrieved Post record
Retrieve a single record and display the edit page for the record
managePosts

GET /cdna-admin/blogs/posts/{blog.id}

blog.id \d+
Name Type Description
posts Collection (Post) Collection of Posts
Retrieve available records and assign them to the template for editing.
comparePostRevisions

GET /cdna-admin/blogs/post-revisions/{post.id}/{baseRevision}/{otherRevision}

post.id \d+
baseRevision \d+
otherRevision \d+
Name Type Description
post Post Post for which revisions are compared
baseRevision PostRevision Base revision
otherRevision PostRevision Other revision for comparison
baseLayout Layout Layout the base revision uses
otherLayout Layout Layout the other revision uses
Show comparison of post revisions
addComment

GET /cdna-admin/blogs/add-comment/{post.id}

post.id \d+
Name Type Description
comment Comment Single (empty) Comment record
Add a new record. Assigns an empty record to the template.
editComment

GET /cdna-admin/blogs/comment/{id}

id \d+
Name Type Description
comment Comment Retrieved Comment record
Retrieve a single record and display the edit page for the record
manageComments

GET /cdna-admin/blogs/comments/{post.id}

post.id \d+
Name Type Description
comments Collection (Comment) Collection of Comments
Retrieve available records and assign them to the template for editing.