Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

possible change the response data format ? #2469

Open
Assignees
@icoco

Description

eg:

curl http://localhost:8080/people
{
 "_embedded" : {
 "people" : []
 },
 "_links" : {
 "self" : {
 "href" : "http://localhost:8080/people{?page,size,sort}",
 "templated" : true
 },
 "search" : {
 "href" : "http://localhost:8080/people/search"
 }
 },
 "page" : {
 "size" : 20,
 "totalElements" : 0,
 "totalPages" : 0,
 "number" : 0
 }
}

change to

{
 "data" : {
 "people" : []
 },
 
 "page" : {
 "size" : 20,
 "totalElements" : 0,
 "totalPages" : 0,
 "number" : 0
 }
}

possible customize the response?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /