code: function(post) {
        return $http({
          url : '/api/v1/posts/' + post._id,
          method : 'PUT',
          params : {access_token : authProvider.getUser().token},
          data : post
        }).catch(authProvider.checkApiResponse);
      }
docs: Saves a post