Closed notchahm closed 10 years ago
This looks good. I'm trying to think of other properties that might be useful, but I can't off the top of my head. As far as content types go, I was hoping to have something like markdown but with syntax to support (rich snippets)[https://support.google.com/webmasters/answer/99170?hl=en] -- what do you think? I guess that can always come later though. Journal sounds interesting, but maybe we should just focus on one or two for now?
Also, I prefer lowerCamelCase for property names.
And I think passing the whole user object would be fine.
plz.create.page(options, callback);
options:
author: // the User object corresponding to whomever is logged in pageTitle: visibility: contentType: // plain text, HTML, markdown, journal (a collection of articles) ... content: createdAt: modifiedAt: status: // draft, pending review, published ..
Return success: true/false, descriptive error string