Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest API - ModelService - provide model definition #486

Closed
rsoika opened this Issue Mar 15, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@rsoika
Copy link
Member

rsoika commented Mar 15, 2019

provide a new method returning the model definition by version:

/**
 * Returns the model definition containing general model information (e.g.
 * $ModelVersion).
 *  
 */
@GET
@Path("/{version}/definition")
public XMLDataCollection getDefiniton(@PathParam("version") String version,
		@QueryParam("items") String items) {
	ItemCollection definition = null;
	try {
		definition = modelService.getModel(version).getDefinition();
		return XMLDataCollectionAdapter.getDataCollection(definition, getItemList(items));

	} catch (Exception e) {
		e.printStackTrace();
	}
	return new XMLDataCollection();
}

@rsoika rsoika added this to the 4.5.4 milestone Mar 15, 2019

rsoika added a commit that referenced this issue Mar 15, 2019

@rsoika rsoika added the testing label Mar 15, 2019

@rsoika rsoika closed this Apr 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.