Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Issue getting query parameters from resourceType #684

Open
juanchib opened this issue Mar 5, 2020 · 1 comment
Open

Issue getting query parameters from resourceType #684

juanchib opened this issue Mar 5, 2020 · 1 comment

Comments

@juanchib
Copy link
Contributor

juanchib commented Mar 5, 2020

Given this raml

#%RAML 1.0
title: test-date-spec
version: v1
baseUri: http://localhost:8081

resourceTypes:
  read:
    get:
    
traits:
  searchable:
    usage: Apply this trait to resources which supports datetime range searching
    queryParameters:
      dateFrom:
        type: date-only
        example: "2017-10-02"
        required: false
      dateTo:
        type: date-only
        example: "2018-10-02"
        required: false

/testuri:
  is: [searchable]
  type: read

Is not possible to get the query parameters from the method, I've added a PR with a test #683

@jpbelang
Copy link
Collaborator

Looking into this tonight.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants