メインコンテンツへスキップ
GET
/
v2
/
{entity}
/
{project}
/
ops
/
{object_id}
/
versions
/
{digest}
Op の読み取り
curl --request GET \
  --url https://api.example.com/v2/{entity}/{project}/ops/{object_id}/versions/{digest} \
  --header 'Authorization: Basic <encoded-value>'
{
  "object_id": "<string>",
  "digest": "<string>",
  "version_index": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "code": "<string>"
}

承認

Authorization
string
header
必須

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

パスパラメータ

entity
string
必須
project
string
必須
object_id
string
必須
digest
string
必須

クエリパラメータ

eager
boolean
デフォルト:false

op コードを即時にロードするかどうか

レスポンス

成功時のレスポンス

op オブジェクトを読み取るためのレスポンスモデル。

code フィールドには、op の実際のソースコードが含まれます。

object_id
string
必須

op の ID

digest
string
必須

op のダイジェスト

version_index
integer
必須

この op のバージョンインデックス

created_at
string<date-time>
必須

この op が作成された時刻

code
string
必須

この op の実際のソースコード