Class GlossaryResource
java.lang.Object
io.goobi.viewer.api.rest.v1.localization.GlossaryResource
GlossaryResource class.
- Author:
- Florian Alpers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetVocabulary
(String filename) getVocabulary.listVocabularies.
-
Constructor Details
-
GlossaryResource
public GlossaryResource()
-
-
Method Details
-
listVocabularies
@GET @Path("/vocabularies") @Produces("application/json") public List<Glossary> listVocabularies() throws IOExceptionlistVocabularies.
- Returns:
- a
List
object. - Throws:
IOException
- if any.
-
getVocabulary
@GET @Path("/vocabularies/{filename}") @Produces("application/json") public String getVocabulary(@PathParam("filename") String filename) throws IOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException getVocabulary.
- Parameters:
filename
- aString
object.- Returns:
- a
String
object. - Throws:
IOException
- if any.de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
- if any.
-