Closed joeyhorst closed 2 years ago
@joeyhorst I will test following request
[ ] GET Request to retrieve single asset. - Need to update Response in API Docs "asset_gav" and "owned_entire_period" are missing in Response Body besides getting "asset_size" in main data as well (before annual data)
[x] Patch request to update single asset - Need to update in API Docs
[x] Delete request to delete an asset - Not getting matched with API Docs , currently not getting annual data in response
[x] Get Request to retrieve an asset in batch
[ ] 🔴 Delete request to delete an asset in batch ("delete") - It seems this is not working fine with given example in api docs.
"delete": [ { "gresb_asset_id": 833336 }, { "gresb_asset_id": 833337 } ] }
However , these are the assets which I created new.
[x] GET Request to retrieve all the entites - No modification require in API Docs.
[x] GET Request to retrieve with specific entity id - No modification require in API Docs.
@naincygoyal believe we need to cover all code blobs on the right hand side of the api-docs - such as http://gresb.github.io/api-docs/#users, etc. This also includes simple GET requests.
Yes @joeyhorst even Certification and Energy need to add ...I will first finish asset then will pick user, energy , certification etc and will update in the same list.
@joeyhorst https://github.com/GRESB/api-docs/issues/88#issuecomment-1049779332 in this comment I mentioned PATCH and DELETE in batch is not working , could you please once and confirm why its not working ?
@naincygoyal The batch operation contains objects like "always_update" and "delete" to perform PATCH and DELETE methods.
As such you will need to do this within the batch operation and not as a method.
The HTTPS method to use is POST.
closing this as it is already in master but still needs to be published
as the title mentioned, we should run though the examples and make sure they are all valid