Unrated-Limited-Unlimited / ua-backend

4 stars 0 forks source link

OpenAPI docs and rating serialization for thumb stats when quering getWhiskey(id) #40

Closed Veggissss closed 5 months ago

Veggissss commented 5 months ago

This PR includes OpenAPI documentation for the endpoints. The docs can be seen by visiting localhost:8000/ or api.unrated.no/ when it gets deployed.

Also includes some added serialzied fields to each rating when query getWhiskey(id) is called:

# Rating
votedThumb: Thumb # This will be populated when getWhiskey is used and user has liked a the rating.
goodThumbs: Int # Populated when getWhiskey is used and counts thumbs that isGood is true
badThumbs: Int # Populated when getWhiskey is used and counts thumbs that isGood is false
sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud