Get the item's attributes corresponding to a memo
Related to : https://github.com/Hypertopic/Cassandre/issues/84
We need to see the item's attributes in the Hypertopic Item for our function : https://github.com/Hypertopic/Porphyry/issues/191
For now you can access to:
GET http://cassandre.hypertopic.org/item/enseignants-decrocheurs/deb51701fe5e555acf3a765a30115e04
{"rows":[ {"key":["http://cassandre.hypertopic.org/text/enseignants-decrocheurs/deb51701fe5e555acf3a765a30115e04"], "value":{"item":{"corpus":"enseignants-decrocheurs", "id":"deb51701fe5e555acf3a765a30115e04"}}} ]}
And we need to access other attributes like :
- Interviewe (the person being interviewed)
- Author (the person who interview)
- Date of the interview
The fix is available on UTT's Cassandre server:
I did it both for item (as asked) but also for corpus (which is the efficient way to go through this:
- http://cassandre.hypertopic.org/item/enseignants-decrocheurs/deb51701fe5e555acf3a765a30115e04
- http://cassandre.hypertopic.org/corpus/enseignants-decrocheurs
As you can see, all attributes (e.g. enquêteur and date) are now got. Be careful, the values are either a string or an array of strings.
@christophe-lejeune I pushed the fix on v2. Commit 8aad2e6 could probably be cherry-picked (and amended) for v3.