package com.justjournal.config;

import com.justjournal.model.*;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.config.RepositoryRestConfigurerAdapter;

/**
 * Expose ids for some classes
 *
 * @author Lucas Holt
 */
@Configuration
public class JustJournalRepositoryRestConfiguration extends RepositoryRestConfigurerAdapter {

    @Override
    public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {

        config.exposeIdsFor(Comment.class, Entry.class, Mood.class, Location.class, Security.class);
    }
}
@@ -660,16 +660,29 @@
 ty.class
+, Style.class
 );%0A    %7D

send ids