@@ -0,0 +1,746 @@
+package com.serg.config.rest;%0A%0Aimport com.serg.entities.Author;%0Aimport com.serg.entities.Course;%0Aimport com.serg.entities.User;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.data.rest.core.config.RepositoryRestConfiguration;%0Aimport org.springframework.data.rest.webmvc.config.RepositoryRestConfigurerAdapter;%0A%0A@Configuration%0Apublic class RestMvcConfig extends RepositoryRestConfigurerAdapter %7B%0A    public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) %7B%0A        config.exposeIdsFor(Author.class);%0A        config.exposeIdsFor(Course.class);%0A        config.exposeIdsFor(User.class);%0A        config.setBasePath(%22/api%22);%0A        config.setReturnBodyForPutAndPost(true);%0A    %7D%0A%7D

add rest config