Skip to content
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

Add personal info history API #628

Merged
merged 2 commits into from
May 14, 2024
Merged

Add personal info history API #628

merged 2 commits into from
May 14, 2024

Conversation

YoshihitoAso
Copy link
Member

@YoshihitoAso YoshihitoAso commented May 14, 2024

API IF変更に関して、日本語 🇯🇵 で補足しておきます。

1)【変更】GET: /token/holders/personal_info
- 入力:検索項目の追加(created_from、created_to、modified_from、modified_to)
  - https://github.com/BoostryJP/ibet-Prime/pull/628/files#diff-9e2327c7090e5fdd3df4edd2e35959df2be0c38196dee097fdfcc511aca5462bR49-R60
  - "%Y-%m-%d %H:%M:%S" のフォーマットを強制するようにしている。
  - それぞれのタイムゾーンでの日時を入力すれば良い(内部的に自動でUTCなどに変換されて処理される)。
- 入力:ソート項目の指定を可能にした(sort_item)。account_address, created, modified でのソートが可能。
  - https://github.com/BoostryJP/ibet-Prime/pull/628/files#diff-9e2327c7090e5fdd3df4edd2e35959df2be0c38196dee097fdfcc511aca5462bR62-R64
- 出力:modified(更新日時)を追加
 - TZ付きの isoフォーマットで返却する。
 - 例:"2024-05-13T21:34:56+09:00"
- 出力:created はJSTで返却するように変更。
  - https://github.com/BoostryJP/ibet-Prime/pull/628/files#diff-9d55891d429df586ae998c8d73e9c8cacebe7b4858438c05ef375666dfbdac00R93-R100
  - TZ付きの datetime で返却する。 例:"2024-05-13T21:34:56+09:00"

2)【新規】GET: /token/holders/personal_info/history
- 名義情報の追加・更新履歴
- 入力パラメータ
  - header: issuer_address
  - account_address
  - event_type(register or modify)
  - created_from
  - created_to
  - sort_order(createdのソート順)
  - offset(改ページ制御)
  - limit(改ページ制御)
- 出力項目
  - https://github.com/BoostryJP/ibet-Prime/pull/628/files#diff-b65cc0c11ab8afb820e01236200a6103a4fd586abe66309c86d06d09200b797dR72-R79
  - history の API については、modified の項目はない(追記型のデータなのでcreated=modifiedである)

3)【変更】GET: /bond/tokens/{token_address}/history
- 入力::日時検索項目のフォーマットの厳格化(created_from、created_to)
  - "%Y-%m-%d %H:%M:%S" のフォーマットを強制するようにしている。
  - それぞれのタイムゾーンでの日時を入力すれば良い(内部的に自動でUTCなどに変換されて処理される)。
  - 出力については現状でもJST変換されたものである。

4)【変更】GET: /share/tokens/{token_address}/history
- 入力::日時検索項目のフォーマットの厳格化(created_from、created_to)
  - "%Y-%m-%d %H:%M:%S" のフォーマットを強制するようにしている。
  - それぞれのタイムゾーンでの日時を入力すれば良い(内部的に自動でUTCなどに変換されて処理される)。
  - 出力については現状でもJST変換されたものである。

@YoshihitoAso YoshihitoAso marked this pull request as ready for review May 14, 2024 00:48
Copy link
Member

@purplesmoke05 purplesmoke05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YoshihitoAso YoshihitoAso merged commit 3c66f20 into dev-24.6 May 14, 2024
5 checks passed
@YoshihitoAso YoshihitoAso deleted the feature/#627 branch May 14, 2024 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] History of holder's personal information
2 participants