Autodesk-Forge / forge-api-dotnet-client

Forge .Net SDK: Provides .Net SDK to help you easily integrate Forge REST APIs into the application
https://www.nuget.org/packages/Autodesk.Forge/
Apache License 2.0
94 stars 70 forks source link

MD API regionalised only for BIM360, needs to support OSS too #81

Closed cyrillef closed 3 years ago

cyrillef commented 3 years ago

I have an EMEA bucket and EMEA translation.

If I run curl -X GET https://developer.api.autodesk.com/modelderivative/v2/regions/eu/designdata/$urn/manifest -H "Authorization: Bearer $bearer"

I got a response {"urn":"dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Y3lyaWxsZS0yMDIwMTAyNi1lbWVhL1NwZWNPZmZpY2UucnZ0","derivatives" ...

If I run curl -X GET https://developer.api.autodesk.com/modelderivative/v2/designdata/$urn/manifest -H "Authorization: Bearer $bearer" I got the same response, but some people got a 404 error which accordingly to the documentation is correct

I also tried to delete the manifest, and retranslate, same behaviour.

In any case, the SDK needs to set region appropriately for OSS and not only BIM360.

lyague commented 3 years ago

Dear @cyrillef, it seems translating jobs does still use "/modelderivative/v2/designdata/job" even if emeaRegion is set.

(see https://github.com/Autodesk-Forge/forge-api-dotnet-client/issues/84)

Thx you