{"id":43,"date":"2025-10-08T09:55:16","date_gmt":"2025-10-08T07:55:16","guid":{"rendered":"https:\/\/kaurpakaste24.thkit.ee\/wp\/?page_id=43"},"modified":"2025-10-20T15:31:02","modified_gmt":"2025-10-20T13:31:02","slug":"raamatud-view-controller-ja-mudel","status":"publish","type":"page","link":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/","title":{"rendered":"Books View, Controller ja Model"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Controller<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The SchoolContext _context tells the Controller and View what the database looks like and all the information inside it.\n\nIndex lets us view all the information about Books in general using the ToListAsync() method which puts all the books into a table.\n\nCreate first gives us the Create view and then when the information is given, it checks that the model is correct and if it is, adds it to the database and takes you back to the Index.\n\nIt also uses SaveChangesAsync to save the information\n\nDelete deletes the given selection after checking that it exists. It first uses FirstorDefaultAsync which returns the first element of the sequence asynchronously. And uses the Lambda method to briefly show the anonymous method\nAnd then saves it to the database when it deletes the selected object.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\nusing Microsoft.AspNetCore.Mvc;\nusing Microsoft.AspNetCore.Mvc.Rendering;\nusing Microsoft.EntityFrameworkCore;\nusing TallinnaRakenduslikKolledzKaur.Data;\nusing TallinnaRakenduslikKolledzKaur.Models;\n\nnamespace TallinnaRakenduslikKolledzKaur.Controllers\n{\n    public class BooksController : Controller\n    {\n        private readonly SchoolContext _context;\n\n        public BooksController(SchoolContext context)\n        {\n            _context = context;\n        }\n\n        public async Task&lt;IActionResult&gt; Index()\n        {\n            return View(await _context.Books.ToListAsync());\n        }\n        &#x5B;HttpGet]\n        public IActionResult Create()\n        {\n            return View();\n        }\n        &#x5B;HttpPost]\n        &#x5B;ValidateAntiForgeryToken]\n        public async Task&lt;IActionResult&gt; Create(Book book)\n        {\n            if (ModelState.IsValid)\n            {\n                _context.Books.Add(book);\n                await _context.SaveChangesAsync();\n            }\n\n            return RedirectToAction(&quot;Index&quot;);\n        }\n\n        &#x5B;HttpGet]\n        public async Task&lt;IActionResult&gt; Delete(int? id)\n        {\n            ViewData&#x5B;&quot;deletion&quot;] = true;\n            if (id == null)\n            {\n                return NotFound();\n            }\n            var books = await _context.Books.FirstOrDefaultAsync(b =&gt; b.BookId == id);\n            if (books == null)\n            {\n                return NotFound();\n            }\n            return View(books);\n        }\n\n        &#x5B;HttpPost]\n        &#x5B;ValidateAntiForgeryToken]\n        public async Task&lt;IActionResult&gt; Delete(Book book)\n        {\n            if (await _context.Books.AnyAsync(b =&gt; b.BookId == book.BookId))\n            {\n                _context.Books.Remove(book);\n                await _context.SaveChangesAsync();\n            }\n            return RedirectToAction(&quot;Index&quot;);\n        }\n    }\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Mudel<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\nusing System.ComponentModel.DataAnnotations;\n\nnamespace TallinnaRakenduslikKolledzKaur.Models\n{\n    public class Book\n    {\n        &#x5B;Key]\n        public int BookId { get; set; }\n        public string Title { get; set; }\n        public int? PageCount { get; set; }\n        public int TotalStock { get; set; }\n        public int? AmountBorrowed { get; set; }\n        public int? CurrentStock\n        {\n            get { return TotalStock-AmountBorrowed; }\n        }\n\n\n    }\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">View<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create View et teha uus raamat<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n@model TallinnaRakenduslikKolledzKaur.Models.Book\n@{ViewData&#x5B;&quot;Title&quot;] = &quot;Uus Kursus&quot;;}\n&lt;h1&gt;Tee uus kursus&lt;\/h1&gt;\n&lt;h4&gt;Sisesta info:&lt;\/h4&gt;\n&lt;hr \/&gt;\n&lt;div class=&quot;row&quot;&gt;\n\t&lt;div class=&quot;col-md-4&quot;&gt;\n\t\t&lt;form asp-action=&quot;Create&quot;&gt;\n\t\t\t&lt;div asp-validation-summary=&quot;ModelOnly&quot; class=&quot;text-danger&quot;&gt;&lt;\/div&gt;\n\t\t\t&lt;!--&lt;div&gt;\n\t\t\t\t&lt;label asp-for=&quot;CourseId&quot; class=&quot;control-label&quot;&gt;&lt;\/label&gt;\n\t\t\t\t&lt;input asp-for=&quot;CourseId&quot; class=&quot;form-control&quot; \/&gt;\n\t\t\t\t&lt;span asp-validation-for=&quot;CourseId&quot; class=&quot;text-danger&quot;&gt;&lt;\/span&gt;\n\t\t\t&lt;\/div&gt; --&gt;\n\t\t\t&lt;div&gt;\n\t\t\t\t&lt;label asp-for=&quot;Title&quot; class=&quot;control-label&quot;&gt;&lt;\/label&gt;\n\t\t\t\t&lt;input asp-for=&quot;Title&quot; class=&quot;form-control&quot; \/&gt;\n\t\t\t\t&lt;span asp-validation-for=&quot;Title&quot; class=&quot;text-danger&quot;&gt;&lt;\/span&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&lt;div&gt;\n\t\t\t\t&lt;label asp-for=&quot;PageCount&quot; class=&quot;control-label&quot;&gt;&lt;\/label&gt;\n\t\t\t\t&lt;input asp-for=&quot;PageCount&quot; class=&quot;form-control&quot; \/&gt;\n\t\t\t\t&lt;span asp-validation-for=&quot;PageCount&quot; class=&quot;text-danger&quot;&gt;&lt;\/span&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&lt;div&gt;\n\t\t\t\t&lt;label asp-for=&quot;TotalStock&quot; class=&quot;control-label&quot;&gt;&lt;\/label&gt;\n\t\t\t\t&lt;input asp-for=&quot;TotalStock&quot; class=&quot;form-control&quot; \/&gt;\n\t\t\t\t&lt;span asp-validation-for=&quot;TotalStock&quot; class=&quot;text-danger&quot;&gt;&lt;\/span&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&lt;div&gt;\n\t\t\t\t&lt;label asp-for=&quot;AmountBorrowed&quot; class=&quot;control-label&quot;&gt;&lt;\/label&gt;\n\t\t\t\t&lt;input asp-for=&quot;AmountBorrowed&quot; class=&quot;form-control&quot; \/&gt;\n\t\t\t\t&lt;span asp-validation-for=&quot;AmountBorrowed&quot; class=&quot;text-danger&quot;&gt;&lt;\/span&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&lt;div class=&quot;form-group&quot;&gt;\n\t\t\t\t&lt;input type=&quot;submit&quot; value=&quot;Tee uus&quot; class=&quot;btn btn-primary&quot; \/&gt; | &lt;a asp-action=&quot;Index&quot; class=&quot;btn btn-outline-primary&quot;&gt;T\u00fchista&lt;\/a&gt;\n\t\t\t&lt;\/div&gt;\n\t\t&lt;\/form&gt;\n\t&lt;\/div&gt;\n&lt;\/div&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Delete view et kustutada raamat<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n@model TallinnaRakenduslikKolledzKaur.Models.Book\n\n@{\n\tViewData&#x5B;&quot;Title&quot;] = &quot;Kustuta \u00d5petaja&quot;;\n}\n\n&amp;lt;h1&gt;Kustuta \u00d5petaja&amp;lt;\/h1&gt;\n&amp;lt;h3&gt;\n\tKas oled kindel et tahad kustudada @Html.DisplayFor(Model =&gt; Model.Title)\n&amp;lt;\/h3&gt;\n&amp;lt;div&gt;\n\t&amp;lt;h4&gt;Raamat&amp;lt;\/h4&gt;\n\t&amp;lt;hr \/&gt;\n\t&amp;lt;dt class=&quot;col-sm-2&quot;&gt;@Html.DisplayNameFor(Model =&gt; Model.Title)&amp;lt;\/dt&gt;\n\t&amp;lt;dt class=&quot;col-sm-10&quot;&gt;@Html.DisplayFor(Model =&gt; Model.Title)&amp;lt;\/dt&gt;\n\t&amp;lt;dt class=&quot;col-sm-2&quot;&gt;@Html.DisplayNameFor(Model =&gt; Model.PageCount)&amp;lt;\/dt&gt;\n\t&amp;lt;dt class=&quot;col-sm-10&quot;&gt;@Html.DisplayFor(Model =&gt; Model.PageCount)&amp;lt;\/dt&gt;\n\t&amp;lt;dt class=&quot;col-sm-2&quot;&gt;@Html.DisplayNameFor(Model =&gt; Model.TotalStock)&amp;lt;\/dt&gt;\n\t&amp;lt;dt class=&quot;col-sm-10&quot;&gt;@Html.DisplayFor(Model =&gt; Model.TotalStock)&amp;lt;\/dt&gt;\n\t&amp;lt;dt class=&quot;col-sm-2&quot;&gt;@Html.DisplayNameFor(Model =&gt; Model.AmountBorrowed)&amp;lt;\/dt&gt;\n\t&amp;lt;dt class=&quot;col-sm-10&quot;&gt;@Html.DisplayFor(Model =&gt; Model.AmountBorrowed)&amp;lt;\/dt&gt;\n\n\t&amp;lt;form asp-action=&quot;Delete&quot;&gt;\n\t\t&amp;lt;input type=&quot;hidden&quot; asp-for=&quot;BookId&quot; \/&gt;\n\t\t&amp;lt;input type=&quot;submit&quot; value=&quot;Kustuta \u00d5petaja&quot; class=&quot;btn btn-danger&quot; \/&gt; | &amp;lt;a asp-action=&quot;Index&quot;&gt;T\u00fchista&amp;lt;\/a&gt;\n\t&amp;lt;\/form&gt;\n&amp;lt;\/div&gt;\n\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Index view et n\u00e4ha k\u00f5ik raamatud<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n@model IEnumerable&lt;TallinnaRakenduslikKolledzKaur.Models.Book&gt;\n\n@{\n\tViewData&#x5B;&quot;Title&quot;] = &quot;Raamatud&quot;;\n}\n&lt;h2&gt;Raamatud&lt;\/h2&gt;\n&lt;p&gt;\n\t&lt;a asp-action=&quot;Create&quot;&gt;Tee uus raamat&lt;\/a&gt;\n&lt;\/p&gt;\n\n&lt;table class=&quot;table&quot;&gt;\n\t&lt;thead&gt;\n\t\t&lt;tr&gt;\n\t\t\t&lt;th&gt;@Html.DisplayNameFor(Model =&gt; Model.BookId)&lt;\/th&gt;\n\t\t\t&lt;th&gt;@Html.DisplayNameFor(Model =&gt; Model.Title)&lt;\/th&gt;\n\t\t\t&lt;th&gt;@Html.DisplayNameFor(Model =&gt; Model.PageCount)&lt;\/th&gt;\n\t\t\t&lt;th&gt;@Html.DisplayNameFor(Model =&gt; Model.TotalStock)&lt;\/th&gt;\n\t\t\t&lt;th&gt;@Html.DisplayNameFor(Model =&gt; Model.AmountBorrowed)&lt;\/th&gt;\n\t\t\t&lt;th&gt;@Html.DisplayNameFor(Model =&gt; Model.CurrentStock)&lt;\/th&gt;\n\t\t\t&lt;th&gt;T\u00f6\u00f6riistad&lt;\/th&gt;\n\t\t&lt;\/tr&gt;\n\t&lt;\/thead&gt;\n\n\t&lt;tbody&gt;\n\t\t@foreach (var books in Model)\n\t\t{\n\t\t\t&lt;tr&gt;\n\t\t\t\t&lt;td&gt;@Html.DisplayFor(modelItem =&gt; books.BookId)&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;@Html.DisplayFor(modelItem =&gt; books.Title)&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;@Html.DisplayFor(modelItem =&gt; books.PageCount)&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;@Html.DisplayFor(modelItem =&gt; books.TotalStock)&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;@Html.DisplayFor(modelItem =&gt; books.AmountBorrowed)&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;@Html.DisplayFor(modelItem =&gt; books.CurrentStock)&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;\n\t\t\t\t\t&lt;a asp-action=&quot;Delete&quot; asp-route-id=&quot;@books.BookId&quot;&gt;Kustuta&lt;\/a&gt;\n\t\t\t\t\t&lt;a asp-action=&quot;Details&quot; asp-route-id=&quot;@books.BookId&quot;&gt;Details&lt;\/a&gt;\n\t\t\t\t\t&lt;a asp-action=&quot;Edit&quot; asp-route-id=&quot;@books.BookId&quot;&gt;Edit&lt;\/a&gt;\n\t\t\t\t&lt;\/td&gt;\n\t\t\t&lt;\/tr&gt;\n\t\t}\n\t&lt;\/tbody&gt;\n&lt;\/table&gt;\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Controller The SchoolContext _context tells the Controller and View what the database looks like and all the information inside it. Index lets us view all the information about Books in general using the ToListAsync() method which puts all the books into a table. Create first gives us the Create view and then when the information is given, it checks that the model is correct and if it is, adds it to the database and takes you back to the Index. It also uses SaveChangesAsync to save the information Delete deletes the given selection after checking that it exists. It first uses FirstorDefaultAsync which returns the first element of the sequence asynchronously. And uses the Lambda method to briefly show the anonymous method And then saves it to the database when it deletes the selected object. Mudel View Create View et teha uus raamat Delete view et kustutada raamat Index view et n\u00e4ha k\u00f5ik raamatud<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-43","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Books View, Controller ja Model - Kaur portfoolio \/ English<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Books View, Controller ja Model - Kaur portfoolio \/ English\" \/>\n<meta property=\"og:description\" content=\"Controller The SchoolContext _context tells the Controller and View what the database looks like and all the information inside it. Index lets us view all the information about Books in general using the ToListAsync() method which puts all the books into a table. Create first gives us the Create view and then when the information is given, it checks that the model is correct and if it is, adds it to the database and takes you back to the Index. It also uses SaveChangesAsync to save the information Delete deletes the given selection after checking that it exists. It first uses FirstorDefaultAsync which returns the first element of the sequence asynchronously. And uses the Lambda method to briefly show the anonymous method And then saves it to the database when it deletes the selected object. Mudel View Create View et teha uus raamat Delete view et kustutada raamat Index view et n\u00e4ha k\u00f5ik raamatud\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/\" \/>\n<meta property=\"og:site_name\" content=\"Kaur portfoolio \/ English\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-20T13:31:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/raamatud-view-controller-ja-mudel\\\/\",\"url\":\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/raamatud-view-controller-ja-mudel\\\/\",\"name\":\"Books View, Controller ja Model - Kaur portfoolio \\\/ English\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/#website\"},\"datePublished\":\"2025-10-08T07:55:16+00:00\",\"dateModified\":\"2025-10-20T13:31:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/raamatud-view-controller-ja-mudel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/raamatud-view-controller-ja-mudel\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/raamatud-view-controller-ja-mudel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Books View, Controller ja Model\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/#website\",\"url\":\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/\",\"name\":\"Kaur portfoolio \\\/ English\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kaurpakaste24.thkit.ee\\\/wp\\\/eng\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Books View, Controller ja Model - Kaur portfoolio \/ English","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/","og_locale":"en_US","og_type":"article","og_title":"Books View, Controller ja Model - Kaur portfoolio \/ English","og_description":"Controller The SchoolContext _context tells the Controller and View what the database looks like and all the information inside it. Index lets us view all the information about Books in general using the ToListAsync() method which puts all the books into a table. Create first gives us the Create view and then when the information is given, it checks that the model is correct and if it is, adds it to the database and takes you back to the Index. It also uses SaveChangesAsync to save the information Delete deletes the given selection after checking that it exists. It first uses FirstorDefaultAsync which returns the first element of the sequence asynchronously. And uses the Lambda method to briefly show the anonymous method And then saves it to the database when it deletes the selected object. Mudel View Create View et teha uus raamat Delete view et kustutada raamat Index view et n\u00e4ha k\u00f5ik raamatud","og_url":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/","og_site_name":"Kaur portfoolio \/ English","article_modified_time":"2025-10-20T13:31:02+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/","url":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/","name":"Books View, Controller ja Model - Kaur portfoolio \/ English","isPartOf":{"@id":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/#website"},"datePublished":"2025-10-08T07:55:16+00:00","dateModified":"2025-10-20T13:31:02+00:00","breadcrumb":{"@id":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/raamatud-view-controller-ja-mudel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/"},{"@type":"ListItem","position":2,"name":"Books View, Controller ja Model"}]},{"@type":"WebSite","@id":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/#website","url":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/","name":"Kaur portfoolio \/ English","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/wp-json\/wp\/v2\/pages\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":3,"href":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/wp-json\/wp\/v2\/pages\/43\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/wp-json\/wp\/v2\/pages\/43\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/kaurpakaste24.thkit.ee\/wp\/eng\/wp-json\/wp\/v2\/media?parent=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}