projects.py uses the default API version for retrieval, and causes the following error:
{"message":"Formatting error:No Format for this content-type and data-type : (application/json;version=2, cwms.cda.data.dto.project.Project)", "incidentIdentifier":"bf796eca-d668-4e14-923c-db78845580c0", "source":"Parser","details":{}}
After looking at CDA, it's expecting API version 1
https://github.com/USACE/cwms-data-api/blob/develop/cwms-data-api/src/main/java/cwms/cda/api/ProjectController.java#L159
https://github.com/USACE/cwms-data-api/blob/develop/cwms-data-api/src/main/java/cwms/cda/api/ProjectController.java#L183-L187
We can either update CDA to support a new version, or update projects.py to use the correct version.
projects.py uses the default API version for retrieval, and causes the following error:
{"message":"Formatting error:No Format for this content-type and data-type : (application/json;version=2, cwms.cda.data.dto.project.Project)", "incidentIdentifier":"bf796eca-d668-4e14-923c-db78845580c0", "source":"Parser","details":{}}After looking at CDA, it's expecting API version 1
https://github.com/USACE/cwms-data-api/blob/develop/cwms-data-api/src/main/java/cwms/cda/api/ProjectController.java#L159
https://github.com/USACE/cwms-data-api/blob/develop/cwms-data-api/src/main/java/cwms/cda/api/ProjectController.java#L183-L187
We can either update CDA to support a new version, or update projects.py to use the correct version.