Update Bruno API test collections with latest test data: Bookhoard.yml environment: - Update media_item_id to current database value after recent database recreation/schema updates Create Media Rating test: - Change test rating from 8 to 7 to test different rating value for validation These are test infrastructure updates only, no application code changes.
34 lines
561 B
YAML
34 lines
561 B
YAML
info:
|
|
name: Create Media Rating
|
|
type: http
|
|
seq: 4
|
|
|
|
http:
|
|
method: POST
|
|
url: "{{base_url}}/api/media-items/{{media_item_id}}/rating"
|
|
headers:
|
|
- name: ""
|
|
value: application/json
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"rating": 7
|
|
}
|
|
auth: inherit
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|
|
|
|
docs: |-
|
|
## Create Media Rating
|
|
|
|
Creates or updates the authenticated user's rating for a specific media item.
|
|
|
|
**Method:** POST
|
|
|
|
**Endpoint:** /api/media-items/{id
|