[ 
https://issues.apache.org/jira/browse/ISIS-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andi Huber closed ISIS-1975.
----------------------------
    Resolution: Fixed

The content negotiation parameter 'suppress' does now allow more control on 
which '$$..' properties one wants to suppress. New options are
{code:java}
public static enum SuppressionType {
    /** suppress '$$RO', RO Spec representation*/
    RO,
    
    /** suppress '$$href', hyperlink to the representation*/
    HREF,
    
    /** suppress '$$instanceId', instance id of the domain object*/
    ID,
    
    /** suppress '$$title', title of the domain object*/
    TITLE,
    
    /** suppress all '$$...' entries*/
    ALL
}{code}
where these are case-insensitive and may be combined to a comma-separated set.

Eg. to suppress $$title and $$href one could simply request
{noformat}
application/json;profile=urn:org.apache.isis/v1;suppress=title,href
{noformat}

We do not break the previous behavior with 'suppress=true' being equivalent to 
'suppress=ro'


> REST: discrepancy between schema export and actual response content
> -------------------------------------------------------------------
>
>                 Key: ISIS-1975
>                 URL: https://issues.apache.org/jira/browse/ISIS-1975
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core: Viewer: RestfulObjects
>            Reporter: Andi Huber
>            Assignee: Andi Huber
>            Priority: Minor
>             Fix For: 2.0.0-M2
>
>
> We do have some property names $$... in our REST responses, which are not 
> part of the swagger schema (which is available for download from the UI when 
> in prototyping mode).
> This was reported on the user mailing list [1] ...
> [1] 
> [https://lists.apache.org/thread.html/ecbf2d3c25527c55716ea02c0adae2d815aa1546244c6ee15131b26c@%3Cusers.isis.apache.org%3E]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to