CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs
Import as its Own Endpoint
- Lingua principale
- JavaScript
- Stelle
- 3
- Fork
- 6
- Merge medio
- 2g 47m
- PR unite (30g)
- 4
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia confrontando il comportamento esistente degli endpoint /create e PUT /update. Determina i controlli e le risposte REST necessari per un POST /import che crei una nuova radice che faccia riferimento all’URI di origine tramite __rerum.history.previous. Il lavoro è completo quando il comportamento dell’endpoint, inclusa una risposta 201 in caso di successo, è definito e implementato in modo coerente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- api, backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100