Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

PublicServerManifest

interfaz

Manifiesto público del servidor: los endpoints de API y RPC que pueden llamar los clientes, sin rutas privadas. Es la entrada de createApiClient, createRpcClient y los composables de datos.

ts
import type { PublicServerManifest } from "@meekojs/meeko/framework";

Source code src/shared/clients.ts:62

Declaración #

ts
interface PublicServerManifest {
	readonly api: readonly PublicApiEndpoint[]
	readonly rpc: readonly PublicRpcEndpoint[]
}

Example #

ts
import { createRpcClient } from "@meekojs/meeko/framework";
import type { PublicServerManifest } from "@meekojs/meeko/framework";

const manifest: PublicServerManifest = {
  api: [{ clientKey: "users", pathname: "/api/users", method: "GET" }],
  rpc: [{ id: "users.get", pathname: "/_meeko/rpc/users/get" }],
};
const rpc = createRpcClient<{ "users.get": { input: { id: string }; output: { name: string } } }>(manifest);

Propiedades #

api #

propiedad sólo lectura

readonly api: readonly PublicApiEndpoint[]

Endpoints de API.

rpc #

propiedad sólo lectura

readonly rpc: readonly PublicRpcEndpoint[]

Procedimientos RPC.

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/shared/clients.ts