[Artist] Implement create Artist.
Closed this issue · 0 comments
ahmedeid6842 commented
requirement: 💬
At this task creation of artist should be implemented, the user will be an artist after the verify his email. so you have to only create service controller method.
To Do: ✅
- Implement
POST => artists/
- check if the user isAuthenticated or not using @AuthGuard
- call
createArtist
service method - if every thing is okay return
201
status - Implement
createArtist
service method- It should accept the artist data and user who own this artist
- verify the passed artist data with a DTO
- create a artist for passed argument and save it.
- Implement
CreateArtistDTO
that validate the artist data- name: string, length<100
- bio: string, length < 500
- Implement
ArtistGuard
- this guard should check if the current user is artist or not.