{"id":214,"date":"2025-03-12T10:45:11","date_gmt":"2025-03-12T10:45:11","guid":{"rendered":"https:\/\/hostqa.com\/htqa\/?page_id=214"},"modified":"2025-03-12T10:56:58","modified_gmt":"2025-03-12T10:56:58","slug":"api-automation","status":"publish","type":"page","link":"https:\/\/hostqa.com\/htqa\/api-automation\/","title":{"rendered":"API Automation"},"content":{"rendered":"\n<p><\/p>\n\n\n<h2>Create New Test Case<\/h2>\n<form method=\"post\">\n    <input type=\"hidden\" name=\"test_case_id\" value=\"0\">\n    <table class=\"form-table\">\n        <tr>\n            <th scope=\"row\"><label for=\"name\">Name<\/label><\/th>\n            <td><input type=\"text\" name=\"name\" id=\"name\" value=\"\" required class=\"regular-text\"><\/td>\n        <\/tr>\n        <tr>\n            <th scope=\"row\"><label for=\"endpoint\">Endpoint<\/label><\/th>\n            <td><input type=\"url\" name=\"endpoint\" id=\"endpoint\" value=\"\" required class=\"regular-text\"><\/td>\n        <\/tr>\n        <tr>\n            <th scope=\"row\"><label for=\"method\">Method<\/label><\/th>\n            <td>\n                <select name=\"method\" id=\"method\" required>\n                    <option value=\"GET\" >GET<\/option>\n                    <option value=\"POST\" >POST<\/option>\n                    <option value=\"PUT\" >PUT<\/option>\n                    <option value=\"DELETE\" >DELETE<\/option>\n                <\/select>\n            <\/td>\n        <\/tr>\n        <tr>\n            <th scope=\"row\"><label for=\"headers\">Headers (JSON)<\/label><\/th>\n            <td><textarea name=\"headers\" id=\"headers\" class=\"large-text\"><\/textarea><\/td>\n        <\/tr>\n        <tr>\n            <th scope=\"row\"><label for=\"parameters\">Parameters (JSON)<\/label><\/th>\n            <td><textarea name=\"parameters\" id=\"parameters\" class=\"large-text\"><\/textarea><\/td>\n        <\/tr>\n        <tr>\n            <th scope=\"row\"><label for=\"request_body\">Request Body<\/label><\/th>\n            <td><textarea name=\"request_body\" id=\"request_body\" class=\"large-text\"><\/textarea><\/td>\n        <\/tr>\n        <tr>\n            <th scope=\"row\"><label for=\"expected_status\">Expected Status<\/label><\/th>\n            <td><input type=\"number\" name=\"expected_status\" id=\"expected_status\" value=\"\" class=\"regular-text\"><\/td>\n        <\/tr>\n        <tr>\n            <th scope=\"row\"><label for=\"expected_headers\">Expected Headers (JSON)<\/label><\/th>\n            <td><textarea name=\"expected_headers\" id=\"expected_headers\" class=\"large-text\"><\/textarea><\/td>\n        <\/tr>\n        <tr>\n            <th scope=\"row\"><label for=\"expected_body\">Expected Body<\/label><\/th>\n            <td><textarea name=\"expected_body\" id=\"expected_body\" class=\"large-text\"><\/textarea><\/td>\n        <\/tr>\n    <\/table>\n    <p class=\"submit\"><input type=\"submit\" name=\"save_test_case\" id=\"save_test_case\" class=\"button button-primary\" value=\"Save Test Case\"  \/><\/p><\/form><h2>My Test Cases<\/h2>\n<h3>Test Cases<\/h3>\n<table class=\"wp-list-table widefat fixed striped\">\n    <thead>\n        <tr>\n            <th>Name<\/th>\n            <th>Endpoint<\/th>\n            <th>Method<\/th>\n            <th>Actions<\/th>\n        <\/tr>\n    <\/thead>\n    <tbody>\n                    <tr>\n                <td colspan=\"4\">No test cases found.<\/td>\n            <\/tr>\n            <\/tbody>\n<\/table><p>You have not created any test cases yet.<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-214","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hostqa.com\/htqa\/wp-json\/wp\/v2\/pages\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostqa.com\/htqa\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hostqa.com\/htqa\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hostqa.com\/htqa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostqa.com\/htqa\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":2,"href":"https:\/\/hostqa.com\/htqa\/wp-json\/wp\/v2\/pages\/214\/revisions"}],"predecessor-version":[{"id":216,"href":"https:\/\/hostqa.com\/htqa\/wp-json\/wp\/v2\/pages\/214\/revisions\/216"}],"wp:attachment":[{"href":"https:\/\/hostqa.com\/htqa\/wp-json\/wp\/v2\/media?parent=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}