{"id":37611,"date":"2024-11-01T09:58:58","date_gmt":"2024-11-01T09:58:58","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=37611"},"modified":"2024-11-01T11:02:01","modified_gmt":"2024-11-01T11:02:01","slug":"uwp-development-creating-models","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/37611\/","title":{"rendered":"UWP Development, Creating Models"},"content":{"rendered":"<p>In recent years, the Universal Windows Platform (UWP) has played a significant role in providing a consistent user experience across various devices. One of the key elements of UWP development is creating an application&#8217;s data model. The data model defines how data is structured and managed within the application, clarifying the distinction between data and UI by applying the MVVM (Model-View-ViewModel) pattern. In this article, we will explore in detail how to structure a data model in a UWP application.<\/p>\n<h2>1. Understanding UWP and the MVVM Pattern<\/h2>\n<p>UWP is a platform for developing apps that can run on various Windows devices. MS&#8217;s MVVM pattern is useful for simplifying management and increasing code reusability. The MVVM pattern consists of three elements: <\/p>\n<ul>\n<li><strong>Model:<\/strong> Defines the data structure of the application. Manages interactions with the database and constraints on the data.<\/li>\n<li><strong>View:<\/strong> Comprises the elements of the user interface (UI) that interact with the user. In UWP, XAML is used to define the UI.<\/li>\n<li><strong>ViewModel:<\/strong> Manages data binding between the Model and View. The ViewModel acts as a bridge between the UI and data, managing the state of the UI.<\/li>\n<\/ul>\n<h2>2. Designing the Data Model<\/h2>\n<p>When designing a data model, you need to consider the structure of the required data and how to implement it in code. For instance, let\u2019s assume we are creating a simple Todo list application. Each Todo item should have a title and a completion status.<\/p>\n<h3>2.1. Defining the Todo Model Class<\/h3>\n<pre><code class=\"language-csharp\">using System;\nusing System.ComponentModel;\n\nnamespace TodoApp.Models\n{\n    public class TodoItem : INotifyPropertyChanged\n    {\n        private string title;\n        private bool isCompleted;\n\n        public string Title\n        {\n            get { return title; }\n            set\n            {\n                if (title != value)\n                {\n                    title = value;\n                    OnPropertyChanged(\"Title\");\n                }\n            }\n        }\n\n        public bool IsCompleted\n        {\n            get { return isCompleted; }\n            set\n            {\n                if (isCompleted != value)\n                {\n                    isCompleted = value;\n                    OnPropertyChanged(\"IsCompleted\");\n                }\n            }\n        }\n\n        public event PropertyChangedEventHandler PropertyChanged;\n\n        protected virtual void OnPropertyChanged(string propertyName)\n        {\n            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));\n        }\n    }\n}<\/code><\/pre>\n<p>In the above code, we defined the <code>TodoItem<\/code> class. This class implements the <code>INotifyPropertyChanged<\/code> interface to notify the UI when a property changes. This enables data binding between the ViewModel and UI in the MVVM pattern.<\/p>\n<h2>3. Implementing the TodoListViewModel Class<\/h2>\n<p>Now it&#8217;s time to implement the ViewModel to manage the TodoItem model.<\/p>\n<h3>3.1. Defining the TodoListViewModel Class<\/h3>\n<pre><code class=\"language-csharp\">using System.Collections.ObjectModel;\n\nnamespace TodoApp.ViewModels\n{\n    public class TodoListViewModel : INotifyPropertyChanged\n    {\n        private ObservableCollection&lt;TodoItem&gt; todoItems;\n        private TodoItem selectedTodo;\n\n        public ObservableCollection&lt;TodoItem&gt; TodoItems\n        {\n            get { return todoItems; }\n            set\n            {\n                if (todoItems != value)\n                {\n                    todoItems = value;\n                    OnPropertyChanged(\"TodoItems\");\n                }\n            }\n        }\n\n        public TodoItem SelectedTodo\n        {\n            get { return selectedTodo; }\n            set\n            {\n                if (selectedTodo != value)\n                {\n                    selectedTodo = value;\n                    OnPropertyChanged(\"SelectedTodo\");\n                }\n            }\n        }\n\n        public TodoListViewModel()\n        {\n            TodoItems = new ObservableCollection&lt;TodoItem&gt;();\n        }\n\n        public void AddTodo(string title)\n        {\n            TodoItems.Add(new TodoItem { Title = title, IsCompleted = false });\n        }\n\n        public void RemoveTodo(TodoItem todo)\n        {\n            if (TodoItems.Contains(todo))\n            {\n                TodoItems.Remove(todo);\n            }\n        }\n\n        public event PropertyChangedEventHandler PropertyChanged;\n\n        protected virtual void OnPropertyChanged(string propertyName)\n        {\n            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));\n        }\n    }\n}<\/code><\/pre>\n<p>In the code above, <code>TodoListViewModel<\/code> uses <code>ObservableCollection<\/code> to manage the list of Todo items. It also defines methods for adding and removing Todo items.<\/p>\n<h2>4. Building the UI with XAML<\/h2>\n<p>Now, let&#8217;s implement the user interface based on the model and ViewModel we created. In UWP, you can use XAML to build the UI.<\/p>\n<h3>4.1. Setting up MainPage.xaml<\/h3>\n<pre><code class=\"language-xaml\">&lt;Page\n    x:Class=\"TodoApp.Views.MainPage\"\n    xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\n    xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\n    xmlns:local=\"using:TodoApp.ViewModels\"\n    DataContext=\"{Binding TodoListViewModel, Source={StaticResource Locator}}\"&gt;\n\n    &lt;StackPanel Margin=\"20\"&gt;\n        &lt;TextBox x:Name=\"TodoInput\" Placeholder=\"Enter a new todo item\" \/&gt;\n        &lt;Button Content=\"Add Todo\" Click=\"AddTodo_Click\" \/&gt;\n        &lt;ListView ItemsSource=\"{Binding TodoItems}\" SelectedItem=\"{Binding SelectedTodo}\" &gt;\n            &lt;ListView.ItemTemplate&gt;\n                &lt;DataTemplate&gt;\n                    &lt;StackPanel Orientation=\"Horizontal\"&gt;\n                        &lt;CheckBox IsChecked=\"{Binding IsCompleted}\" \/&gt;\n                        &lt;TextBlock Text=\"{Binding Title}\" \/&gt;\n                    &lt;\/StackPanel&gt;\n                &lt;\/DataTemplate&gt;\n            &lt;\/ListView.ItemTemplate&gt;\n        &lt;\/ListView&gt;\n    &lt;\/StackPanel&gt;\n<\/code><\/pre>\n<p>The above XAML code allows users to add Todo items through a text box and button while displaying the list in a ListView. Each item has a checkbox to indicate its completion status.<\/p>\n<h2>5. Handling Events and Implementing Functionality<\/h2>\n<p>Now we will connect the UI and ViewModel, handling the button click event so that users can add Todo items.<\/p>\n<h3>5.1. Implementing the Event Handler in MainPage.xaml.cs<\/h3>\n<pre><code class=\"language-csharp\">using Windows.UI.Xaml;\nusing Windows.UI.Xaml.Controls;\n\nnamespace TodoApp.Views\n{\n    public sealed partial class MainPage : Page\n    {\n        public MainPage()\n        {\n            this.InitializeComponent();\n        }\n\n        private void AddTodo_Click(object sender, RoutedEventArgs e)\n        {\n            var viewModel = (TodoListViewModel)this.DataContext;\n            string title = TodoInput.Text;\n\n            if (!string.IsNullOrWhiteSpace(title))\n            {\n                viewModel.AddTodo(title);\n                TodoInput.Text = string.Empty; \/\/ Clear the input field\n            }\n        }\n    }\n}<\/code><\/pre>\n<p>In the C# code above, we implemented the logic to add a Todo item when the button is clicked. After entering the title in the input field and clicking the button, the new Todo item is added to the ListView.<\/p>\n<h2>6. Summary and Optimization<\/h2>\n<p>The process of creating models in UWP applications is essential for structuring and managing data. The MVVM pattern allows for efficient interaction while maintaining a separation between data and UI. In this example, we implemented a simple Todo list application, which provided a deeper understanding of the structure and operation of UWP applications.<\/p>\n<p>As we develop more complex applications in the future, it will be necessary to evolve and optimize the model and ViewModel. The most important thing is to create a user-friendly and intuitive UI, keeping in mind the user experience.<\/p>\n<h2>7. Additional Resources<\/h2>\n<p>If you want more in-depth information, please refer to the links below:<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/uwp\/get-started\/\">Getting Started with UWP<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/desktop\/wpf\/mvvm\/?view=dotnet-plat-ext-6.0\">MVVM Pattern<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/uwp\/design\/controls-and-patterns\/\">UWP Controls and Patterns<\/a><\/li>\n<\/ul>\n<p>Through this article, I hope you have established a foundation for UWP development and have a clear understanding of how to design and implement a data model.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In recent years, the Universal Windows Platform (UWP) has played a significant role in providing a consistent user experience across various devices. One of the key elements of UWP development is creating an application&#8217;s data model. The data model defines how data is structured and managed within the application, clarifying the distinction between data and &hellip; <a href=\"https:\/\/atmokpo.com\/w\/37611\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;UWP Development, Creating Models&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[115],"tags":[],"class_list":["post-37611","post","type-post","status-publish","format-standard","hentry","category-uwp-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>UWP Development, Creating Models - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/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:\/\/atmokpo.com\/w\/37611\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UWP Development, Creating Models - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"In recent years, the Universal Windows Platform (UWP) has played a significant role in providing a consistent user experience across various devices. One of the key elements of UWP development is creating an application&#8217;s data model. The data model defines how data is structured and managed within the application, clarifying the distinction between data and &hellip; \ub354 \ubcf4\uae30 &quot;UWP Development, Creating Models&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/37611\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T09:58:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-01T11:02:01+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/37611\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/37611\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"UWP Development, Creating Models\",\"datePublished\":\"2024-11-01T09:58:58+00:00\",\"dateModified\":\"2024-11-01T11:02:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/37611\/\"},\"wordCount\":610,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"UWP Programming\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/37611\/\",\"url\":\"https:\/\/atmokpo.com\/w\/37611\/\",\"name\":\"UWP Development, Creating Models - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T09:58:58+00:00\",\"dateModified\":\"2024-11-01T11:02:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/37611\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/37611\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/37611\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UWP Development, Creating Models\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UWP Development, Creating Models - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","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:\/\/atmokpo.com\/w\/37611\/","og_locale":"ko_KR","og_type":"article","og_title":"UWP Development, Creating Models - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"In recent years, the Universal Windows Platform (UWP) has played a significant role in providing a consistent user experience across various devices. One of the key elements of UWP development is creating an application&#8217;s data model. The data model defines how data is structured and managed within the application, clarifying the distinction between data and &hellip; \ub354 \ubcf4\uae30 \"UWP Development, Creating Models\"","og_url":"https:\/\/atmokpo.com\/w\/37611\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T09:58:58+00:00","article_modified_time":"2024-11-01T11:02:01+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"5\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/37611\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/37611\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"UWP Development, Creating Models","datePublished":"2024-11-01T09:58:58+00:00","dateModified":"2024-11-01T11:02:01+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/37611\/"},"wordCount":610,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["UWP Programming"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/37611\/","url":"https:\/\/atmokpo.com\/w\/37611\/","name":"UWP Development, Creating Models - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T09:58:58+00:00","dateModified":"2024-11-01T11:02:01+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/37611\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/37611\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/37611\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"UWP Development, Creating Models"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/37611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=37611"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/37611\/revisions"}],"predecessor-version":[{"id":37612,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/37611\/revisions\/37612"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=37611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=37611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=37611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}