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

vivo_home/api/rest/{version}/persons #3873

Open
Tracked by #3711
chenejac opened this issue May 12, 2023 · 0 comments · May be fixed by #3908
Open
Tracked by #3711

vivo_home/api/rest/{version}/persons #3873

chenejac opened this issue May 12, 2023 · 0 comments · May be fixed by #3908

Comments

@chenejac
Copy link
Contributor

chenejac commented May 12, 2023

Describe the solution you'd like
The endpoints for CRUD operations over persons should be defined by using Dynamic API ontology.

  • GET vivo_home/api/rest/{version}/persons
  • GET vivo_home/api/rest/{version}/organizationUnits/{uri}/persons
  • GET vivo_home/api/rest/{version}/persons/{uri}
  • POST vivo_home/api/rest/{version}/persons
  • PUT vivo_home/api/rest/{version}/persons/{uri}
  • DELETE vivo_home/api/rest/{version}/persons/{uri}

The JSON format for description a person should be supported with the following structure:

{
  "uri" : "http://localhost:8080/vivo/individual/n6870",
  "type" : "http://vivoweb.org/ontology/core#FacultyMember",
  "firstName" : "Peters",
  "lastName" : "Jasper",
  "middleName" : "I",
  "positions" : [
      {
         "organizationUnitURI" : "http://localhost:8080/vivo/individual/n4762",
         "organizationUnitName" : ["Harvard University@en_US", "Harvard Univerzitet@sr_Latn_RS"],
         "positionName" : ["Associate professor@en_US", "Vanredni profesor@sr_Latn_RS"],
         "positionType" : "http://vivoweb.org/ontology/core#FacultyPosition",
         "startDate" : 2014-05-27,
         "endDate" :  2020-05-23
       },
        {
         "organizationUnitURI" : "http://localhost:8080/vivo/individual/n4762",
         "organizationUnitName" : ["Harvard University@en_US", "Harvard Univerzitet@sr_Latn_RS"],
         "positionName" : ["Full professor@en_US", "Redovni profesor@sr_Latn_RS" ],
         "positionType" : "http://vivoweb.org/ontology/core#FacultyPosition",
         "startDate" : 2020-05-24
       }
     ]
 # "awards" and "researchAreas" should be added as well
  "internalID" : "n6870", 
   "ORCID" : "0000-0002-9942-5521", 
   "SCOPUSAuthorID" : "35795419600",
   "ResearcherID" : "J-4074-2012" 
}

Additional context

@ivanmrsulja ivanmrsulja linked a pull request Sep 25, 2023 that will close this issue
@chenejac chenejac linked a pull request Sep 26, 2023 that will close this issue
@chenejac chenejac added this to the v1.16 milestone Jan 8, 2024
@chenejac chenejac removed this from the v1.16 milestone Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do
Development

Successfully merging a pull request may close this issue.

1 participant