OpenAPI 3 specification for api.ideal-postcodes.co.uk, with TypeScript types generated from it. Published to npm as @ideal-postcodes/openapi.
- API reference, rendered from this spec
- Raw spec: openapi.json, openapi.yaml
- Documentation
- Changelog
npm install @ideal-postcodes/openapiimport 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.
openapi.json,openapi.yaml: the specification, stamped with the released versionopenapi.ts: types generated with openapi-typescript. Not hand-editedaliases.ts,index.ts: hand-written type aliases and the package entry point
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.
See LICENSE.