Support > Wagby Developer Network(R7) > REST API usage guide > Detailed data acquisition
ja | en

There are two ways, URL specification method and parameter specification method.

Specify the primary key in the URL and acquire detailed data.

@RequestMapping(value="/rest/[modelid]/entry/{pkey}", method=GET)

URL Example

http://localhost:8921/wagby/rest/customer/entry/1000

response

STATUS=200 OK
Here is an example of the content of the return.

{
 "entityp": {
   "customerid_": {
     "content_":"1000",
     "formatted_": null,
     "errorcode_":""
   },
   "name_": {
     "content_":"Suzuki",
     "formatted_": null,
     "errorcode_":""
   },
   "email_": [
     {
       "id_": 1,
       "priority_": null,
       "content_": null,
       "errorcode_":""
     }
   ]
 },
 "errors": {
   "jfcinfo": [],
   "jfcwarn": [],
   "jfcdebug": [],
   "jfcerror": []
 },
 "status":"showCustomer.input",
 "pkey": null,
 "entity": {
   "customerid_": 1000,
   "name_": "Suzuki",
   "email_": []
 }
}

Specify the primary key for the parameter.

@RequestMapping(value="/rest/[modelid]/entry", method=GET)

URL Example

http://localhost:8921/wagby/rest/customer/entry?customerid=1000

response

It is similar to "$ {content_ 0 _ name}".