BEXIS2 / Core

This is the public code repository of the BEXIS2 data management software. It contains only modules, components, and packages of the core system. Contributed modules and components will be available in separate repositories. For more information on BEXIS2, please visit our website.
https://bexis2.github.io/
17 stars 13 forks source link

New API: splitting names for retrieval of first, middle and last name(s) #1550

Closed sventhiel closed 7 months ago

sventhiel commented 9 months ago

What is your feature request all about?

Sometimes, you get only the full name of a person within BEXIS2. But for further processing, you need to separate the first, middle, and last name(s). Instead of doing that manually or through a self-designed method, it would be good to call an internal API.

How could/should a solution look like?

The system should provide an open API to call so that a full name will be split accordingly.

sventhiel commented 9 months ago

The api is up and running. Because of the potential length of long names, I set the method to be HTTP POST instead of HTTP GET.

image

Please try out this curl example: curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '"Florian Cloud de Bounevialle O%27Malley Armstrong"' 'https://dev.bexis2.uni-jena.de/api/names'

sventhiel commented 9 months ago

New/Open tasks...

geofranzi commented 9 months ago

new name: PersonNameComponents

person: contrast to species names name: singular -> only one name is decomposed components -> result object are the components of one name