-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added links support to entity resource. (#1445)
* Added links support to entity resource. Links can be customized based on usecase * remove commented code * remove unused variable * comments fix * Use fully qualified URL in links * remove unused imports * include baseURL in all rest method for jsonApi * Added baseUrl support for GraphQl Request Scope * codacy fix * typo fix * remove default scope attributes * unittest for JsonApiDSL * add relation test on JSONDSL Co-authored-by: Chandrasekar Rajasekar <chandrasekar.rajasekar@oath.com>
- Loading branch information
1 parent
95db95f
commit 6ae9bd3
Showing
44 changed files
with
746 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...est-helpers/src/main/java/com/yahoo/elide/contrib/testhelpers/jsonapi/elements/Links.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright 2020, Yahoo Inc. | ||
* Licensed under the Apache License, Version 2.0 | ||
* See LICENSE file in project root for terms. | ||
*/ | ||
package com.yahoo.elide.contrib.testhelpers.jsonapi.elements; | ||
|
||
import java.util.LinkedHashMap; | ||
|
||
public class Links extends LinkedHashMap<String, Object> { | ||
/** | ||
* Instantiates a new Attributes. | ||
* | ||
* @param attributes the attributes | ||
*/ | ||
public Links(Attribute... attributes) { | ||
for (Attribute attribute : attributes) { | ||
this.put(attribute.key, attribute.value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.