Add API support for PPFGDataset
Issue Link - #112 (closed)
Add the following API support
API details:
| HTTP | URL | description |
|---|---|---|
| POST | /ddms/v3/ppfgdataset | Create or update the ppfgdataset using osdu schema |
| DELETE | /ddms/v3/ppfgdataset/{ppfgdatasetid} | Delete the PPFGDataset record using ID. The API performs a logical deletion of the given record. No recursive delete for OSDU kinds |
| GET | /ddms/v3/ppfgdataset/{ppfgdatasetid} | Get the ppfgdataset using osdu schema |
| GET | /ddms/v3/ppfgdataset/{ppfgdatasetid}/versions | Get all versions of the ppfgdataset |
| GET | /ddms/v3/ppfgdataset/{ppfgdatasetid}/versions/{version} | Get the given version of the ppfgdataset using OSDU PPFGDataset schema |
Adding Support for Bulk Data APIs
| HTTP | URL | description |
|---|---|---|
| POST | /ddms/v3/ppfgdataset/{record_id}/sessions | Create a new Session on the provided record for writing bulk Data |
| GET | /ddms/v3/ppfgdataset/{record_id}/sessions | List Sessions on given record |
| GET | /ddms/v3/ppfgdataset/{record_id}/sessions/{session_id} | Get session |
| PATCH | /ddms/v3/ppfgdataset/{record_id}/sessions/{session_id} | API to commit/abandon a session |
| POST | /ddms/v3/ppfgdataset/{record_id}/data | Write bulk data, creates new version |
| GET | /ddms/v3/ppfgdataset/{record_id}/data | Read data according to query params |
| POST | /ddms/v3/ppfgdataset/{record_id}/sessions/{session_id}/data | Send a data chunk |
| GET | /ddms/v3/ppfgdataset/{record_id}/sessions/{session_id}/data | Returns data for a specified version |
Edited by Vihar Mamania