diff --git a/_sql/migrations/2023-11-17-094126_favorite/up.sql b/_sql/migrations/2023-11-17-094126_favorite/up.sql index 429c8bacf4..9f1f22e5b6 100644 --- a/_sql/migrations/2023-11-17-094126_favorite/up.sql +++ b/_sql/migrations/2023-11-17-094126_favorite/up.sql @@ -25,10 +25,6 @@ CREATE TABLE favorites -- The token of the entity the favorite applies to entity_token VARCHAR(32) NOT NULL, - -- For abuse tracking. - -- Wide enough for IPv4/6 - creator_ip_address VARCHAR(40) NOT NULL, - -- ========== VECTOR CLOCK ========== -- Incremented with every update. diff --git a/crates/service/web/storyteller_web/src/postman_collections/Base Service Collection.postman_collection.json b/crates/service/web/storyteller_web/src/postman_collections/Base Service Collection.postman_collection.json index cd118356fe..dc5132bbff 100644 --- a/crates/service/web/storyteller_web/src/postman_collections/Base Service Collection.postman_collection.json +++ b/crates/service/web/storyteller_web/src/postman_collections/Base Service Collection.postman_collection.json @@ -1,9 +1,9 @@ { "info": { - "_postman_id": "febcb082-e71c-46c4-a172-adf736e01298", + "_postman_id": "5b9aab26-f591-4264-b75b-3075dbeaf6df", "name": "Base Service Collection", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "30159615" + "_exporter_id": "10633600" }, "item": [ { @@ -84,6 +84,77 @@ } ] }, + { + "name": "Favorites", + "item": [ + { + "name": "List Favorites", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/v1/favorites/list/user/U:0XTEZ7HX29B9C", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "v1", + "favorites", + "list", + "user", + "U:0XTEZ7HX29B9C" + ] + } + }, + "response": [] + }, + { + "name": "Create Favorite", + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseUrl}}/v1/comments/new", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "v1", + "comments", + "new" + ] + } + }, + "response": [] + }, + { + "name": "Delete Favorite", + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseUrl}}/v1/favorites/delete/:favorite_token", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "v1", + "favorites", + "delete", + ":favorite_token" + ], + "variable": [ + { + "key": "favorite_token", + "value": "" + } + ] + } + }, + "response": [] + } + ] + }, { "name": "Animations", "item": [