-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10925 from IQSS/10904-edit-dataverse-collection
Adds new update dataverse general endpoint
- Loading branch information
Showing
11 changed files
with
696 additions
and
266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Adds a new endpoint (`PUT /api/dataverses/<identifier>`) for updating an existing Dataverse collection using a JSON file following the same structure as the one used in the API for the creation. |
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
63 changes: 63 additions & 0 deletions
63
src/main/java/edu/harvard/iq/dataverse/api/dto/DataverseDTO.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,63 @@ | ||
package edu.harvard.iq.dataverse.api.dto; | ||
|
||
import edu.harvard.iq.dataverse.Dataverse; | ||
import edu.harvard.iq.dataverse.DataverseContact; | ||
|
||
import java.util.List; | ||
|
||
public class DataverseDTO { | ||
private String alias; | ||
private String name; | ||
private String description; | ||
private String affiliation; | ||
private List<DataverseContact> dataverseContacts; | ||
private Dataverse.DataverseType dataverseType; | ||
|
||
public String getAlias() { | ||
return alias; | ||
} | ||
|
||
public void setAlias(String alias) { | ||
this.alias = alias; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getAffiliation() { | ||
return affiliation; | ||
} | ||
|
||
public void setAffiliation(String affiliation) { | ||
this.affiliation = affiliation; | ||
} | ||
|
||
public List<DataverseContact> getDataverseContacts() { | ||
return dataverseContacts; | ||
} | ||
|
||
public void setDataverseContacts(List<DataverseContact> dataverseContacts) { | ||
this.dataverseContacts = dataverseContacts; | ||
} | ||
|
||
public Dataverse.DataverseType getDataverseType() { | ||
return dataverseType; | ||
} | ||
|
||
public void setDataverseType(Dataverse.DataverseType dataverseType) { | ||
this.dataverseType = dataverseType; | ||
} | ||
} |
Oops, something went wrong.