Skip to content
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

Read and Identity Enums #80

Closed
Tracked by #103
olliescase opened this issue Aug 23, 2022 · 2 comments
Closed
Tracked by #103

Read and Identity Enums #80

olliescase opened this issue Aug 23, 2022 · 2 comments

Comments

@olliescase
Copy link

olliescase commented Aug 23, 2022

Enums are allowed as a query parameter - it would be great if it could read this and identify the possible routes based on this.

Moreover, generally identifying the data type of the route param would be great.

For example; for uuids:
/users/{record} => record: string

For autonumber ids:
/users/{record} => record: integer

Where model is an enum, record is string:
/{model}/{record} => model: enum [users, projects, tasks, quotes]

Probably displayed as a table, such as:

Query Params:

Field    | Type   | Data
===================================
model    | enum   | users, projects, tasks, quotes
-----------------------------------
record   | string |
-----------------------------------
@kevincobain2000
Copy link
Member

Could add

@kevincobain2000
Copy link
Member

Hmm I tried but this can't be added

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

No branches or pull requests

2 participants