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

API for removing validated/suggested events #70

Closed
mvsjober opened this issue Nov 3, 2016 · 3 comments
Closed

API for removing validated/suggested events #70

mvsjober opened this issue Nov 3, 2016 · 3 comments
Milestone

Comments

@mvsjober
Copy link
Member

mvsjober commented Nov 3, 2016

No description provided.

@mvsjober mvsjober modified the milestone: v0.2 Nov 3, 2016
@chenhunghan
Copy link
Contributor

I suppose it should be something like this:

Add a validated event POST /api/profile/:id/validatedEvent remove validated event(de-validated) DELETE /api/profile/:id/validatedEvent

Add a suggested event POST /api/profile/:id/suggestedEvent remove a suggested event DELETE /api/profile/:id/suggestedEvent

@chenhunghan
Copy link
Contributor

And there should be API in the same format for documents as well :)

@mvsjober
Copy link
Member Author

This is implemented now as of commit eb363d0. The DELETE is in fact to the endpoint /api/profiles/:id/validatedevents/:rid, where the "rid" is the id of the "event relation" that you get when uploading it. (Event relation is the class defining the weighted relation between the profile and the event, i.e. the object you are uploading with POST.)

I also changed all endpoints to be in plural form, following #75.

As of commit 26c7e7a you can also do a GET to the /api/profiles/:id/validatedevents to get the full list if you need it :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants