Hello, when onboarding new entities, do I have to ...
# getting-started
i
Hello, when onboarding new entities, do I have to manually write the restspec.json file for the new entity in the gms-api module?
b
Hi Pedro. That should be autogenerated on build if you've defined your resource file (idl and snapshots)
i
I've defined the pegasus files in the resource folder. Do I need to do more?
To avoid confusion, @big-carpet-38439 you're saying that a
com.linkedin.stream.streams.restspec.json
should have been created automatically created from the new pegasus files (
Stream
&
StreamKey
)?
I see data templates are automatically generated, the same is not true for the generatedRest classes
a
You would also need to write the resource (or rest.li end point) .. example .. idl and snapshots are generated from these resources
Jinx^ Yes you'll need to implement the endpoint itself
Restli will then autogenerate the specs from this class^
i
Thank you both! I think this part is missing from

https://raw.githubusercontent.com/linkedin/datahub/master/docs/imgs/onboard-a-new-entity.png

or the order of steps is different in step 4
b
Agree -- looks like 4.5 hints at it but it should be much more explicit
i
Please bear with me as a I go through this process. Your help has been invaluable!
b
Your feedback continues to be invaluable 🙂