acceptable-architect-70237
06/25/2021, 5:12 PMservice
entity is there. after I build & run, I tried the sample post request
url '<http://localhost:8080/entities?action=ingest>' -X POST -H 'X-RestLi-Protocol-Version:2.0.0' --data '{
"entity":{
"value":{
"com.linkedin.metadata.snapshot.ServiceSnapshot":{
"urn": "urn:li:service:mydemoservice",
"aspects":[
{
"com.linkedin.service.ServiceInfo":{
"description":"My demo service",
"owner": "urn:li:corpuser:user1"
}
},
{
"com.linkedin.common.BrowsePaths":{
"paths":[
"/my/custom/browse/path1",
"/my/custom/browse/path2"
]
}
}
]
}
}
}
}'
mammoth-bear-12532
mammoth-bear-12532
curl '<http://localhost:8080/entities/urn%3Ali%3Aservice%3Amydemoservice>' -H 'X-RestLi-Protocol-Version:2.0.0'
something like ^^mammoth-bear-12532
acceptable-architect-70237
06/25/2021, 6:11 PMpost
request.mammoth-bear-12532
big-carpet-38439
06/25/2021, 6:17 PMacceptable-architect-70237
06/25/2021, 6:35 PM{"exceptionClass":"com.linkedin.restli.server.RestLiServiceException","stackTrace":"com.linkedin.restli.server.RestLiServiceException [HTTP Status:400]: Parameters of method 'ingest' failed validation with error 'ERROR :: /entity/value :: \"com.linkedin.metadata.snapshot.ServiceSnapshot\" is not a member type of union [ { \"type\" : \"record\", \"name\" : \"ChartSnapshot\", \"namespace\" : \"com.linkedin.metadata.snapshot\",
big-carpet-38439
06/25/2021, 6:37 PMacceptable-architect-70237
06/25/2021, 6:37 PMbig-carpet-38439
06/25/2021, 6:37 PMbig-carpet-38439
06/25/2021, 6:38 PMacceptable-architect-70237
06/25/2021, 6:38 PM