mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-03-29 23:41:06 +02:00
monographs: add slug field which regenerates on republish (#72)
* monographs: add slug field which regenerates on update * monographs: don't regenerate slug on update * common: fix monograph public url constant * monographs: improve APIs && use .Project when fetching monographs * create separate endpoint for fetching monographs by slug * combine analytics and publish-url endpoint into a publish-info endpoint * monographs: reinstate analytics endpoint * common: add missing monograph constant * monograph: refactoring --------- Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
This commit is contained in:
@@ -56,6 +56,9 @@ namespace Notesnook.API.Models
|
||||
[JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonPropertyName("slug")]
|
||||
public string? Slug { get; set; }
|
||||
|
||||
[JsonPropertyName("userId")]
|
||||
public string? UserId { get; set; }
|
||||
|
||||
|
||||
@@ -19,8 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
using MongoDB.Bson;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace Notesnook.API.Models
|
||||
{
|
||||
@@ -37,6 +35,9 @@ namespace Notesnook.API.Models
|
||||
[JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonPropertyName("publishUrl")]
|
||||
public string? PublishUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("selfDestruct")]
|
||||
public bool SelfDestruct { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user