Comment 4 for bug 1781092

Revision history for this message
Prachi Yadav (pryadav) wrote : Re: Change in REST API payload

Hi,

Thanks Ignatious, I was in the process of updating the payloads and this documentation will be helpful.

Thanks,
Prachi

From: Ignatious Johnson <email address hidden>
Date: Thursday, July 12, 2018 at 4:16 PM
To: Soumil Kulkarni <email address hidden>, Leela Bharath Kumar Kassetti <email address hidden>, Prachi Yadav <email address hidden>, Prasanna Mucharikar <email address hidden>, Ram Yadav <email address hidden>
Cc: Ramprakash Ram Mohan <email address hidden>
Subject: Change in REST API payload

Hi Team,

Go-api backend is changed as per the attached spec. the changes are available from build #139(has other bugs).build #141 will be usable.
So parent information is mandatory in the REST payload.

Backend infers parent information from parent_type/parent_uuid or parent_type/fq_name,
So all the resources should have either parent_type/parent_uuid or parent_type/fq_name in the /sync api payload.

Please modify your tools to send this information.

Parent of the resources used,
contrail-cluster -> global-system-config (earlier it was project) https://github.com/Juniper/contrail/blob/master/schemas/fabric/contrail_cluster.yml#L9
node -> global-system-config (earlier it was contrail-cluster) https://github.com/Juniper/contrail/blob/master/schemas/fabric/node.yml#L6

Let me know if you have queries,

Thanks,
Ignatious