Added an optional field for yaml files- search_index- this allows you to specify which field in your mock data you want to use as an index when CRUD'ing.
Test Steps
[x] edit schemas/systems.yaml - change search_index from "id" to "name"
nice!
so i can use something like http://localhost:8080/systems/gypsum instead of http://localhost:8080/systems/5f78207d-5099-4d17-8323-9bce55370b1f right?
Description
search_index
- this allows you to specify which field in your mock data you want to use as an index when CRUD'ing.Test Steps
schemas/systems.yaml
- changesearch_index
from"id"
to"name"
docker build -t covalent-data .
docker run -p 8080:8080 --name covalent-data covalent-data
(docker stop covalent-data
to stop)GET
tohttp://localhost:8080/systems
GET
tohttp://localhost:8080/systems/{name}