@Path(value="/data-providers") @Component @Scope(value="request") public class DataProvidersResource extends Object
| Constructor and Description |
|---|
DataProvidersResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createProvider(javax.ws.rs.core.UriInfo uriInfo,
eu.europeana.cloud.common.model.DataProviderProperties dataProviderProperties,
String providerId)
Creates a new data provider.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataProvider> |
getProviders(String startFrom)
Lists all providers stored in eCloud.
|
@GET
@Produces(value={"application/xml","application/json"})
public eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataProvider> getProviders(@QueryParam(value="from")
String startFrom)
startFrom - data provider identifier from which returned slice of results will be generated.
If not provided then result list will contain data providers from the first one.@POST
@Produces(value={"application/xml","application/json"})
@Consumes(value={"application/xml","application/json"})
@PreAuthorize(value="isAuthenticated()")
public javax.ws.rs.core.Response createProvider(@Context
javax.ws.rs.core.UriInfo uriInfo,
eu.europeana.cloud.common.model.DataProviderProperties dataProviderProperties,
@QueryParam(value="providerId")
String providerId)
throws eu.europeana.cloud.service.uis.exception.ProviderAlreadyExistsException
dataProviderProperties - REQUIRED data provider properties.providerId - REQUIRED data provider identifier for newly created providereu.europeana.cloud.service.uis.exception.ProviderAlreadyExistsException - provider already exists.Copyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.