Skip to content

Instantly share code, notes, and snippets.

@kinlane
Created January 11, 2023 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinlane/6e8f47d6a7689929b1cfdf94896aafc2 to your computer and use it in GitHub Desktop.
Save kinlane/6e8f47d6a7689929b1cfdf94896aafc2 to your computer and use it in GitHub Desktop.
temp2.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>OpenAPI Specification: Products API</title>
<link rel="shortcut icon" href="../assets/Zalando-favicon.png">
<link rel="stylesheet" type="text/css" href="//unpkg.com/swagger-ui-dist@3.39.0/swagger-ui.css">
<style>
html {
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
margin: 0;
background: #fafafa;
}
.auth-wrapper {
display: none !important
}
/* hide "authorize" because it will not work (CORS is not supported by the Gateway at the moment) */
</style>
<script src="//unpkg.com/swagger-ui-dist@3.39.0/swagger-ui-bundle.js"></script>
</head>
<body>
<div id="swagger-ui">
<div data-reactroot="" class="swagger-ui">
<div><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="svg-assets">
<defs>
<symbol viewBox="0 0 20 20" id="unlocked">
<path
d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z">
</path>
</symbol>
<symbol viewBox="0 0 20 20" id="locked">
<path
d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z">
</path>
</symbol>
<symbol viewBox="0 0 20 20" id="close">
<path
d="M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z">
</path>
</symbol>
<symbol viewBox="0 0 20 20" id="large-arrow">
<path
d="M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z">
</path>
</symbol>
<symbol viewBox="0 0 20 20" id="large-arrow-down">
<path
d="M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z">
</path>
</symbol>
<symbol viewBox="0 0 24 24" id="jump-to">
<path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"></path>
</symbol>
<symbol viewBox="0 0 24 24" id="expand">
<path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"></path>
</symbol>
</defs>
</svg></div>
<div>
<!-- react-empty: 25 -->
<div class="information-container wrapper">
<section class="block col-12">
<div>
<div class="info">
<hgroup class="main">
<h2 class="title">
<!-- react-text: 46 -->OpenAPI Specification: Products API
<!-- /react-text --><span><small><pre class="version"><!-- react-text: 50 --> <!-- /react-text --><!-- react-text: 51 -->1.1<!-- /react-text --><!-- react-text: 52 --> <!-- /react-text --></pre></small><small class="version-stamp"><pre class="version">OAS3</pre></small></span>
</h2><a target="_blank"
href="https://developers.merchants.zalando.com/docs/openapi/specs/products.yaml"
rel="noopener noreferrer"
class="link"><span class="url"><!-- react-text: 57 --> <!-- /react-text --><!-- react-text: 58 -->https://developers.merchants.zalando.com/docs/openapi/specs/products.yaml<!-- /react-text --></span></a>
</hgroup>
<div class="description">
<div class="renderedMarkdown">
<p>This specification describes the Products API of the Zalando Merchant
Platform.</p>
</div>
</div><a class="info__extdocs link" target="_blank" href=""
rel="noopener noreferrer"></a>
</div>
</div>
</section>
</div>
<div class="scheme-container">
<section class="schemes wrapper block col-12">
<div class="auth-wrapper">
<button class="btn authorize unlocked"><span>Authorize</span><svg width="20" height="20"><use href="#unlocked" xlink:href="#unlocked"></use></svg></button>
</div>
</section>
</div>
<div></div>
<div class="wrapper">
<section class="block col-12 block-desktop col-12-desktop">
<div>
<span><div class="opblock-tag-section is-open"><h4 class="opblock-tag no-desc" id="operations-tag-Product_Association" data-tag="Product Association" data-is-open="true"><a class="nostyle"><span>Product Association</span></a><small></small>
<div></div>
<button class="expand-operation" title="Collapse operation"><svg class="arrow" width="20" height="20"><use href="#large-arrow-down" xlink:href="#large-arrow-down"></use></svg></button>
</h4>
<div class="no-margin">
<!-- react-text: 84 -->
<!-- /react-text --><span><div class="opblock opblock-put" id="operations-Product_Association-put_merchants__merchant_id__products_identifiers__ean_"><div class="opblock-summary opblock-summary-put"><span class="opblock-summary-method">PUT</span><span class="opblock-summary-path" data-path="/merchants/{merchant_id}/products/identifiers/{ean}"><a class="nostyle"><span>​/merchants​/{merchant_id}​/products​/identifiers​/{ean}</span></a></span>
<div class="opblock-summary-description">Creates a new simple already known by Zalando
by registering the Merchant identifiers in the Zalando system.
</div>
<button class="authorization__btn unlocked" aria-label="authorization button unlocked"><svg width="20" height="20"><use href="#unlocked" xlink:href="#unlocked"></use></svg></button>
<!-- react-empty: 96 -->
</div><noscript></noscript></div></span><!-- react-text: 98 -->
<!-- /react-text -->
</div>
</div>
</span><span><div class="opblock-tag-section is-open"><h4 class="opblock-tag no-desc" id="operations-tag-Discovery_API" data-tag="Discovery API" data-is-open="true"><a class="nostyle"><span>Discovery API</span></a><small></small>
<div></div>
<button class="expand-operation" title="Collapse operation"><svg class="arrow" width="20" height="20"><use href="#large-arrow-down" xlink:href="#large-arrow-down"></use></svg></button>
</h4>
<div class="no-margin">
<!-- react-text: 110 -->
<!-- /react-text --><span><div class="opblock opblock-get" id="operations-Discovery_API-get_products_identifiers__ean_"><div class="opblock-summary opblock-summary-get"><span class="opblock-summary-method">GET</span><span class="opblock-summary-path" data-path="/products/identifiers/{ean}"><a class="nostyle"><span>​/products​/identifiers​/{ean}</span></a></span>
<div class="opblock-summary-description">Look up the existing product details in Zalando platform
</div>
<button class="authorization__btn unlocked" aria-label="authorization button unlocked"><svg width="20" height="20"><use href="#unlocked" xlink:href="#unlocked"></use></svg></button>
<!-- react-empty: 122 -->
</div><noscript></noscript>
</div></span><!-- react-text: 124 -->
<!-- /react-text -->
</div>
</div></span></div>
</section>
</div>
<div class="wrapper">
<section class="block col-12 block-desktop col-12-desktop">
<section class="models is-open">
<h4><span>Schemas</span><svg width="20" height="20">
<use xlink:href="#large-arrow-down"></use>
</svg></h4>
<div class="no-margin">
<!-- react-text: 133 -->
<!-- /react-text -->
<div id="model-ProductAssociationSchema" class="model-container"
data-name="ProductAssociationSchema">
<span class="models-jump-to-path"><!-- react-empty: 136 --></span><span class="model-box"><span class="pointer"><span class="model-box"><span class="model model-title">ProductAssociationSchema</span></span></span><span class="pointer"><span class="model-toggle collapsed"></span></span>
<!-- react-text: 143 -->
<!-- /react-text --></span></div>
<div id="model-EAN" class="model-container" data-name="EAN">
<span class="models-jump-to-path"><!-- react-empty: 146 --></span><span class="model-box"><span class="pointer"><span class="model-box"><span class="model model-title">EAN</span></span></span><span class="pointer"><span class="model-toggle collapsed"></span></span>
<!-- react-text: 153 -->
<!-- /react-text --></span></div>
<div id="model-MerchantProductId" class="model-container" data-name="MerchantProductId">
<span class="models-jump-to-path"><!-- react-empty: 156 --></span><span class="model-box"><span class="pointer"><span class="model-box"><span class="model model-title">MerchantProductId</span></span></span><span class="pointer"><span class="model-toggle collapsed"></span></span>
<!-- react-text: 163 -->
<!-- /react-text --></span></div>
<div id="model-MerchantConfigId" class="model-container" data-name="MerchantConfigId">
<span class="models-jump-to-path"><!-- react-empty: 166 --></span><span class="model-box"><span class="pointer"><span class="model-box"><span class="model model-title">MerchantConfigId</span></span></span><span class="pointer"><span class="model-toggle collapsed"></span></span>
<!-- react-text: 173 -->
<!-- /react-text --></span></div>
<div id="model-MerchantModelId" class="model-container" data-name="MerchantModelId">
<span class="models-jump-to-path"><!-- react-empty: 176 --></span><span class="model-box"><span class="pointer"><span class="model-box"><span class="model model-title">MerchantModelId</span></span></span><span class="pointer"><span class="model-toggle collapsed"></span></span>
<!-- react-text: 183 -->
<!-- /react-text --></span></div>
<div id="model-LookUp" class="model-container" data-name="LookUp">
<span class="models-jump-to-path"><!-- react-empty: 186 --></span><span class="model-box"><span class="pointer"><span class="model-box"><span class="model model-title">LookUp</span></span></span><span class="pointer"><span class="model-toggle collapsed"></span></span>
<!-- react-text: 193 -->
<!-- /react-text --></span></div>
<div id="model-Problem" class="model-container" data-name="Problem">
<span class="models-jump-to-path"><!-- react-empty: 196 --></span><span class="model-box"><span class="pointer"><span class="model-box"><span class="model model-title">Problem</span></span></span><span class="pointer"><span class="model-toggle collapsed"></span></span>
<!-- react-text: 203 -->
<!-- /react-text --></span></div><!-- react-text: 204 -->
<!-- /react-text -->
</div>
</section>
</section>
</div>
</div>
</div>
</div>
<script>
(function () {
var mountPath = "";
if (window.location.host === "merchant-platform-developer-portal.docs.zalando.net" && window.location.pathname.indexOf("_preview") > -1) {
mountPath = "/" + window.location.pathname.split("/").slice(1,3).join("/");
} else if (window.location.host === "merchant-platform-developer-portal.docs.zalando.net") {
mountPath = ""
} else if (window.location.pathname.indexOf("/docs") == 0) {
mountPath = "/docs"
}
var url = window.location.origin + mountPath + "/" + "openapi/specs/products.yaml";
var ui = SwaggerUIBundle({
url: url,
dom_id: '#swagger-ui',
presets: [
SwaggerUIBundle.presets.apis,
],
layout: "BaseLayout",
supportedSubmitMethods: [], // disable TRY OUT functionality (CORS is not supported by the Gateway at the moment) */
})
})()
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment