Apache CouchDB · JSON Structure

Apache Couchdb Session Info Structure

Current session information

Type: object Properties: 3
ApacheDatabaseDocument StoreJSONNoSQLOpen SourceReplicationREST

SessionInfo is a JSON Structure definition published by Apache CouchDB, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

ok userCtx info

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-couchdb/refs/heads/main/json-structure/apache-couchdb-session-info-structure.json",
  "name": "SessionInfo",
  "description": "Current session information",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "example": true
    },
    "userCtx": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "example": "admin"
        },
        "roles": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "example": [
            "_admin"
          ]
        }
      }
    },
    "info": {
      "type": "object",
      "properties": {
        "authentication_handlers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "example": [
            "cookie",
            "default"
          ]
        }
      }
    }
  }
}