1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-07 02:52:50 -05:00

Added favorites to ciphers and exposed PUT favorite cipher API

This commit is contained in:
Kyle Spearrin
2016-06-08 22:19:08 -04:00
parent ed0c6ad795
commit 4f59f38326
6 changed files with 22 additions and 1 deletions

View File

@ -16,6 +16,7 @@ namespace Bit.Api.Models
Id = cipher.Id.ToString();
FolderId = cipher.FolderId?.ToString();
Type = cipher.Type;
Favorite = cipher.Favorite;
Data = cipher.Data;
RevisionDate = cipher.RevisionDate;
@ -35,6 +36,7 @@ namespace Bit.Api.Models
public string Id { get; set; }
public string FolderId { get; set; }
public Core.Enums.CipherType Type { get; set; }
public bool Favorite { get; set; }
public dynamic Data { get; set; }
public DateTime RevisionDate { get; set; }
}

View File

@ -1,6 +1,5 @@
using System;
using Bit.Core.Domains;
using Newtonsoft.Json;
namespace Bit.Api.Models
{
@ -23,6 +22,7 @@ namespace Bit.Api.Models
Id = cipher.Id.ToString();
FolderId = cipher.FolderId?.ToString();
Favorite = cipher.Favorite;
Name = data.Name;
Uri = data.Uri;
Username = data.Username;
@ -33,6 +33,7 @@ namespace Bit.Api.Models
public string Id { get; set; }
public string FolderId { get; set; }
public bool Favorite { get; set; }
public string Name { get; set; }
public string Uri { get; set; }
public string Username { get; set; }