RPC: ResourceFetches a resource (document, comment, redirect, …) by parsed id. One method of the Seed universal-client API: `request(key, input) -> output`. The `input` fiel

Fetches a resource (document, comment, redirect, …) by parsed id. One method of the Seed universal-client API: request(key, input) -> output. The input field types what you pass; output types what comes back.

This document describes the seed-rpc-resource type — a Seed API read-model schema (derived data the daemon computes for clients, not a signed network blob). Its formal schema is attached (the schemaDefinition in this document's metadata), so the app can show it and create values of this type.

Shape

A closed struct with these fields:

    key (required)string enum: Resource

    input (required)seed-id

    output (required)seed-resource

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime