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

【メール】メールメッセージの新規追加APIにバリデーションのみを実行するオプションがほしい #2551

Closed
seto1 opened this issue Jul 4, 2023 · 2 comments
Assignees
Labels
Todo 実行確定タスク

Comments

@seto1
Copy link
Collaborator

seto1 commented Jul 4, 2023

もしくはバリデーション用の別API
確認画面を実装する場合に必要

https://baserproject.github.io/5/web_api/baser_api/bc-mail/mail_messages/add

baserCMS version : 5.0.2

@ryuring ryuring added the Todo 実行確定タスク label Jul 19, 2023
@ryuring
Copy link
Collaborator

ryuring commented Sep 2, 2023

@HungDV2022 こちら次の前提条件で実装をお願いします。

  • POSTでデータを受け付ける
  • CSRFトークン必要
  • MailMessagesControllerに実装
  • メソッド名を validate とする
  • 成功時は succsess => true を返却
  • 失敗時は、success => false とエラーメッセージを配列で返却
  • テストを追加する
  • APIドキュメントを追加する

@ryuring
Copy link
Collaborator

ryuring commented Sep 8, 2023

@seto1 こちら解決しています。ドキュメントはこちらです。
https://baserproject.github.io/5/web_api/baser_api/bc-mail/mail_messages/validate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Todo 実行確定タスク
Projects
None yet
Development

No branches or pull requests

3 participants