/Knowledge/sources/honojs__hono/llms-full/rpc-path-parameters-multiple-parameters--83b850d0ebd3.md

RPC: Path parameters > Multiple parameters - hono-docs

RPC: Path parameters Multiple parameters Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt multiple para...

RPC: Path parameters > Multiple parameters

Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#multiple-parameters

Summary

Handle routes with multiple parameters. ```ts const route = app.get( '/posts/:postId/:authorId', zValidator( 'query', z.object({ page: z.string().optional(), }) ), (c) => { // ... return c.json({ title: 'Night', body: 'Time to sleep', })...

Content

Handle routes with multiple parameters.

const route = app.get(
  '/posts/:postId/:authorId',
  zValidator(
    'query',
    z.object({
      page: z.string().optional(),
    })
  ),
  (c) => {
    // ...
    return c.json({
      title: 'Night',
      body: 'Time to sleep',
    })
  }
)

Add multiple [''] to specify params in path.

const res = await client.posts[':postId'][':authorId'].$get({
  param: {
    postId: '123',
    authorId: '456',
  },
  query: {},
})

Metadata

{
  "chunk_index": 0,
  "citation": "https://hono.dev/llms-full.txt#multiple-parameters",
  "coverage_role": "overview",
  "qualified_title": "Hono / llms-full / RPC > Path parameters > Multiple parameters",
  "retrieved_at": "2026-07-02T05:51:01Z",
  "section_index": 54,
  "source_id": "/honojs/hono",
  "source_type": "llms_full",
  "target_label": "llms-full",
  "title": "RPC: Path parameters > Multiple parameters",
  "upstream_url": "https://hono.dev/llms-full.txt",
  "version": "2026"
}
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Knowledge/sources/honojs__hono/llms-full/rpc-path-parameters-multiple-parameters--83b850d0ebd3.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.