@addresszen/openapi 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ ## [2.0.1](https://github.com/addresszen/openapi/compare/2.0.0...2.0.1) (2022-04-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Initial:** Trigger initial release ([6b768fc](https://github.com/addresszen/openapi/commit/6b768fcaa6244181525cd2c78ba09e7a95d6c721))
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 IDDQD Limited
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ <h1 align="center">
2
+ <img src="https://img.ideal-postcodes.co.uk/OpenAPI%20Logo@3x.png" alt="OpenAPI">
3
+ </h1>
4
+
5
+ > AddressZen OpenAPI (v3) Specification (api.addresszen.com)
6
+
7
+ [![CI](https://github.com/addresszen/openapi/actions/workflows/ci.yml/badge.svg)](https://github.com/addresszen/openapi/actions/workflows/ci.yml)
8
+
9
+ ## Features
10
+
11
+ - OpenAPI v3 specification for api.addresszen.com
12
+ - Exports API Typings
13
+
14
+ ## Links
15
+
16
+ - [Github Repository](https://github.com/addresszen/openapi)
17
+ - [API Reference](https://openapi.addresszen.com)
18
+ - OpenAPI v3 Raw Files: [JSON](https://openapi.addresszen.com/openapi.json)
19
+ - OpenAPI v3 Raw Files: [YAML](https://openapi.addresszen.com/openapi.yaml)
20
+ - [NPM Package](https://www.npmjs.com/package/@addresszen/openapi)
21
+
22
+ ## Getting Started
23
+
24
+ ### Build Typings
25
+
26
+ ```
27
+ npm run build
28
+ ```
29
+
30
+ ### Validate Spec
31
+
32
+ ```
33
+ npm test
34
+ ```
35
+
36
+ ### Download and Access via npm
37
+
38
+ #### Install
39
+
40
+ ```bash
41
+ npm install --save @addresszen/openapi
42
+ ```
43
+
44
+ #### Require specs
45
+
46
+ JSON and YAML specs can be accessed at `node_modules/@addresszen/openapi/dist/openapi.[json|yaml]`
47
+
48
+ ## Licence
49
+
50
+ MIT
package/dist/_headers ADDED
@@ -0,0 +1,2 @@
1
+ /*
2
+ Access-Control-Allow-Origin: *
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>API Reference - AddressZen</title>
6
+ <!-- needed for adaptive design -->
7
+ <meta name="viewport" content="width=device-width, initial-scale=1">
8
+ <link rel="icon" type="image/svg" href="http://img.ideal-postcodes.co.uk/favicon.svg">
9
+ <link rel="icon" type="image/png" href="http://img.ideal-postcodes.co.uk/favicon.png">
10
+ <link rel="preconnect" href="https://fonts.googleapis.com">
11
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12
+ <link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300&family=Lato&family=Lora:wght@500&display=swap" rel="stylesheet">
13
+ <style>
14
+ @import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300&family=Lato&family=Lora:wght@500&display=swap');
15
+ body {
16
+ margin: 0;
17
+ padding: 0;
18
+ }
19
+ code {
20
+ font-family: "Fira Code", monospace;
21
+ }
22
+ .menu-content {
23
+ background: #05326d !important;
24
+ background: -webkit-linear-gradient(right, #07489e, #05326d) !important;
25
+ background: linear-gradient(to left, #07489e, #05326d) !important;
26
+ }
27
+ </style>
28
+ </head>
29
+ <body>
30
+ <div id="redoc"></div>
31
+ <script src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"> </script>
32
+ <script>
33
+ var container = document.getElementById('redoc');
34
+ Redoc.init("./openapi.json", {"htmlTemplate":"./openapi/index.html","theme":{"sidebar":{"textColor":"#d5dae6","activeBgColor":"#07489e","backgroundColor":"#05326d","activeTextColor":"#FFFFFF"},"typography":{"code":{"fontFamily":"Fira Code, monospace","fontSize":"13px","backgroundColor":"rgba(38, 50, 56, 0.05)","color":"#e53935"},"headings":{"fontFamily":"Lato, sans-serif"},"fontFamily":"Lato, sans-serif"},"colors":{"primary":{"main":"#32329f"}}}}, container)
35
+ </script>
36
+ </body>
37
+ </html>