forked from vivo-project/Vitro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: William Welling <8352733+wwelling@users.noreply.githu…
…b.com> Co-authored-by: Kevin Day <kday@library.tamu.edu> Co-authored-by: Dragan Ivanovic <chenejac@uns.ac.rs> Co-authored-by: chenejac <chenejac@gmail.com> correct context path vs servlet path Refactor Integration Tests to use the full word Test. This allows for the tests to be properly picked up and executed. Merge pull request vivo-project#281 from kaladay/dynapi-rpc_endpoint_it_to_itest [3678] Refactor Integration Tests to use the full word Test. Merge branch 'sprint-dynapi-2022-feb-staging' of github.com:vivo-project/Vitro into servlet-path Merge pull request vivo-project#280 from wwelling/servlet-path Correct context path vs servlet path Update of the ontology. Introducing structured parameter types (object and array) rest endpoint corrections and integration tests Updating binding of the ontology to Java classes and n3 test examples.To be in accordance with changes in the ontology. Adding files for primitive types and APIInformation java bean. Adding new line at the end of file and retrieving history of deleted files by using git mv Adding new line at the end of file Merge pull request vivo-project#283 from chenejac/3653_definition_of_the_ontology 3653 definition of the ontology Merge branch 'sprint-dynapi-2022-feb-staging' of github.com:vivo-project/Vitro into 3667-rest-it
- Loading branch information
Showing
68 changed files
with
1,946 additions
and
1,594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
api/src/main/java/edu/cornell/mannlib/vitro/webapp/dynapi/ResourceAPIPool.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package edu.cornell.mannlib.vitro.webapp.dynapi; | ||
|
||
import edu.cornell.mannlib.vitro.webapp.dynapi.components.ResourceAPI; | ||
import edu.cornell.mannlib.vitro.webapp.dynapi.components.ResourceAPIKey; | ||
import edu.cornell.mannlib.vitro.webapp.dynapi.components.DefaultResourceAPI; | ||
|
||
public class ResourceAPIPool extends VersionableAbstractPool<ResourceAPIKey, ResourceAPI, ResourceAPIPool> { | ||
|
||
private static ResourceAPIPool INSTANCE = new ResourceAPIPool(); | ||
|
||
public static ResourceAPIPool getInstance() { | ||
return INSTANCE; | ||
} | ||
|
||
@Override | ||
public ResourceAPIPool getPool() { | ||
return getInstance(); | ||
} | ||
|
||
@Override | ||
public ResourceAPI getDefault() { | ||
return new DefaultResourceAPI(); | ||
} | ||
|
||
@Override | ||
public Class<ResourceAPI> getType() { | ||
return ResourceAPI.class; | ||
} | ||
} |
30 changes: 0 additions & 30 deletions
30
api/src/main/java/edu/cornell/mannlib/vitro/webapp/dynapi/ResourcePool.java
This file was deleted.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
api/src/main/java/edu/cornell/mannlib/vitro/webapp/dynapi/components/APIInformation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package edu.cornell.mannlib.vitro.webapp.dynapi.components; | ||
|
||
import edu.cornell.mannlib.vitro.webapp.dynapi.OperationData; | ||
import edu.cornell.mannlib.vitro.webapp.dynapi.components.validators.Validator; | ||
import edu.cornell.mannlib.vitro.webapp.utils.configuration.Property; | ||
import org.apache.jena.datatypes.RDFDatatype; | ||
|
||
import javax.servlet.http.HttpServletResponse; | ||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.Set; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
import java.util.stream.Collectors; | ||
|
||
public class APIInformation { | ||
|
||
private String title; | ||
private String description; | ||
private String version; | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
@Property(uri = "https://vivoweb.org/ontology/vitro-dynamic-api#title", minOccurs = 1, maxOccurs = 1) | ||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
@Property(uri = "https://vivoweb.org/ontology/vitro-dynamic-api#description", maxOccurs = 1) | ||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
@Property(uri = "https://vivoweb.org/ontology/vitro-dynamic-api#version", minOccurs = 1, maxOccurs = 1) | ||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.