Oracle WebCenter Sites (MOSC)

MOSC Banner

Use REST API to lookup asset without site

edited Feb 5, 2013 3:04PM in Oracle WebCenter Sites (MOSC) 1 commentAnswered
 Hello,
     We are trying to implement the rest API for a separate application, and have noticed that there doesn't seem to be any way to retrieve assets solely by ID. It seems that you are always required to specify which site the asset is part of.

     For instance, working with the Oracle libraries, you can call something like: 

     AssetDataManager mgr = (AssetDataManager)SessionFactory.getSession().getManager(AssetDataManager.class.getName());
     return mgr.read(assetIds);

     To return asset data.

     However, with the rest API, it seems that there is only the following endpoint to find stuff by ID:

     /sites/{sitename}/types/{assettype}/assets/{id}

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center