Kittens - Backend Documentation 1.0 Help

User Wishlist

GET

GET method/api/v1/users/{uid}/wishlist

Fetch the user's wishlist contents.

Request parameters

Responses

{ "wishlist": [ "ffffffff-ffff-ffff-ffff-ffffffffffff" ], "page": 0, "viewing": "0-24", "totalItems": 42 }
{ "error": "Not found", "status": 404, "reason": "Requested path could not be found" }
{ "error": "Server Error", "status": 500, "exception": "Baz given, expected Foo or Bar", "trace": "example", "thrownIn": "\App\Foo\Bar\Baz()", "file": "example", "line": 58, "severity": "example" }

PUT

PUT method/api/v1/users/{uid}/wishlist

Add a cat to the user's wishlist.

Request parameters

Responses

{ "wishlistItems": 42, "catUid": "ffffffff-ffff-ffff-ffff-ffffffffffff" }
{ "wishlistItems": 42, "catUid": "ffffffff-ffff-ffff-ffff-ffffffffffff" }
{ "error": "Bad Request", "status": 400, "field_errors": [ "email" ] }
{ "error": "Unauthorized", "status": 401, "reason": "Unauthorized" }
{ "error": "Not found", "status": 404, "reason": "Requested path could not be found" }
{ "error": "Server Error", "status": 500, "exception": "Baz given, expected Foo or Bar", "trace": "example", "thrownIn": "\App\Foo\Bar\Baz()", "file": "example", "line": 58, "severity": "example" }

DELETE

DELETE method/api/v1/users/{uid}/wishlist

Delete one or more cats from the user's wishlist.

Request parameters

{ "cats": [ "ffffffff-ffff-ffff-ffff-ffffffffffff" ] }

Responses

{ "catsRemoved": 58 }
{ "error": "Bad Request", "status": 400, "field_errors": [ "email" ] }
{ "error": "Unauthorized", "status": 401, "reason": "Unauthorized" }
{ "error": "Not found", "status": 404, "reason": "Requested path could not be found" }
{ "error": "Server Error", "status": 500, "exception": "Baz given, expected Foo or Bar", "trace": "example", "thrownIn": "\App\Foo\Bar\Baz()", "file": "example", "line": 58, "severity": "example" }
Last modified: 15 January 2025