@Utsav Mori - Thanks for the question and using MS Q&A platform.
Based on the provided document, it seems that the REST API for Azure Purview does not provide the schema and curation status information in the JSON response. Therefore, it is not possible to generate the desired JSON structure using the Entity API or Catalog API.
However, there might be other ways to obtain the required information. One possible solution could be to use the Purview SDK for Python or .NET to fetch the schema and curation status information and then generate the desired JSON structure. You can find more information about the Purview SDK in the following links:
- Purview SDK for Python: https://docs.microsoft.com/en-us/python/api/overview/azure/purview?view=purview-python-latest
- Purview SDK for .NET: https://docs.microsoft.com/en-us/dotnet/api/overview/azure/purview?view=azure-dotnet
Alternatively, you can try to use the Purview REST API to fetch the required information separately and then merge it with the JSON response obtained from the Entity API or Catalog API. For example, you can use the following REST API to fetch the curation status information for a specific asset:
GET https://<account-name>.catalog.purview.azure.com/api/atlas/v2/entity/guid/<asset-guid>/classification
You can find more information about the Purview REST API in the following link:
- Purview REST API: https://docs.microsoft.com/en-us/rest/api/purview/
Hope this helps. Do let us know if you any further queries.