Meta tags:
description= OpenAPI is a standard for documenting REST APIs;
Headings (most frequently used words):
what, is, an, openapi, specification, best, practices, set, up, your, fern, folder, project, structure, overlays, documentation, api, definitions, resources, company, example, of, referencing, schemas,
Text of the page (most frequently used words):
openapi (21), your (20), type (18), fern (14), pet (14), the (13), #schemas (13), names (13), and (12), #specification (12), overview (12), api (11), json (9), components (9), description (8), reference (7), this (7), yml (7), for (7), string (7), ref (7), server (7), authentication (7), page (6), name (6), example (6), definitions (5), project (5), structure (5), definition (5), schema (5), endpoints (5), availability (5), sync (5), servers (5), overrides (5), documentation (4), status (4), overlays (4), generators (4), folder (4), with (4), practices (4), extensions (4), properties (4), object (4), application (4), content (4), what (4), audiences (4), examples (4), sdk (4), grpc (3), ask (3), sdks (3), spec (3), url (3), file (3), start (3), set (3), available (3), enum (3), method (3), operationid (3), best (3), api_key (3), store (3), tag (3), category (3), int64 (3), format (3), integer (3), update (3), ignoring (3), elements (3), request (3), response (3), import (2), configure (2), specifications (2), english (2), company (2), openrpc (2), asyncapi (2), soc (2), path (2), once (2), these (2), you (2), customize (2), behavior (2), use (2), sold (2), pending (2), used (2), 200 (2), responses (2), requestbody (2), paths (2), control (2), group (2), follow (2), organize (2), other (2), items (2), array (2), tags (2), photourls (2), required (2), existing (2), oas (2), framework (2), apis (2), markdown (2), free (2), log (2), book (2), demo (2), errors (2), global (2), headers (2), webhooks (2), sent (2), events (2), multipart (2), form (2), uploads (2), http (2), message (2), version (2), index (2), level (2), llms (2), txt (2), any (2), terms, service, privacy, policy, brand, kit, pricing, support, blog, resources, cli, docs, 2026, birch, solutions, inc, postman, checking, next, previous, edit, yes, was, helpful, config, will, initialize, directory, like, following, init, initializing, follows, ready, using, housed, lets, modify, generation, without, changing, core, overlay, customization, define, reusable, section, them, promotes, consistency, reduces, duplication, makes, maintenance, easier, defined, everywhere, reused, easily, clean, post, pets, referencing, instead, inlining, include, clear, each, endpoint, function, generated, add, instructions, clearly, directories, that, contain, related, files, proper, ensure, generates, high, quality, header, apikey, securityschemes, doggie, dogs, security, validation, exception, 405, not, found, 404, invalid, supplied, 400, successful, operation, true, existent, updatepet, summary, put, sample, based, petstore, title, info, below, developers, document, rest, written, yaml, contains, all, parameters, schemes, compatible, latest, release, which, currently, more, actions, view, copy, question, scroll, top, light, export, depending, packages, environments, imports, websockets, bytes, types, error, handling, streaming, services, rpc, methods, bindings, formats, publish, subscribe, operations, fastapi, templating, retry, pagination, idempotency, property, parameter, display, variables, explorer, descriptions, default, values, base, integrate, search, agents, root, append,
Text of the page (random words):
what is an openapi specification fern documentation for ai agents a documentation index is available at the root level at llms txt append llms txt to any url for a page level index or md for the markdown version of any page search ask ai book a demo log in start for free overview what is an api definition project structure openapi overview overlays overrides authentication servers sync your specification endpoints extensions integrate your server framework generators yml reference asyncapi openrpc grpc fern definition what is an api definition project structure overview overlays overrides authentication servers sync your specification http json endpoints webhooks multipart form uploads server sent events overview api version audiences availability base path default values enum descriptions names and availability request response examples api explorer control global headers ignoring elements sdk method names sdk variables tag display names parameter names property names idempotency pagination retry behavior schema names server names and url templating fastapi generators yml reference overview overrides authentication servers sync your specification publish subscribe operations message formats message bindings overview audiences availability request response examples ignoring elements server names overview overrides authentication servers sync your specification json rpc methods overview audiences availability request response examples ignoring elements sdk method names sdk group names server names overview overrides authentication servers sync your specification grpc services streaming error handling generators yml reference overview authentication types overview http json endpoints multipart form uploads bytes server sent events webhooks websockets errors imports examples audiences availability overview environments global headers errors packages depending on other apis export to openapi book a demo log in start for free english light on this page best practices set up your fern folder scroll to top openapi what is an openapi specification ask a question copy page view as markdown more actions the openapi specification oas is a framework used by developers to document rest apis the specification is written in json or yaml and contains all of your endpoints parameters schemas and authentication schemes fern is compatible with the latest oas release which is currently v3 1 1 below is an example of an openapi file openapi yml 1 openapi 3 0 2 2 info 3 title petstore openapi 3 0 4 description 5 this is a sample pet store server based on the openapi 3 0 specification 6 paths 7 pet 8 put 9 tags 10 pet 11 summary update an existing pet 12 description update an existing pet by id 13 operationid updatepet 14 requestbody 15 description update an existent pet in the store 16 content 17 application json 18 schema 19 ref components schemas pet 20 required true 21 responses 22 200 23 description successful operation 24 content 25 application json 26 schema 27 ref components schemas pet 28 400 29 description invalid id supplied 30 404 31 description pet not found 32 405 33 description validation exception 34 security 35 api_key 36 components 37 schemas 38 category 39 type object 40 properties 41 id 42 type integer 43 format int64 44 example 1 45 name 46 type string 47 example dogs 48 tag 49 type object 50 properties 51 id 52 type integer 53 format int64 54 name 55 type string 56 pet 57 required 58 name 59 photourls 60 type object 61 properties 62 id 63 type integer 64 format int64 65 example 10 66 name 67 type string 68 example doggie 69 category 70 ref components schemas category 71 photourls 72 type array 73 items 74 type string 75 tags 76 type array 77 items 78 ref components schemas tag 79 status 80 type string 81 description pet status in the store 82 enum 83 available 84 pending 85 sold 86 securityschemes 87 api_key 88 type apikey 89 name api_key 90 in header best practices follow these best practices to ensure your openapi specification generates high quality sdks and documentation organize with proper project structure follow the instructions at project structure to clearly organize the directories that contain your definition and other related files add operationid to endpoints include a clear operationid for each endpoint to control the function names generated in your sdks or use extensions to customize group and method names reference schemas instead of inlining define reusable schemas in the components schemas section and reference them with ref this promotes consistency reduces duplication and makes maintenance easier example of referencing schemas openapi yml 1 paths 2 pets 3 post 4 requestbody 5 content 6 application json 7 schema 8 ref components schemas pet clean reference 9 responses 10 200 11 content 12 application json 13 schema 14 ref components schemas pet reused easily 15 components 16 schemas 17 pet defined once used everywhere 18 type object 19 properties 20 name 21 type string 22 status 23 type string 24 enum available pending sold use overlays and fern extensions for customization customize your specification using fern extensions housed in an overlay file this lets you modify generation behavior without changing your core openapi definition once your openapi spec follows these practices you re ready to set up your fern folder set up your fern folder start by initializing your fern folder with an openapi spec file url 1 fern init openapi path to openapi this will initialize a directory like the following fern fern config json generators yml openapi openapi yml your spec was this page helpful yes no edit this page previous project structure next overlays checking status soc 2 soc 2 type ii 2026 fern birch solutions inc a postman company documentation sdks docs ask fern cli reference api definitions openapi asyncapi openrpc grpc resources blog support pricing company brand kit privacy policy terms of service api definitions api definitions import and configure your api specifications english api definitions api definitions import and configure your api specifications
|