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

project 公開しているかのフラグ #48

Open
kathmandu777 opened this issue Dec 15, 2022 · 5 comments · May be fixed by #66
Open

project 公開しているかのフラグ #48

kathmandu777 opened this issue Dec 15, 2022 · 5 comments · May be fixed by #66
Assignees
Labels
type:feature Feature Request

Comments

@kathmandu777
Copy link
Member

Overview

youngeek-0410/cloveeee#26 (comment)

Background of the improvement

Requirements

Considerations

Implementation policy

Test items

Remarks

@kathmandu777 kathmandu777 added the type:feature Feature Request label Dec 15, 2022
@sora-ichigo
Copy link
Member

POST: /api/projects/{project_id/publish

request {
  // ...
}

response {
  publication_url: string // 完成サイトのURL
}

validation {
  top_text: required,
  top_image: required,
  spotify_music: required,
  text_messages: { min: 1 },
  image_messages: なし
}

こんな感じのが欲しい

@sora-ichigo
Copy link
Member

スキーマ書く時間がないので誰か代わりにスキーマ書くところからやって欲しい、、

@sora-ichigo
Copy link
Member

バックエンドで保持しておいてほしい情報

  • そのProjectsが完成したかどうか

📝 完成したらもうメッセージは編集できない

@sora-ichigo
Copy link
Member

sora-ichigo commented Dec 15, 2022

POST: /api/projects/{project_id/publish

request {
  // なし
}

response {
  publication_url: string // 完成サイトのURL
}

validation {
  top_text: required,
  top_image: required,
  spotify_music: required,
  text_messages: { min: 5 },
  image_messages: { min: 5 },
}

公開サイトのURLは https://cloveeee.site/{project_id}

@sora-ichigo sora-ichigo changed the title project 完成しているかのフラグ project 公開しているかのフラグ Dec 15, 2022
@m-star18
Copy link
Member

これは公開するボタンを押したときに, 投げられるAPI
validationはそのプロジェクトが最低限の要件を満たしているかを確認するために必要
だめなときは400 bad requestを返せばいい

@m-star18 m-star18 linked a pull request Dec 17, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature Feature Request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants