-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like don't display some fields #20
Comments
Hi guys I succeeded hide my id field, I used the annotation @JsonIgnore. Can somebody help me? |
@dilipkrish Could help me? |
@katiaSouza have you tried adding the @JsonIgnore annotation to just the setter. That should work |
@dilipkrish yes, and when I make a request http Get the field not return. |
Could you share your annotated class (or something that is close to it) as an example please? Better still could you fork the example project and add in your specific example that show cases your problem |
Follows below: Model: Classe controller: @controller @ApiOperation(value="Create customer", notes="Return token parameter and user identification", httpMethod="POST", multiValueResponse=false)
@ApiOperation(value="Find customer", notes="Return details of the customer", httpMethod="GET", responseClass="Customer",multiValueResponse=false)
} |
@katiaSouza let me take a look at this and i'll let you know |
My new problem is: I would like don't display some fields in the object, example:
My Json request is this:
{
"id": "long",
"oneClick": "boolean",
"ddd": "string",
"email": "string",
"name": "string",
"telephone": "string",
"password": "string"
}
but I would want it is this:
{
"oneClick": "boolean",
"ddd": "string",
"email": "string",
"name": "string",
"telephone": "string",
"password": "string"
}
I call a POST action and id field is populated by my application.
Can you help me?
The text was updated successfully, but these errors were encountered: