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

Error getting an item in a subclass though the REST API #184

Open
sebdesign opened this issue Mar 3, 2016 · 0 comments
Open

Error getting an item in a subclass though the REST API #184

sebdesign opened this issue Mar 3, 2016 · 0 comments

Comments

@sebdesign
Copy link

Hello,

I'm trying to get items through the REST API. Making a GET /RestItems request returns correctly all the items, allowing me to make an additional GET /RestItems requests with the uri of a given item from the initial list.

This works as intended for the (root) items that are not in any class/folder in my TAO application.
When I make a GET request for a nested item, I get a HTTP 412 error with the following body:

{
    "success": "false",
    "errorCode": "0",
    "errorMsg": "One of the precondition for this type of request was not satisfied",
    "version": "3.1.0-sprint19"
}

How can I access any item, nested or not? Or is there any endpoint where I could get uris for classes/folders and get each each class' items?

Thanks in advance.

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

1 participant