RedPanal / redpanal

RedPanal web
https://redpanal.org
GNU Affero General Public License v3.0
18 stars 9 forks source link

Modified API to allow audio creation. Bumped haystack version that wa… #107

Closed nicoechaniz closed 5 years ago

nicoechaniz commented 5 years ago

can test with:

curl -X POST -u admin:admin -F "name=tracktest" -F "licence=CC-BY-SA-4.0" -F "description=TrackTest" -F "use_type=track" -F "genre=other" -F "instrument=other" -F "tags=[\"untag\", \"otrotag\"]" -F "audio=@/home/user/track.mp3" http://127.0.0.1:8000/api/audio/

spiccinini commented 5 years ago

Great work!

I have tested it. I found the following issues:

Maybe not an issue:

spiccinini commented 5 years ago

I create this branch with the permissions fix https://github.com/RedPanal/redpanal/tree/audio_creation_api . What do you think?

nicoechaniz commented 5 years ago

It is looking good @spiccinini :)

nicoechaniz commented 5 years ago

regarding the audio being bound to a project or not I guess it is OK it the model accepts to allow the audio to be unbound. It's still related to the user, so it's not "invisible".

spiccinini commented 5 years ago

Great. I will merge this and the other branch :) Probably a good next step could be to create a simple script to upload all the audios from a directory?