
com.yahoo.elide.jsonapi.links.JsonApiLinks Maven / Gradle / Ivy
/*
* Copyright 2020, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.jsonapi.links;
import com.yahoo.elide.core.PersistentResource;
import java.util.Map;
public interface JsonApiLinks {
/**
* Links to be used in the Response Entity.
* @param resource
* @return
*/
Map getResourceLevelLinks(PersistentResource resource);
/**
* Links to be used in Relationships of the Response Entity.
* @param resource
* @return
*/
Map getRelationshipLinks(PersistentResource resource, String field);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy