{"id":33161,"date":"2024-11-01T09:14:13","date_gmt":"2024-11-01T09:14:13","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=33161"},"modified":"2024-11-01T11:28:40","modified_gmt":"2024-11-01T11:28:40","slug":"spring-boot-backend-development-course-trying-out-methods-provided-by-spring-data-jpa","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/33161\/","title":{"rendered":"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA"},"content":{"rendered":"<div class=\"post\">\n<p>Hello! In this tutorial, we will cover backend development using Spring Boot and Spring Data JPA.<br \/>\n    Spring Data JPA is a powerful and flexible framework for object-relational mapping (ORM),<br \/>\n    making interactions with databases easier. In particular, Spring Data JPA provides various methods<br \/>\n    to help developers perform CRUD (Create, Read, Update, Delete) operations more easily.<\/p>\n<h2>1. What is Spring Data JPA?<\/h2>\n<p>Spring Data JPA is a library for managing the persistence of data based on the Spring Framework and JPA (Java Persistence API).<br \/>\n    JPA allows Java objects to be mapped to database tables, enabling the management of database data as Java objects.<br \/>\n    This makes interactions with the database more intuitive and straightforward.<\/p>\n<h2>2. Setting Up a Spring Boot Project<\/h2>\n<p>The process of setting up a project using Spring Boot is very simple. You can select the required dependencies through<br \/>\n    <code>start.spring.io<\/code> and download a ZIP file to create your project. In this example, we will add Spring Web,<br \/>\n    Spring Data JPA, and H2 Database.<\/p>\n<h3>2.1 Gradle or Maven Configuration<\/h3>\n<p>Add the following dependencies to the <code>build.gradle<\/code> or <code>pom.xml<\/code> file of the downloaded project.<\/p>\n<pre><code>dependencies {\n        implementation 'org.springframework.boot:spring-boot-starter-data-jpa'\n        implementation 'org.springframework.boot:spring-boot-starter-web'\n        runtimeOnly 'com.h2database:h2'\n    }<\/code><\/pre>\n<h2>3. Creating an Entity Class<\/h2>\n<p>To use Spring Data JPA, you first need to define an Entity class that will be mapped to a database table.<br \/>\n    For example, let&#8217;s create a simple `User` class to store user information.<\/p>\n<pre><code>import javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.GenerationType;\nimport javax.persistence.Id;\n\n@Entity\npublic class User {\n    @Id\n    @GeneratedValue(strategy = GenerationType.AUTO)\n    private Long id;\n    private String username;\n    private String email;\n\n    \/\/ Getters and Setters\n}<\/code><\/pre>\n<h2>4. Implementing the Repository Interface<\/h2>\n<p>Spring Data JPA introduces the concept of Repository to simplify database access.<br \/>\n    Create a Repository interface and define the necessary methods.<\/p>\n<pre><code>import org.springframework.data.jpa.repository.JpaRepository;\n\npublic interface UserRepository extends JpaRepository<User, Long> {\n    User findByUsername(String username);\n}<\/code><\/pre>\n<h2>5. Creating a Service Class<\/h2>\n<p>The service class will implement the actual business logic and perform CRUD operations by injecting the Repository.<br \/>\n    For example, let&#8217;s create the `UserService` class.<\/p>\n<pre><code>import org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport java.util.List;\n\n@Service\npublic class UserService {\n    private final UserRepository userRepository;\n\n    @Autowired\n    public UserService(UserRepository userRepository) {\n        this.userRepository = userRepository;\n    }\n\n    public User save(User user) {\n        return userRepository.save(user);\n    }\n\n    public List<User> findAll() {\n        return userRepository.findAll();\n    }\n\n    public User findById(Long id) {\n        return userRepository.findById(id).orElse(null);\n    }\n\n    public void delete(Long id) {\n        userRepository.deleteById(id);\n    }\n}<\/code><\/pre>\n<h2>6. Creating a Controller Class<\/h2>\n<p>The controller class handles HTTP requests and manages interactions with the client. To implement a RESTful API,<br \/>\n    we will write the `UserController` class.<\/p>\n<pre><code>import org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.*;\n\nimport java.util.List;\n\n@RestController\n@RequestMapping(\"\/api\/users\")\npublic class UserController {\n    private final UserService userService;\n\n    @Autowired\n    public UserController(UserService userService) {\n        this.userService = userService;\n    }\n\n    @PostMapping\n    public User createUser(@RequestBody User user) {\n        return userService.save(user);\n    }\n\n    @GetMapping\n    public List<User> getAllUsers() {\n        return userService.findAll();\n    }\n\n    @GetMapping(\"\/{id}\")\n    public ResponseEntity<User> getUserById(@PathVariable Long id) {\n        User user = userService.findById(id);\n        return user != null ? ResponseEntity.ok(user) : ResponseEntity.notFound().build();\n    }\n\n    @DeleteMapping(\"\/{id}\")\n    public ResponseEntity<Void> deleteUser(@PathVariable Long id) {\n        userService.delete(id);\n        return ResponseEntity.noContent().build();\n    }\n}<\/code><\/pre>\n<h2>7. Using Methods Provided by Spring Data JPA<\/h2>\n<p>Spring Data JPA helps you handle many tasks easily through its built-in methods.<br \/>\n    Here, we will look at some key methods.<\/p>\n<h3>7.1 findAll<\/h3>\n<p>The <code>findAll()<\/code> method is used to retrieve all records from the database.<br \/>\n    This method returns all entities in the form of a <code>List<\/code>.<\/p>\n<h3>7.2 findById<\/h3>\n<p>The <code>findById(Long id)<\/code> method retrieves the entity corresponding to a specific ID.<br \/>\n    The return value is of type <code>Optional<\/code>, which returns <code>Optional.empty()<\/code> if there is no result.<\/p>\n<h3>7.3 save<\/h3>\n<p>The <code>save(User user)<\/code> method saves a new entity or updates an existing entity.<br \/>\n    This method helps implement business logic simply.<\/p>\n<h3>7.4 deleteById<\/h3>\n<p>The <code>deleteById(Long id)<\/code> method deletes the entity corresponding to the given ID.<br \/>\n    The specified entity is deleted from the database.<\/p>\n<h3>7.5 Query Methods<\/h3>\n<p>Spring Data JPA allows you to define complex queries using query methods. For example, the<br \/>\n    <code>findByUsername(String username)<\/code> method retrieves user information that matches the entered username.<br \/>\n    Query Methods automatically generate queries based on the method name.<\/p>\n<h2>8. Using JPA Queries<\/h2>\n<p>Spring Data JPA supports JPQL (Java Persistence Query Language) and Native Query.<br \/>\n    In some cases, complex queries may be necessary, and in such cases, queries can be written as follows.<\/p>\n<h3>8.1 Using JPQL<\/h3>\n<pre><code>@Query(\"SELECT u FROM User u WHERE u.username = ?1\")\n    User findByUsername(String username);<\/code><\/pre>\n<h3>8.2 Using Native Query<\/h3>\n<pre><code>@Query(value = \"SELECT * FROM users WHERE username = ?1\", nativeQuery = true)\n    User findByUsernameNative(String username);<\/code><\/pre>\n<h2>9. Data Validation and Exception Handling<\/h2>\n<p>Data integrity can be maintained through validation. For this, Bean Validation can be used.<br \/>\n    In Spring, you can conveniently handle validation of request body data using the <code>@Valid<\/code> annotation.<\/p>\n<pre><code>import javax.validation.Valid;\n\n@PostMapping\npublic User createUser(@Valid @RequestBody User user) {\n    return userService.save(user);\n}<\/code><\/pre>\n<h2>10. Writing Test Code<\/h2>\n<p>Every application should be validated through unit tests and integration tests.<br \/>\n    In Spring Boot, it is easy to write test code.<\/p>\n<pre><code>import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;\nimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;\nimport org.springframework.test.web.servlet.MockMvc;\n\n@WebMvcTest(UserController.class)\npublic class UserControllerTest {\n    @Autowired\n    private MockMvc mockMvc;\n\n    @Test\n    public void createUser_ShouldReturnUser() throws Exception {\n        String newUserJson = \"{\\\"username\\\":\\\"testuser\\\",\\\"email\\\":\\\"test@example.com\\\"}\";\n\n        mockMvc.perform(post(\"\/api\/users\")\n                .contentType(MediaType.APPLICATION_JSON)\n                .content(newUserJson))\n                .andExpect(status().isOk())\n                .andExpect(jsonPath(\"$.username\").value(\"testuser\"));\n    }\n}<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>In this tutorial, we learned about backend development using Spring Boot and the methods provided by Spring Data JPA.<br \/>\n    Spring Data JPA is a powerful tool that simplifies interactions with the database.<br \/>\n    We found that rapid and efficient backend development is possible with various methods and querying capabilities.<br \/>\n    We hope you will continue to utilize Spring Boot for development through diverse functions and use cases.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hello! In this tutorial, we will cover backend development using Spring Boot and Spring Data JPA. Spring Data JPA is a powerful and flexible framework for object-relational mapping (ORM), making interactions with databases easier. In particular, Spring Data JPA provides various methods to help developers perform CRUD (Create, Read, Update, Delete) operations more easily. 1. &hellip; <a href=\"https:\/\/atmokpo.com\/w\/33161\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA&#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":[131],"tags":[],"class_list":["post-33161","post","type-post","status-publish","format-standard","hentry","category-spring-boot-backend-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA - \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\/33161\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Hello! In this tutorial, we will cover backend development using Spring Boot and Spring Data JPA. Spring Data JPA is a powerful and flexible framework for object-relational mapping (ORM), making interactions with databases easier. In particular, Spring Data JPA provides various methods to help developers perform CRUD (Create, Read, Update, Delete) operations more easily. 1. &hellip; \ub354 \ubcf4\uae30 &quot;Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/33161\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T09:14:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-01T11:28:40+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\/33161\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/33161\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA\",\"datePublished\":\"2024-11-01T09:14:13+00:00\",\"dateModified\":\"2024-11-01T11:28:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/33161\/\"},\"wordCount\":616,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Spring Boot backend development\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/33161\/\",\"url\":\"https:\/\/atmokpo.com\/w\/33161\/\",\"name\":\"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T09:14:13+00:00\",\"dateModified\":\"2024-11-01T11:28:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/33161\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/33161\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/33161\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA\"}]},{\"@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":"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA - \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\/33161\/","og_locale":"ko_KR","og_type":"article","og_title":"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Hello! In this tutorial, we will cover backend development using Spring Boot and Spring Data JPA. Spring Data JPA is a powerful and flexible framework for object-relational mapping (ORM), making interactions with databases easier. In particular, Spring Data JPA provides various methods to help developers perform CRUD (Create, Read, Update, Delete) operations more easily. 1. &hellip; \ub354 \ubcf4\uae30 \"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA\"","og_url":"https:\/\/atmokpo.com\/w\/33161\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T09:14:13+00:00","article_modified_time":"2024-11-01T11:28:40+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\/33161\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/33161\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA","datePublished":"2024-11-01T09:14:13+00:00","dateModified":"2024-11-01T11:28:40+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/33161\/"},"wordCount":616,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Spring Boot backend development"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/33161\/","url":"https:\/\/atmokpo.com\/w\/33161\/","name":"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T09:14:13+00:00","dateModified":"2024-11-01T11:28:40+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/33161\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/33161\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/33161\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Spring Boot Backend Development Course, Trying Out Methods Provided by Spring Data JPA"}]},{"@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\/33161","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=33161"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/33161\/revisions"}],"predecessor-version":[{"id":33162,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/33161\/revisions\/33162"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=33161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=33161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=33161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}