Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the item's attributes corresponding to a memo #88

Open
Athena-Cataleya opened this issue Jun 6, 2019 · 2 comments
Open

Get the item's attributes corresponding to a memo #88

Athena-Cataleya opened this issue Jun 6, 2019 · 2 comments
Labels
API Related to the Hypertopic compliant service Fix

Comments

@Athena-Cataleya
Copy link

Related to : #84

We need to see the item's attributes in the Hypertopic Item for our function : Hypertopic/Porphyry#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
@benel
Copy link
Member

benel commented Jun 14, 2019

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:

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.

@benel
Copy link
Member

benel commented Jun 14, 2019

@christophe-lejeune I pushed the fix on v2.
Commit 8aad2e6 could probably be cherry-picked (and amended) for v3.

@benel benel removed their assignment Jun 23, 2019
@benel benel added the API Related to the Hypertopic compliant service label Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Related to the Hypertopic compliant service Fix
Projects
None yet
Development

No branches or pull requests

2 participants