Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

New API call - POST /choir/songpart/upload #63

Open
glynnbird opened this issue Dec 14, 2020 · 0 comments
Open

New API call - POST /choir/songpart/upload #63

glynnbird opened this issue Dec 14, 2020 · 0 comments

Comments

@glynnbird
Copy link
Contributor

glynnbird commented Dec 14, 2020

This API call takes three parameters:

  • choirId - the id of the choir
  • songId - the id of the song whose part is being uploaded
  • partId - the id of the song part being uploaded
  • extension - the file extension e.g. webm (without the .)

It assumes that POST /choir/songpart has already been called to generate a partId - that API call records the data in the database. This API call grants access to upload the video file by creating a presigned URL that can be used by the front-end to upload the song part without having access to COS.

Returns:

{
  ok: true,
  method: 'PUT',
  url: 'https://some.url.com/path/key',
  key: 'x+y+z.web',
  bucket: 'mybucket'
}

The supplied URL will only work for a ten minutes.

glynnbird added a commit that referenced this issue Dec 21, 2020
add new POST /choir/songpart/upload API call for issue #63
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant