Skip to content

Latest commit

 

History

503 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ideal Postcodes OpenAPI

OpenAPI 3 specification for api.ideal-postcodes.co.uk, with TypeScript types generated from it. Published to npm as @ideal-postcodes/openapi.

Links

Install

npm install @ideal-postcodes/openapi

Use

import type { paths, components } from "@ideal-postcodes/openapi";

type Address = components["schemas"]["Address"];
type LookupPostcode = paths["/postcodes/{postcode}"]["get"];

The spec files ship inside the package at node_modules/@ideal-postcodes/openapi/dist/openapi.json and dist/openapi.yaml.

Files

  • openapi.json, openapi.yaml: the specification, stamped with the released version
  • openapi.ts: types generated with openapi-typescript. Not hand-edited
  • aliases.ts, index.ts: hand-written type aliases and the package entry point

Source

This repository is a read-only release mirror. Each tag matches the npm version and adds one commit. There is no build here; the npm package carries the compiled output.

The spec is generated from the API source, so pull requests against these files cannot be merged directly. Open an issue or a pull request and a maintainer will apply the change upstream and release it.

For anything involving your account, keys or sensitive data, email support@ideal-postcodes.co.uk rather than opening an issue.

Licence

See LICENSE.

About

OpenAPI V3 specifications for api.ideal-postcodes.co.uk

Topics

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages