https://slingdata.io logo
Hi, I need to store some values on env
# sling-help
m
Hi, I need to store some values on env level, because its based on connection info. I dont sure that it shold be in the secrets section.. anyway. How can I pass this values to the state of every endpoint or defaults?
f
hey @marikt94 yes you can, just add
state
like `secrets`:
Copy code
connections:
  my_api:
    type: api
    spec: file://my_spec.yaml
    secrets:
       api_key: xxxxxx
    state:
       some_key: some_value
it will pass into all endpoints' state
m
thanks! I will test it