Open-MBEE / mms-alfresco

Model Management System
Apache License 2.0
30 stars 24 forks source link

`overwrite=true` query param on POST requests to `/projects/{project_id}/refs/{ref_id}/elements` #347

Open baswelsh opened 3 years ago

baswelsh commented 3 years ago

I don't believe the query param overwrite=true on POST requests to /projects/{project_id}/refs/{ref_id}/elements is supported by the mms python client. The API docs (https://mms.openmbee.org/alfresco/mms/index.html#api-Element-postElements) also don't include it as a parameter. The swagger generated python client currently rejects the parameter – likely because it is not included in the OpenAPI spec.

Are there plans to update the OpenAPI spec to include this parameter? It has been recommended that we include this parameter in POST requests but are currently unable to via the mms_python_client.

python 3.7 mms_python_client 4.0.0a3 MMS 3.3.0 (I think) - Service URL: https://mms.openmbee.org/alfresco/service

HuiJun commented 3 years ago

Hello, thanks for the bug report. We are working to update the OpenAPI spec for the 3.4.3 release, which should be released this week.

baswelsh commented 3 years ago

Perfect. Thanks, @HuiJun!