-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
npx primate client <open-api-definition.json> [--backend=ts]
-> should generate a typed client for the given backend
api perhaps something like
given
openapi: 3.0.3
info:
title: User API
version: 1.0.0
paths:
/users/{id}:
post:
summary: Update user
parameters:
- name: id
in: path
required: true
schema:
type: integer
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
email:
type: string
responses:
'200':
description: User updated
content:
application/json:
schema:
type: object
properties:
id:
type: integer
name:
type: string
email:
type: stringclient(/* oauth creds */).users(id: number).post(/* headers, query params */) -> { id: number; name: string; email: string }
open questions:
- client size
- is a fluent API client tree-shakeable?
Metadata
Metadata
Assignees
Labels
No labels