From b207983f06fbc5f0cf69dc2aa3a11ce26702be66 Mon Sep 17 00:00:00 2001 From: Patrick McElhaney Date: Thu, 4 Jul 2024 16:39:48 -0400 Subject: [PATCH] a couple of minor docs fixes --- docs/usage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index b97d563b..3ad1deb2 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -4,7 +4,7 @@ Counterfact is three complimentary tools in one: - a code generator that converts [OpenAPI](https://support.smartbear.com/swaggerhub/docs/tutorials/openapi-3-tutorial.html) to [TypeScript](https://www.typescriptlang.org/) - a fast and flexible mock server that's optimized around front end dev workflows -- a JavaScript REPL for accessing to the server's internal state at runtime +- a JavaScript REPL for accessing the server's internal state at runtime ## Hello World Pet Store 👋 @@ -153,7 +153,7 @@ The `$.context` object contains in-memory state and business logic, allowing you ```ts copy // pet.ts export const POST: HTTP_POST = ($) => { - return $.response.json($.context.addPet($.body)); + return $.response[200].json($.context.addPet($.body)); }; ```