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

add a post method to create a new slice #19

Closed
wants to merge 4 commits into from

Conversation

vemonet
Copy link

@vemonet vemonet commented Oct 2, 2015

It is actually really messy to create a new slice
http://www.bioontology.org/wiki/index.php/Virtual_Appliance_FAQ#How_do_I_add_or_change_slices.3F

So here is just a little post method to create it using a HTTP POST on the API

Query example:
curl -X POST -H "Content-Type: application/json" -H "Authorization: apikey token="" -d '
{
"acronym" : "my_slice",
"name" : "My Slice",
"description" : "A nice slice",
"ontologies" : ["ONT1", "ONT2", "ONT3"]
}' http://data.my-bioportal-appliance/slices

@vemonet
Copy link
Author

vemonet commented May 16, 2017

Add 3 method to create, patch and delete Slices from ontologies_api.
See https://github.com/sifrproject/ontologies_api/blob/lirmm/controllers/slices_controller.rb#L34:L56 to get the synchronize slices with groups method

@vemonet vemonet closed this May 16, 2017
@vemonet vemonet reopened this May 16, 2017
@alexskr
Copy link
Member

alexskr commented Sep 7, 2023

superseded by #87

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

Successfully merging this pull request may close these issues.

2 participants