Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Config for medicmobile

Jobs that use the medicmobile adaptor may require authentication. A "credential" for the medicmobile adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"server": "https://standard.app.medicmobile.org",
"username": "admin",
"password": "@super(!)Secret",
"db": "medic"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"server": {
"title": "Server URL",
"type": "string",
"description": "Medic's CouchDB api URL",
"format": "uri",
"minLength": 1,
"examples": [
"https://standard.app.medicmobile.org"
]
},
"db": {
"title": "Database",
"type": "string",
"description": "Database name",
"minLength": 1,
"examples": [
"medic"
]
},
"username": {
"title": "Username",
"type": "string",
"description": "Medic instance username",
"minLength": 1,
"examples": [
"admin"
]
},
"password": {
"title": "Password",
"type": "string",
"description": "Medic instance password",
"writeOnly": true,
"minLength": 1,
"examples": [
"@super(!)Secret"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"server",
"username",
"password",
"db"
]
}