Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
laminne opened this issue Aug 1, 2024 · 0 comments
Labels
T: docs Document Changes

Comments

@laminne
Copy link
Member

laminne commented Aug 1, 2024

概要

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と合わせる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: docs Document Changes
Projects
None yet
Development

No branches or pull requests

1 participant