-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #4973 Upgrade viewer specific APIs to v5 #5362
Open
FJThiel
wants to merge
95
commits into
staging
Choose a base branch
from
ISSUE_4973
base: staging
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ssociated tests
… actually a noFile revision.
…m already existing in the v5 typeCheck file. Replaced where used.
…aces to serviceHelper
…alisation since binFacesString is inaccessible and only called by it.
…t was discovered while writing unit tests
…des since they are never used.
…query parameter
…uery parameters
…its legacy character.
…ting is currently unavailable
…d modelProperties
The routes are now renamed and revision information has been put into the query string. |
I have updated the description of the PR with the changed routes and the new one added (bundleMappings). |
… and federation info to the unity viewer
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Viewer PR: Link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #4973
Description
Moves over v4 APIs that are used by the viewer to the v5 style.
Changed APIs listed below:
(Note: routes below updated after receiving feedback)
Get Model Properties:
Old API:
/<teamspace>/<modelID>/revision/<revision>/modelProperties.json
New API (Container):
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/properties
New API (Federation):
/v5/teamspaces/<teamspace>/projects/<projectID>/federations/<containerID>/assets/properties
Get Repo Assets:
Old API:
/<teamspace>/<modelID>/revision/<revision>/repoAssets.json
New API (Container):
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/repobundles
New API (Federation):
/v5/teamspaces/<teamspace>/projects/<projectID>/federations/<containerID>/assets/repobundles
Get Metadata (assets meta)
Old API:
/<teamspace>/<modelID>/revision/<revision>/assetsMeta
New API (Container)
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/legacyBundleMetadata
New API (Federation):
/v5/teamspaces/<teamspace>/projects/<projectID>/federations/<containerID>/assets/legacyBundleMetadata
Get Mesh
Old API:
/<teamspace>/<modelID>/meshes/<meshID>
New API (Container):
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/meshes/:meshId
Get Unity Asset Bundle
Old API:
/<teamspace>/<modelID>/<bundleID>.unity3d
New API (Container):
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/unitybundles/<bundleID>
Get Repo Asset Bundle:
Old API:
/<teamspace>/<modelID>/<bundleID>.repobundle
New API (Container):
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/repobundles/<bundleID>
Get Asset Maps for Container
Old API:
/<teamspace>/<containerID>/revision/<revisionID>/supermeshes.json.mpc
New API (Container):
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/supermeshes
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/supermeshes
Get Asset Maps for Federation
Old API:
/<teamspace>/<modelID>/revision/master/head/supermeshes.json.mpc
New API (Federation):
/v5/teamspaces/<teamspace>/projects/<projectID>/federations/<federationID>//assets/supermeshes
Get Texture:
Old API:
/<teamspace>/<containerID>/<textureID>.texture
New API (Container):
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/textures/<textureID>
Get bundle mapping:
Old API:
/<teamspace>/<modelID>/<bundleID>.json.mpc
New API (Container):
/v5/teamspaces/<teamspace>/projects/<projectID>/containers/<containerID>/assets/bundleMappings/<bundleID>
Test cases