// Path: spanners-users/src/main/java/org/dontpanic/spanners/users/data/User.java
// @Entity
// public class User {
// 
//     @Id
//     private String username;
//     private String password;
//     private Boolean enabled;
// 
//     public User() {
//     }
// 
//     public User(String username, String password, Boolean enabled) {
//         this.username = username;
//         this.password = password;
//         this.enabled = enabled;
//     }
// 
//     public String getUsername() {
//         return username;
//     }
// 
//     public void setUsername(String username) {
//         this.username = username;
//     }
// 
//     public String getPassword() {
//         return password;
//     }
// 
//     public void setPassword(String password) {
//         this.password = password;
//     }
// 
//     public Boolean getEnabled() {
//         return enabled;
//     }
// 
//     public void setEnabled(Boolean enabled) {
//         this.enabled = enabled;
//     }
// }


import org.dontpanic.spanners.users.data.User;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.config.RepositoryRestConfigurerAdapter;
package org.dontpanic.spanners.users.config;


/**
 * Custom configuration for Spring Data REST
 * Created by stevie on 27/08/16.
 */
@Configuration
@EnableDiscoveryClient
public class RestConfig extends RepositoryRestConfigurerAdapter {

    @Override
    public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
// Path: spanners-users/src/main/java/org/dontpanic/spanners/users/data/User.java
// @Entity
// public class User {
// 
//     @Id
//     private String username;
//     private String password;
//     private Boolean enabled;
// 
//     public User() {
//     }
// 
//     public User(String username, String password, Boolean enabled) {
//         this.username = username;
//         this.password = password;
//         this.enabled = enabled;
//     }
// 
//     public String getUsername() {
//         return username;
//     }
// 
//     public void setUsername(String username) {
//         this.username = username;
//     }
// 
//     public String getPassword() {
//         return password;
//     }
// 
//     public void setPassword(String password) {
//         this.password = password;
//     }
// 
//     public Boolean getEnabled() {
//         return enabled;
//     }
// 
//     public void setEnabled(Boolean enabled) {
//         this.enabled = enabled;
//     }
// }


// Path: spanners-users/src/main/java/org/dontpanic/spanners/users/config/RestConfig.java
import org.dontpanic.spanners.users.data.User;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.config.RepositoryRestConfigurerAdapter;

package org.dontpanic.spanners.users.config;


/**
 * Custom configuration for Spring Data REST
 * Created by stevie on 27/08/16.
 */
@Configuration
@EnableDiscoveryClient
public class RestConfig extends RepositoryRestConfigurerAdapter {

    @Override
    public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
        config.exposeIdsFor(User.class);