Skip to content

Commit

Permalink
Fix and add missing user watchlist rest api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Sep 26, 2023
1 parent c8dbabb commit 5b14a78
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions tests/rest/api/user-watchlist.http
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
GET http://127.0.0.1/api/ussers/{{username}}/watchlist
GET http://127.0.0.1/api/users/{{username}}/watchlist/movies
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
X-Auth-Token: {{xAuthToken}}

####

GET http://127.0.0.1/api/users/{{username}}/watchlist?limit=5
GET http://127.0.0.1/api/users/{{username}}/watchlist/movies?limit=5
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
X-Auth-Token: {{xAuthToken}}

####

POST http://127.0.0.1/api/users/{{username}}/watchlist/movies
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
X-Auth-Token: {{xAuthToken}}

[
{
"movaryId": 1
}
]

####

DELETE http://127.0.0.1/api/users/{{username}}/watchlist/movies
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
X-Auth-Token: {{xAuthToken}}

[
{
"movaryId": 1
}
]

####

0 comments on commit 5b14a78

Please sign in to comment.