64503: Content Source PUT request on form submit

This commit is contained in:
Kristof De Langhe
2019-08-20 17:28:28 +02:00
parent 764f532b99
commit 1b9bc2f7a3
5 changed files with 87 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import { autoserialize, autoserializeAs } from 'cerialize';
import { autoserialize, autoserializeAs, deserializeAs, deserialize } from 'cerialize';
export enum ContentSourceHarvestType {
None = 'NONE',
@@ -15,7 +15,7 @@ export class ContentSource {
* Unique identifier, this is necessary to store the ContentSource in FieldUpdates
* Because the ContentSource coming from the REST API doesn't have a UUID, we're using the selflink
*/
@autoserializeAs('self')
@deserializeAs('self')
uuid: string;
/**
@@ -46,6 +46,6 @@ export class ContentSource {
/**
* The REST link to itself
*/
@autoserialize
@deserialize
self: string;
}