sample REST API for a blogging application