@Path(value="/datasource")
public interface DatasourceResource
Modifier and Type | Method and Description |
---|---|
DatasourceEntryResponse |
addEntry(String id,
DatasourceEntryModel item)
Create a datasource entry in the datasource
|
ConstructList |
constructs(String id,
SortParameterBean sorting,
FilterParameterBean filter,
PagingParameterBean paging)
Get the constructs using the datasource.
The result can be filtered by id
globalId
keyword
name
description
category
and sorted by
id
globalId
keyword
name
description
category
|
DatasourceLoadResponse |
create(Datasource datasource)
Create new datasource
|
javax.ws.rs.core.Response |
delete(String id)
Delete a datasource
|
javax.ws.rs.core.Response |
deleteEntry(String id,
String entryId)
Delete a datasource entry
|
DatasourceLoadResponse |
get(String id)
Get existing datasource
|
DatasourceEntryResponse |
getEntry(String id,
String entryId)
Get existing datasource entry
|
ImplementationHashResponse |
implementationHash(String id)
Get the implementation hash for a datasource
|
PagedDatasourceListResponse |
list(SortParameterBean sorting,
FilterParameterBean filter,
PagingParameterBean paging)
List datasources.
The result can be filtered by id
globalId
name
type
and sorted by
id
globalId
name
type
|
DatasourceEntryListResponse |
listEntries(String id)
List entries of a datasource
|
DatasourceLoadResponse |
update(String id,
Datasource datasource)
Update a datasource
|
DatasourceEntryResponse |
updateEntry(String id,
String entryId,
DatasourceEntryModel item)
Update a datasource entry
|
DatasourceEntryListResponse |
updateEntryList(String id,
List<DatasourceEntryModel> items)
Update the entries in the given order
|
@GET PagedDatasourceListResponse list(@BeanParam SortParameterBean sorting, @BeanParam FilterParameterBean filter, @BeanParam PagingParameterBean paging) throws Exception
id
globalId
name
type
id
globalId
name
type
sorting
- sort parametersfilter
- filter parameterpaging
- paging parametersException
@POST DatasourceLoadResponse create(Datasource datasource) throws Exception
datasource
- datasourceException
@GET @Path(value="/{id}") DatasourceLoadResponse get(@PathParam(value="id") String id) throws Exception
id
- datasource IDException
@GET @Path(value="/{id}/hash") ImplementationHashResponse implementationHash(@PathParam(value="id") String id) throws Exception
id
- datasource IDException
@PUT @Path(value="/{id}") DatasourceLoadResponse update(@PathParam(value="id") String id, Datasource datasource) throws Exception
id
- datasource IDdatasource
- updated datasource dataException
@DELETE @Path(value="/{id}") javax.ws.rs.core.Response delete(@PathParam(value="id") String id) throws Exception
id
- datasource IDException
@GET @Path(value="/{id}/constructs") ConstructList constructs(@PathParam(value="id") String id, @BeanParam SortParameterBean sorting, @BeanParam FilterParameterBean filter, @BeanParam PagingParameterBean paging) throws Exception
id
globalId
keyword
name
description
category
id
globalId
keyword
name
description
category
id
- datasource idsorting
- sort parametersfilter
- filter parameterpaging
- paging parametersException
@GET @Path(value="/{id}/entries") DatasourceEntryListResponse listEntries(@PathParam(value="id") String id) throws Exception
id
- datasource idException
@POST @Path(value="/{id}/entries") DatasourceEntryResponse addEntry(@PathParam(value="id") String id, DatasourceEntryModel item) throws Exception
id
- datasource iditem
- datasource entryException
@GET @Path(value="/{id}/entries/{entryId}") DatasourceEntryResponse getEntry(@PathParam(value="id") String id, @PathParam(value="entryId") String entryId) throws Exception
id
- datasource identryId
- datasource entry idException
@PUT @Path(value="/{id}/entries/{entryId}") DatasourceEntryResponse updateEntry(@PathParam(value="id") String id, @PathParam(value="entryId") String entryId, DatasourceEntryModel item) throws Exception
id
- datasource identryId
- datasource entry iditem
- updated entryException
@DELETE @Path(value="/{id}/entries/{entryId}") javax.ws.rs.core.Response deleteEntry(@PathParam(value="id") String id, @PathParam(value="entryId") String entryId) throws Exception
id
- datasource identryId
- datasource entry idException
@PUT @Path(value="/{id}/entries") DatasourceEntryListResponse updateEntryList(@PathParam(value="id") String id, List<DatasourceEntryModel> items) throws Exception
id
- datasource iditems
- list of entriesException
Copyright © 2024 Gentics Software. All rights reserved.