gholamimohsen / StilGalleriet

StillGalleriet
3 stars 0 forks source link

favorites2 is the branch name #55

Closed steFue closed 5 months ago

steFue commented 5 months ago

Pictures of how to type in postman with examples and testing. Noted when retriving all favorites i get the information about the owners informations aswell. Not sure if we need to handel that issues right now. Post advertisement Delete favorite Get all favorites

Shumisen commented 5 months ago

Tested all methods: Create, delete, get all favorites. They work fine. I am not sure on the paths set on the controllers, but I think it can be addressed later if needed.

There is some sort of proper response to user(Postman response) in errors regarding username which is good. However there is none for advertisement IDs as it will only show the authentication message. Again this doesn't need to be addressed now.

Regarding your question on why you see the referenced documents. It happens because you send the Advertisement model as response. You would need to use a DTO in order to not show the documents.