ソースを参照

agEdges.erl调整改进

erlArango_v1
AICells 5年前
コミット
2a7f06b1a9
1個のファイルの変更23行の追加8行の削除
  1. +23
    -8
      src/agApi/agEdges.erl

+ 23
- 8
src/agApi/agEdges.erl ファイルの表示

@ -7,16 +7,31 @@
%% doc_address:https://www.arangodb.com/docs/stable/http/edge.html
% _from和_tofrom和to顶点的文档句柄
% 使 REST api ///
%
%
%
% ArangoDB中的所有文档都有一个文档句柄使URI检索任何文档
%
% http://server:port/_api/document/<document-handle>
% 访使URL格式
%
% http://server:port/_api/document/<document-handle>
% _id属性中的文档句柄是demo / 362549736URL为
%
% http://localhost:8529/_api/document/demo/362549736
% URL方案没有明确指定数据库名称使使URL模式
%
% http://server:port/_db/<database-name>/_api/document/<document-handle>
%
%
% http://localhost:8529/_db/mydb/_api/document/demo/362549736
% 使URL格式
%
% GET /_api/edges/{collection-id}
%
% collection-idID
% collection-idID或者边集合名
%
% ID
%
% vertexID
% direction in or out
% vertex标识的顶点开始或结束的边数组
%
% 200
@ -25,4 +40,4 @@
getEdges(PoolNameOrSocket, CollName, QueryPars) ->
QueryBinary = agMiscUtils:spellQueryPars(QueryPars),
Path = <<"/_api/edges/", CollName/binary, QueryBinary/binary>>,
agHttpCli:callAgency(PoolNameOrSocket, ?AgGet, Path, [], undefined).
agHttpCli:callAgency(PoolNameOrSocket, ?AgGet, Path, [], undefined).

読み込み中…
キャンセル
保存