Skip to content

Read and Identity Enums #80

Closed
Closed
@olliescase

Description

@olliescase

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 |
-----------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions