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

Feature/rsmd-guidelines #4014

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package edu.cornell.mannlib.vitro.webapp.controller.api.dto;

public class AuthorDTO {

public String name;

public String type;

public String identifier;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package edu.cornell.mannlib.vitro.webapp.controller.api.dto;

public class FunderRequestDTO {

public String name;

public String type;

public String grantName;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package edu.cornell.mannlib.vitro.webapp.controller.api.dto;

public class FunderResponseDTO {

public String name;

public String type;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package edu.cornell.mannlib.vitro.webapp.controller.api.dto;

import java.util.ArrayList;
import java.util.List;

public class InformationContentEntityResponseDTO {

public String internalIdentifier;

public String name;

public String datePublished;

public List<AuthorDTO> authors = new ArrayList<>();

public List<String> fundings = new ArrayList<>();

public List<FunderResponseDTO> funders = new ArrayList<>();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package edu.cornell.mannlib.vitro.webapp.controller.api.dto;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SoftwareRequestDTO {

public String internalIdentifier;

@JsonProperty(required = true)
public String name;

public String datePublished;

public List<AuthorDTO> authors = new ArrayList<>();

public List<String> fundings = new ArrayList<>();

public List<FunderRequestDTO> funders = new ArrayList<>();

public String version;

public String description;

public List<String> identifiers = new ArrayList<>();

public String keywords;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package edu.cornell.mannlib.vitro.webapp.controller.api.dto;

import java.util.ArrayList;
import java.util.List;

public class SoftwareResponseDTO extends InformationContentEntityResponseDTO {

public String version;

public String description;

public List<String> identifiers = new ArrayList<>();

public String sameAs;

public String url;

public String keywords;

public String isPartOf;

public String hasPart;
}
Loading
Loading