add data model
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/bbdc6618 Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/bbdc6618 Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/bbdc6618 Branch: refs/heads/master Commit: bbdc6618553a42dafba7d227ae31edc78a8c2b01 Parents: 3bb9f02 Author: daewon <[email protected]> Authored: Thu Dec 27 19:03:16 2018 +0900 Committer: daewon <[email protected]> Committed: Thu Dec 27 19:03:16 2018 +0900 ---------------------------------------------------------------------- doc/source/api/index.rst | 6 +----- doc/source/api/query/index.rst | 4 +--- doc/source/api/query/query_edge.rst | 8 ++------ doc/source/api/query/query_vertex.rst | 13 +++++++++++++ doc/source/index.rst | 6 +----- 5 files changed, 18 insertions(+), 19 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/bbdc6618/doc/source/api/index.rst ---------------------------------------------------------------------- diff --git a/doc/source/api/index.rst b/doc/source/api/index.rst index e74650a..ed45c97 100644 --- a/doc/source/api/index.rst +++ b/doc/source/api/index.rst @@ -1,8 +1,3 @@ -.. Sphinx API Example documentation master file, created by - sphinx-quickstart on Wed May 2 12:55:56 2012. - You can adapt this file completely to your liking, but it should at least - contain the root `toctree` directive. - HTTP API Glossary ============================================== @@ -15,3 +10,4 @@ Contents: management/index mutate/index + query/index http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/bbdc6618/doc/source/api/query/index.rst ---------------------------------------------------------------------- diff --git a/doc/source/api/query/index.rst b/doc/source/api/query/index.rst index 26e2b01..6d5b3fb 100644 --- a/doc/source/api/query/index.rst +++ b/doc/source/api/query/index.rst @@ -12,6 +12,4 @@ Contents: query_options query_edge - - .. - query_vertex + query_vertex http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/bbdc6618/doc/source/api/query/query_edge.rst ---------------------------------------------------------------------- diff --git a/doc/source/api/query/query_edge.rst b/doc/source/api/query/query_edge.rst index 2b74daf..b7bfb21 100644 --- a/doc/source/api/query/query_edge.rst +++ b/doc/source/api/query/query_edge.rst @@ -15,12 +15,8 @@ Another tip is to not be shy to ask! Ask any questions on our `mailing list`_. l .. _github: https://github.com/apache/incubator-s2graph -APIs -------------------------------------- - - checkEdges - ``POST /graphs/checkEdges`` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +------------------------------------------ return edge for given vertex pair only if edge exist. This is more ``general`` way to check edge existence between any given vertex pairs comparing using ``_to`` on query parameter @@ -36,7 +32,7 @@ This is more ``general`` way to check edge existence between any given vertex pa getEdges - ``POST /graphs/getEdges`` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +----------------------------------------- Select edges with query. http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/bbdc6618/doc/source/api/query/query_vertex.rst ---------------------------------------------------------------------- diff --git a/doc/source/api/query/query_vertex.rst b/doc/source/api/query/query_vertex.rst index 15f5e3e..1ff0b2d 100644 --- a/doc/source/api/query/query_vertex.rst +++ b/doc/source/api/query/query_vertex.rst @@ -2,3 +2,16 @@ Query Vertices **************** + +POST - ``/graphs/getVertices`` +-------------------------------- + +Selecting all vertices from serviceColumn account_id of a service s2graph. + +.. code:: bash + + curl -XPOST localhost:9000/graphs/getVertices -H 'Content-Type: Application/json' -d ' + [ + {"serviceName": "s2graph", "columnName": "account_id", "ids": [1, 2, 3]}, + {"serviceName": "agit", "columnName": "user_id", "ids": [1, 2, 3]} + ]' http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/bbdc6618/doc/source/index.rst ---------------------------------------------------------------------- diff --git a/doc/source/index.rst b/doc/source/index.rst index fd4e755..7f4455e 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -1,8 +1,3 @@ -.. S2Graph documentation master file, created by - sphinx-quickstart on Mon Nov 12 15:53:14 2018. - You can adapt this file completely to your liking, but it should at least - contain the root `toctree` directive. - Introduction =================================== @@ -20,6 +15,7 @@ [email protected] is for people who want to contribute to S2Graph getting_started/index getting_started/your_first_graph + design/data_model api/index ..
