Hi Datahub team, what's the status of [no code mod...
# getting-started
a
Hi Datahub team, what's the status of [no code modeling](https://datahubproject.io/docs/advanced/no-code-modeling). I looked at the code, the sample
service
entity is there. after I build & run, I tried the sample post request
Copy code
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"
                     ]
                  }
               }
            ]
         }
      }
   }
}'
m
@acceptable-architect-70237 we've removed that unused pdl now. Note that no-code means you will need to curl generic endpoints now (with specific typed objects)
Copy code
curl '<http://localhost:8080/entities/urn%3Ali%3Aservice%3Amydemoservice>' -H 'X-RestLi-Protocol-Version:2.0.0'
something like ^^
for READs
a
what about the creation? Is anything wrong with my
post
request.
m
creation looks good at first glance. @big-carpet-38439 to keep me honest here.
b
in general it looks good
a
but I did see the error
Copy code
{"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\",
b
Yes because the primary model - ServiceSnapshot.pdl, is not there.
a
never mind. I think I know the reason. the service snapshot is not in there
b
That's because these models were not supposed to be included
If you add it, things should work
a
yes. let me add them and try it around. thanks