Skip to content

Commit

Permalink
Docs de parámetro last
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslavandeira committed Nov 15, 2018
1 parent 63fc271 commit ac39127
Show file tree
Hide file tree
Showing 35 changed files with 429 additions and 110 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ mkdocsdocs:
rm -rf site

serveswaggerdocs:
echo "Browse to http://localhost:8000/docs/swagger/"
echo "Browse to http://localhost:8000/docs/open-api/"
python -m SimpleHTTPServer 8000

swaggerdocs:
wget https://github.com/swagger-api/swagger-ui/archive/master.zip -O temp.zip; unzip -jo temp.zip 'swagger-ui-master/dist/*' -d docs/open_api/; rm temp.zip
wget https://github.com/swagger-api/swagger-ui/archive/master.zip -O temp.zip; unzip -jo temp.zip 'swagger-ui-master/dist/*' -d docs/open-api/; rm temp.zip
sed -i.bak "s/url: \".*\"/url: \"\.\/swagger\.yml\", validatorUrl: null/g" docs/open_api/index.html
echo ".download-url-wrapper { display: none!important; }" >> docs/open_api/swagger-ui.css
rm -f docs/open_api/index.html.bak
Expand Down
6 changes: 3 additions & 3 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<meta name="lang:search.tokenizer" content="[\s\-]+">

<link rel="shortcut icon" href="/series/assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.0.5">
<meta name="generator" content="mkdocs-1.0, mkdocs-material-3.0.6">



Expand Down Expand Up @@ -537,7 +537,7 @@ <h1>404 - Not found</h1>

</div>

<script src="/series/assets/javascripts/application.583bbe55.js"></script>
<script src="/series/assets/javascripts/application.5e60981f.js"></script>



Expand All @@ -554,7 +554,7 @@ <h1>404 - Not found</h1>



<script>app.initialize({version:"1.0.4",url:{base:"/series/"}})</script>
<script>app.initialize({version:"1.0",url:{base:"/series"}})</script>



Expand Down
6 changes: 3 additions & 3 deletions docs/additional-parameters/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<meta name="lang:search.tokenizer" content="[\s\-]+">

<link rel="shortcut icon" href="../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.0.5">
<meta name="generator" content="mkdocs-1.0, mkdocs-material-3.0.6">



Expand Down Expand Up @@ -801,7 +801,7 @@ <h2 id="aplicar-transformaciones-y-cambiar-la-funcion-de-agregacion-temporal-en-

</div>

<script src="../assets/javascripts/application.583bbe55.js"></script>
<script src="../assets/javascripts/application.5e60981f.js"></script>



Expand All @@ -818,7 +818,7 @@ <h2 id="aplicar-transformaciones-y-cambiar-la-funcion-de-agregacion-temporal-en-



<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
<script>app.initialize({version:"1.0",url:{base:".."}})</script>



Expand Down
6 changes: 3 additions & 3 deletions docs/applications/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<meta name="lang:search.tokenizer" content="[\s\-]+">

<link rel="shortcut icon" href="../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.0.5">
<meta name="generator" content="mkdocs-1.0, mkdocs-material-3.0.6">



Expand Down Expand Up @@ -702,7 +702,7 @@ <h2 id="contacto">Contacto</h2>

</div>

<script src="../assets/javascripts/application.583bbe55.js"></script>
<script src="../assets/javascripts/application.5e60981f.js"></script>



Expand All @@ -719,7 +719,7 @@ <h2 id="contacto">Contacto</h2>



<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
<script>app.initialize({version:"1.0",url:{base:".."}})</script>



Expand Down
1 change: 1 addition & 0 deletions docs/assets/javascripts/application.5e60981f.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/developers/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<meta name="lang:search.tokenizer" content="[\s\-]+">

<link rel="shortcut icon" href="../../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.0.5">
<meta name="generator" content="mkdocs-1.0, mkdocs-material-3.0.6">



Expand Down Expand Up @@ -702,7 +702,7 @@ <h2 id="indexacion-manual-de-metadatos">Indexación manual de metadatos</h2>

</div>

<script src="../../assets/javascripts/application.583bbe55.js"></script>
<script src="../../assets/javascripts/application.5e60981f.js"></script>



Expand All @@ -719,7 +719,7 @@ <h2 id="indexacion-manual-de-metadatos">Indexación manual de metadatos</h2>



<script>app.initialize({version:"1.0.4",url:{base:"../.."}})</script>
<script>app.initialize({version:"1.0",url:{base:"../.."}})</script>



Expand Down
6 changes: 3 additions & 3 deletions docs/developers/arquitectura/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<meta name="lang:search.tokenizer" content="[\s\-]+">

