{"info":{"_postman_id":"08090da9-8d94-4ab2-9a47-fad4f32c9363","name":"Pets API - Integrasia Utama Test","description":"<html><head></head><body><p>REST API sederhana menggunakan Node.js + Express untuk menyelesaikan case study pengolahan data hewan peliharaan milik Esa dan beberapa fitur lainnya.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11096321","collectionId":"08090da9-8d94-4ab2-9a47-fad4f32c9363","publishedId":"2sBXcBmgym","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-02-13T00:03:39.000Z"},"item":[{"name":"Get All Pets","id":"5185eb06-e5ce-4e4e-9f93-4b0307f41366","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/pets","description":"<p>Retrieves a complete list of all pets in the system. This endpoint returns all pet records including their names, types, ages, and favorite status.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","pets"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5185eb06-e5ce-4e4e-9f93-4b0307f41366"},{"name":"Add Rino","id":"7b1cf00d-43e4-4928-8c38-3d1d71d7c1c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:3000/api/pets/add-rino","description":"<p>Adds a new pet named \"Rino\" to the pets collection. This is a specific endpoint designed to add a predefined pet entry to the system.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","pets","add-rino"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b1cf00d-43e4-4928-8c38-3d1d71d7c1c6"},{"name":"Get Favorites Pet","id":"69612138-5057-43e8-a646-3ecb9c22ea7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/pets/favorites?sort=desc","description":"<p>Retrieves all pets marked as favorites. The results can be sorted in ascending or descending order based on the sort query parameter. This endpoint helps identify which pets are marked as favorites by users.</p>\n<p>Query Parameters:</p>\n<ul>\n<li>sort (optional): Sort order for results. Values: asc (ascending) or desc (descending).</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["api","pets","favorites"],"host":["localhost"],"query":[{"key":"sort","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"69612138-5057-43e8-a646-3ecb9c22ea7c"},{"name":"Cat Update","id":"0dbf8b56-5bc8-43d5-9b01-f8a1e45db20b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:3000/api/pets/cat-update","description":"<p>Updates information for pets of type \"cat\". This endpoint specifically targets cat records in the database and allows modification of their attributes.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","pets","cat-update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0dbf8b56-5bc8-43d5-9b01-f8a1e45db20b"},{"name":"Count by Type","id":"a5b49df1-7c11-494c-8e36-930b18a8f079","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/pets/count-by-type","description":"<p>Returns a count of pets grouped by their type (e.g., cat, dog, fish). This endpoint provides statistical information about the distribution of different pet types in the system.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","pets","count-by-type"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5b49df1-7c11-494c-8e36-930b18a8f079"},{"name":"Check Palindrome","id":"51cdd1c0-edd0-4b4c-9aad-ed0a46c910c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/pets/palindromes","description":"<p>Filters and returns all pets whose names are palindromes (names that read the same forwards and backwards, e.g., \"Anna\", \"Bob\"). This endpoint analyzes pet names and returns only those with palindromic names.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","pets","palindromes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"51cdd1c0-edd0-4b4c-9aad-ed0a46c910c8"},{"name":"Get Even Numbers","id":"676c113f-7854-4e00-8ab5-26a3afa477f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/even-numbers","description":"<p>A utility endpoint that returns a list or calculation of even numbers. This is a helper function that may be used for data processing or demonstration purposes.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","even-numbers"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"676c113f-7854-4e00-8ab5-26a3afa477f4"},{"name":"Check Anagram","id":"df26ce59-4fd9-43ba-9be6-451bbcc19e77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"str1\" :\"test\",\r\n    \"str2\" : \"stte\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/utils/check-anagram","description":"<p>Checks whether two provided strings are anagrams of each other (contain the same characters in different orders). Send two strings in the request body, and the endpoint will return whether they are anagrams.</p>\n<p>Request Body:<br />{<br />\"str1\": \"test\",<br />\"str2\": \"stte\"<br />}</p>\n<p>Parameters:</p>\n<ul>\n<li><p>str1 (string, required): First string to compare</p>\n</li>\n<li><p>str2 (string, required): Second string to compare</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["api","utils","check-anagram"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"df26ce59-4fd9-43ba-9be6-451bbcc19e77"},{"name":"JSON Format","id":"9173524d-6f33-49e9-80c4-5d8765ace2b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/utils/format-json","description":"<p>A utility endpoint that formats or validates JSON data. This helper function can be used to ensure proper JSON structure or to prettify JSON output.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","utils","format-json"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9173524d-6f33-49e9-80c4-5d8765ace2b7"}]}