CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs

Import as its Own Endpoint

Open
#129 0 comments 0 reactions 0 assignees View on GitHub
enhancement OSS
Dominant language
JavaScript
Stars
3
Forks
6
Avg merge
1h 25m
Merged PRs (30d)
3

Description

There may be some small advantage to offering an `/import` endpoint when someone explicitly intends to use it instead of having to `/update`. This would require it's own RESTful checks and responses.

An `/import` is a perfect mix of `/create` and `/update`. It "updates an item in the graph" by "creating a new root" in RERUM which references the origin URI through __rerum.history.previous.

I think this endpoint would be a POST request which responds 201 on success. Currently, it is behind PUT `/update` and responds 200 upon success. Something to think about if we decide to do this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.