Skip to content

feat: Note APIの添付ファイルのプロパティー名をDrive APIのものに合わせる #9

@laminne

Description

@laminne

概要

cf. POST /notes

{
  //
  "attachment_files": [
    {
      "id": "11938472",
      "filename": "hello.png",
      "content_type": "image/png",
      "url": "https://example.com/images/hello.png",
      "blur": "eoig:woi!our@nj/d",
      "nsfw": false
    }
  ]
}

cf. GET /drive

[
  {
    "id": "2938492384",
    "name": "image.jpeg",
    "author_id": "384880009940302",
    "hash": "nf9:e;g711*c@drgj55",
    "mime": "image/jpeg",
    "nsfw": false,
    "url": "https://images.example.com/image.jpeg",
    "thumbnail": "https://images.example.com/thumb-image.jpeg"
  }
]

違う部分:

  • namefilenameになっている
  • mimecontent_typeになっている
  • thumbnailがない
  • hashblurになっている
  • author_idがない

これらの差異を無くし、drive apiと合わせる

Metadata

Metadata

Assignees

No one assigned

    Labels

    T: docsDocument Changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions