blue-core-lod / bluecore_api

API for Blue Core Platform
0 stars 0 forks source link

Validation for POSTing data #20

Open sfolsom opened 1 month ago

sfolsom commented 1 month ago

Steps for POSTing a new resource:

  1. Validation, return SHACL report, e.g. missing title
  2. Deduplication test, return with existing URI if applicable
  3. Store data with new URIs
  4. POST returns reporting package, e.g. errors, new URIs, system down
sfolsom commented 1 month ago

Steps for PUTing a resource:

  1. URIs stay the same
  2. PUT changes
  3. Validation, return SHACL report, e.g. missing title
  4. Deduplication test, return with existing URI if applicable
  5. If applicable, no really, I want to make these changes
  6. Store data with new URIs
  7. Returns reporting package, e.g. errors, the URI/s, system down

(If we decide to implement deprecation the way id.loc.gov does, it will be a PUT with new assertions)

sfolsom commented 1 month ago

Steps for DELETEing a resource:

(TBD, based on deletion policy)