...
- Before returning the response , we will iterate over courses objects.
- Get batchId and call API to get batch Details.
- Create and populate batch data Map with the standard supported batch data fields.
- Standard bath data fields can be cached in DataCacheHandler . DataCacheHandler will be initialized from a database query from cassandra.
- Using cassandra will give us freedom to add or remove fields from standard metadata batchdata fields.
- Append it to the coursesObject.
- Do it for all courses Object.
- Return the response.
...
Accepting attributes in request parameters and also providing standard batch data. If request parameter contains any other attribute different from standard meta batch data , the batch data map will also have the requested attributes with standard batch data.
...
- Before returning the response , we will iterate over courses objects.
- Get batchId and call API to get batch Details.
- Create and populate batchData Map with the standard supported metadata batchdata fields.
- Standard metadata batchdata fields can be cached in DataCacheHandler . DataCacheHandler will be initialized from a database query from cassandra.
- Using cassandra will give us freedom to add or remove fields from standard metadata batchdata fields.
- Add the other requested data in the batchData map , if some unsupported field is in request neglect it or put some error message.(NOT_SUPPORTED).
- Append it to the coursesObject.
- Do it for all courses Object.
- Return the response.
...