<link rel="shortcut icon" href="../../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.0.5">
<meta name="generator" content="mkdocs-1.0, mkdocs-material-3.0.6">



Expand Down Expand Up @@ -774,7 +774,7 @@ <h3 id="cluster-elastic">Cluster Elastic</h3>

</div>

<script src="../../assets/javascripts/application.583bbe55.js"></script>
<script src="../../assets/javascripts/application.5e60981f.js"></script>



Expand All @@ -791,7 +791,7 @@ <h3 id="cluster-elastic">Cluster Elastic</h3>



<script>app.initialize({version:"1.0.4",url:{base:"../.."}})</script>
<script>app.initialize({version:"1.0",url:{base:"../.."}})</script>



Expand Down
6 changes: 3 additions & 3 deletions docs/developers/development/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<meta name="lang:search.tokenizer" content="[\s\-]+">

<link rel="shortcut icon" href="../../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.0.5">
<meta name="generator" content="mkdocs-1.0, mkdocs-material-3.0.6">



Expand Down Expand Up @@ -849,7 +849,7 @@ <h2 id="tests">Tests</h2>

</div>

<script src="../../assets/javascripts/application.583bbe55.js"></script>
<script src="../../assets/javascripts/application.5e60981f.js"></script>



Expand All @@ -866,7 +866,7 @@ <h2 id="tests">Tests</h2>



<script>app.initialize({version:"1.0.4",url:{base:"../.."}})</script>
<script>app.initialize({version:"1.0",url:{base:"../.."}})</script>



Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<meta name="lang:search.tokenizer" content="[\s\-]+">

<link rel="shortcut icon" href="assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.0.5">
<meta name="generator" content="mkdocs-1.0, mkdocs-material-3.0.6">



Expand Down Expand Up @@ -630,7 +630,7 @@ <h1 id="api-de-series-de-tiempo-de-la-republica-argentina">API de Series de Tiem

</div>

<script src="assets/javascripts/application.583bbe55.js"></script>
<script src="assets/javascripts/application.5e60981f.js"></script>



Expand All @@ -647,7 +647,7 @@ <h1 id="api-de-series-de-tiempo-de-la-republica-argentina">API de Series de Tiem



<script>app.initialize({version:"1.0.4",url:{base:"."}})</script>
<script>app.initialize({version:"1.0",url:{base:"."}})</script>



Expand Down
9 changes: 9 additions & 0 deletions docs/open-api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,15 @@ paths:
required: false
default: ","
type: string
- name: last
in: query
description: >-
Modifica el pedido para devolver los últimos N valores de la(s) serie(s), en orden de fechas ascendiente.
Mutuamente exclusivo con `sort`, `start`, y `limit`.
required: false
type: integer
minimum: 0
maximum: 1000
responses:
'200':
description: La consulta se ejecutó exitosamente
Expand Down
Binary file added docs/open_api/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/open_api/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions docs/open_api/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
</style>
</head>

<body>
<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
url: "./swagger.yml", validatorUrl: null,
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
// End Swagger UI call region

window.ui = ui
}
</script>
</body>
</html>
67 changes: 67 additions & 0 deletions docs/open_api/oauth2-redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!doctype html>
<html lang="en-US">
<body onload="run()">
</body>
</html>
<script>
'use strict';
function run () {
var oauth2 = window.opener.swaggerUIRedirectOauth2;
var sentState = oauth2.state;
var redirectUrl = oauth2.redirectUrl;
var isValid, qp, arr;

if (/code|token|error/.test(window.location.hash)) {
qp = window.location.hash.substring(1);
} else {
qp = location.search.substring(1);
}

arr = qp.split("&")
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
qp = qp ? JSON.parse('{' + arr.join() + '}',
function (key, value) {
return key === "" ? value : decodeURIComponent(value)
}
) : {}

isValid = qp.state === sentState

if ((
oauth2.auth.schema.get("flow") === "accessCode"||
oauth2.auth.schema.get("flow") === "authorizationCode"
) && !oauth2.auth.code) {
if (!isValid) {
oauth2.errCb({
authId: oauth2.auth.name,
source: "auth",
level: "warning",
message: "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"
});
}

if (qp.code) {
delete oauth2.state;
oauth2.auth.code = qp.code;
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
} else {
let oauthErrorMsg
if (qp.error) {
oauthErrorMsg = "["+qp.error+"]: " +
(qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
(qp.error_uri ? "More info: "+qp.error_uri : "");
}

oauth2.errCb({
authId: oauth2.auth.name,
source: "auth",
level: "error",
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server"
});
}
} else {
oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
}
window.close();
}
</script>
93 changes: 93 additions & 0 deletions docs/open_api/swagger-ui-bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/open_api/swagger-ui-bundle.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit ac39127

Please sign in to comment.