概要

本APIでは、docomo business RINKのドキュメントリソース情報の参照・操作が可能です。

document

書類ダウンロードAPI

  • 現地調査時の作業者候補リスト、宅内工事の作業候補者リスト、構内区間の現地調査結果報告書、工事結果報告書をダウンロードするAPI
  • ベストエフォートIPoE接続とギャランティ接続で利用
query Parameters
documentId
required
string ^[a-f0-9]{32}$
Example: documentId=1e115026499c42d783b53c04b4808f1e

書類ID。ダウンロードする対象の書類IDを指定する。

header Parameters
X-Auth-Token
required
string

クライアントが Keystone を利用して取得した認証 Token

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

get/v1/download-document
http://api.ntt.com/ztgict/v1/download-document

Response samples

Content type
Copy
Expand all Collapse all
{
  • "documentId": "1e115026499c42d783b53c04b4808f1e",
  • "decoding": "base64",
  • "content": "string",
  • "format": "pdf",
  • "md5": "string"
}

書類アップロードAPI

本人確認書類ファイル等をアップロードするAPI

header Parameters
X-Auth-Token
required
string ^[0-9a-f]{32}$
Example: dc03494823a841338430052e9ee95e07

クライアントが Keystone を利用して取得した認証 Token

Request Body schema: application/json

request body

encoding
required
string
Value: "base64"
content
required
string <= 13000000 characters

base64エンコーディングをしたファイルコンテンツ

format
required
string
Enum: "jpg" "png" "pdf"

ファイルフォーマット。 jpg: JPEG png: PNG pdf: PDF

Responses

201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

post/v1/upload-document
http://api.ntt.com/ztgict/v1/upload-document

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "encoding": "base64",
  • "content": "string",
  • "format": "jpg"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "documentId": "1e115026499c42d783b53c04b4808f1e",
  • "ref": "/v1/upload-document/1e115026499c42d783b53c04b4808f1e",
  • "creationTime": "2019-05-21T10:05:48+09:00",
  • "expireTime": "2019-05-21T10:05:48+09:00",
  • "encoding": "base64",
  • "size": 1024,
  • "content": "string",
  • "md5": "string"
}