protected LinkRepresentation CreateDetailsLink() => LinkRepresentation.Create(OidStrategy, new MemberRelType(new UriMtHelper(OidStrategy, Req, ActionContext)), Flags);
protected LinkRepresentation CreateSelfLink() => LinkRepresentation.Create(OidStrategy, self, Flags);
private LinkRepresentation CreateSelfLink() { return(LinkRepresentation.Create(OidStrategy, self, Flags)); }
private LinkRepresentation CreateDetailsLink() { return(LinkRepresentation.Create(OidStrategy, new MemberRelType(new UriMtHelper(OidStrategy, req, actionContext)), Flags)); }
private LinkRepresentation CreateModifyLink() => LinkRepresentation.Create(OidStrategy, new MemberRelType(RelValues.Modify, GetHelper()) { Method = RelMethod.Put }, Flags, new OptionalProperty(JsonPropertyNames.Arguments, MapRepresentation.Create(new OptionalProperty(JsonPropertyNames.Value, null, typeof(object)))));
private LinkRepresentation CreateReturnTypeLink() { return(LinkRepresentation.Create(OidStrategy, new DomainTypeRelType(RelValues.ReturnType, new UriMtHelper(OidStrategy, req, actionContext.Specification)), Flags)); }
protected LinkRepresentation CreateValueLink(IObjectFacade no) { return(LinkRepresentation.Create(OidStrategy, new ValueRelType(PropertyContext.Property, new UriMtHelper(OidStrategy, Req, no)), Flags, new OptionalProperty(JsonPropertyNames.Title, RestUtils.SafeGetTitle(no)))); }
private LinkRepresentation CreateClearLink() => LinkRepresentation.Create(OidStrategy, new MemberRelType(RelValues.Clear, GetHelper()) { Method = RelMethod.Delete }, Flags);
private LinkRepresentation CreateAttachmentLink() { string title = GetAttachmentFileName(PropertyContext); return(LinkRepresentation.Create(OidStrategy, new AttachmentRelType(GetHelper()), Flags, new OptionalProperty(JsonPropertyNames.Title, title))); }
private LinkRepresentation CreateUpLink() { return(LinkRepresentation.Create(OidStrategy, new ObjectRelType(RelValues.Up, objectUri), Flags)); }
private LinkRepresentation CreateCollectionValueLink() { return(LinkRepresentation.Create(OidStrategy, new CollectionValueRelType(GetHelper()), Flags)); }
private LinkRepresentation CreateValueLink(INakedObjectSurface no) { return(LinkRepresentation.Create(new ValueRelType(propertyContext.Property, new UriMtHelper(req, no)), Flags, new OptionalProperty(JsonPropertyNames.Title, RestUtils.SafeGetTitle(no)))); }
private LinkRepresentation CreateCollectionValueLink() { return(LinkRepresentation.Create(new CollectionValueRelType(new UriMtHelper(req, propertyContext)), Flags)); }
private LinkRepresentation CreateElementTypeLink() { return(LinkRepresentation.Create(new DomainTypeRelType(RelValues.ElementType, new UriMtHelper(req, actionContext.ElementSpecification)), Flags)); }
protected LinkRepresentation CreateDetailsLink() => LinkRepresentation.Create(OidStrategy, new MemberRelType(helper), Flags);