laravel-request-docs icon indicating copy to clipboard operation
laravel-request-docs copied to clipboard

Read and Identity Enums

Open olliescase opened this issue 3 years ago • 1 comments

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

olliescase avatar Aug 23 '22 09:08 olliescase

Could add

kevincobain2000 avatar Aug 23 '22 10:08 kevincobain2000

Hmm I tried but this can't be added

kevincobain2000 avatar Feb 18 '23 14:02 kevincobain2000