io.elsci.signals.mock.assets.SignalsMaterialsApi Maven / Gradle / Ivy
The newest version!
package io.elsci.signals.mock.assets;
import io.elsci.signals.sdk.assets.AssetType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import static io.elsci.signals.mock.SignalsCommonUtils.SIGNALS_API_ROOT;
/**
* For some reason the API in Signals is called Materials, not Assets.
*/
@RestController
@RequestMapping(SIGNALS_API_ROOT + "/materials")
class SignalsMaterialsApi {
@GetMapping("/libraries") //Fetch all active material libraries.
List fetchAllActiveMaterialLibraries() {
return AssetType.all();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy