본문으로 건너뛰기
버전: 1.0.0

Get document

정보
  • 데이터 추가, 읽기, 변경, 삭제를 위해서는 client write secret이 필요합니다.
  • Document에 _idtitle 필드를 필수로 포함해야 합니다.

Overview

Path
POST/v1/search/collections/{collectionName}/documents/{docId}
  • Collection에서 Document를 읽어 가져옵니다.

Example


curl -X GET https://api.invector.co/v1/collections/{collectionName}/documents/{docId} \
     -H "Content-Type: application/json" \
     -H "Authorization: Basic base64({CLIENT_ID}:{CLIENT_WRITE_SECRET})" \

Authorization


Authorization
BasicBasic authorization at Header. Base64 encoding required
client_id
string
client_secret
string
example

 curl -X GET https://api.invector.co/v1/collections/{collectionName}/documents/{docId} \
      -H "Content-Type: application/json" \
      -H "Authorization: Basic base64({CLIENT_ID}:{CLIENT_WRITE_SECRET})" \

Path Parameters


collectionName
string
docId
string

Response Body


200
objectDocument object
_id
stringUnique Document ID.
title
stringTitle of the document.
[other fields …]
anyOther fields of the document.
example
{
  "_id": "unique_document_id_123",
  "title": "Description of Philip",
  "name": "Philip",
  "age": 22,
  "department": "Engineering",
  "role": "Software Engineer",
  "email": "philipchoi@togglecampus.com"
}