Skip to content

Adding drop down APIs for static models #53

@shreesh1993

Description

@shreesh1993

Since we have tables which are static such as country, state, district, village etc. Those table are generally used as drop down in our applications. So having APIs for such model will help.
For example,
Suppose we call /states API, in response, we will get state data along with some related data( for states we can get district data unnecessarily ). Which makes API lengthy and we don't even use fields other than id and name.

For such APIs we can have separate API which will return array of below object:
{ id: <some-id>, name: <some-name> }

This API will be good to have because we don't need to modify/override original API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions