ynput / ayon-usd-resolver

Home of AYON USD resolver plugin
Apache License 2.0
5 stars 0 forks source link

Resolver not returning the paths. #3

Closed bhaveshpandey closed 1 year ago

bhaveshpandey commented 1 year ago

I have the mock_server running and but USD asset resolver doesn't return the known uris in the mock_server.

I expect the uri: ayon://foo/bar/bar_010_0010?subset=model?version=v017 to return a path as defined in the mock_server.

However, this is not the case, I get an empty list (shown in screenshot below)

image

Minkiu commented 1 year ago

Hey there,

the payload is expected to contains a list of URIs, since the API can resolve several in one go, so in the example above, the data is missing the list (even tho it's one single URI):

$ curl --data "{\"uris\": [\"ayon://foo/bar/bar_010_0010?subset=model?version=v017\"]}" --header "Content-Type: application/json" http://localhost:8001/api/usd
{"paths": [{"ayon://foo/bar/bar_010_0010?subset=model?version=v017": "/path/to/ayon-usd-resolver/test/assets/bar_010_0010.usd"}], "time": 0}

Let me know if that works on your end.