-
Notifications
You must be signed in to change notification settings - Fork 0
please review #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #%RAML 1.0 | ||
| title: Test | ||
|
|
||
| types: | ||
| TestEntity: | ||
| type: object | ||
| properties: | ||
| id: string | ||
|
|
||
| /test-entity: | ||
| /{id}: | ||
| get: | ||
| responses: | ||
| '200': | ||
| body: | ||
| application/json: | ||
| type: TestEntity | ||
| queryParameters: | ||
| optionalParam: | ||
| type: string | ||
| required: false | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #%RAML 1.0 Overlay | ||
| title: Overlay | ||
| extends: ./base.raml | ||
|
|
||
| uses: | ||
| luvio: luvio://annotations.raml | ||
|
|
||
| (luvio.keyPrefix): 'prefix' | ||
| (luvio.ttl): 0 | ||
|
|
||
| /test-entity: | ||
| /{id}: | ||
| get: | ||
| (luvio.adapter): | ||
| name: getTestEntity | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code appears to be defining an overlay RAML file that extends a base RAML file. It includes the luvio adapter annotation and specifies a luvio key prefix and a time-to-live (ttl) value. A test-entity resource is defined with a GET method and a luvio adapter named "getTestEntity." Overall, the code seems fine, but it's worth noting that setting the ttl value to 0 might not be recommended as it could potentially lead to caching issues. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks fine overall. Here are a few suggestions for improvement:
Please note that without knowing specific requirements or objectives, it's challenging to provide an extensive review.