All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unipop.rest.RestSchema Maven / Gradle / Ivy

There is a newer version: 0.2.1
Show newest version
package org.unipop.rest;

import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.request.BaseRequest;
import org.apache.tinkerpop.gremlin.structure.Element;
import org.unipop.query.predicates.PredicateQuery;
import org.unipop.query.search.SearchQuery;
import org.unipop.schema.element.ElementSchema;

import java.util.List;
import java.util.NoSuchElementException;

/**
 * Created by sbarzilay on 24/11/16.
 */
public interface RestSchema extends ElementSchema {
    BaseRequest getSearch(SearchQuery query);
    List parseResults(HttpResponse result, PredicateQuery query);

    BaseRequest addElement(E element) throws NoSuchElementException;
    BaseRequest delete(E element);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy