Skip to content

Commit

Permalink
Gataca Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
samu-gataca committed Oct 11, 2023
1 parent e2c2269 commit c917a02
Show file tree
Hide file tree
Showing 22 changed files with 32,666 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.3.0
lts/hydrogen
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# Gataca Swagger-UI
Files to be modified
- dev-helper-initializer.js (For DEV purposes)
- Swagger-initializer.js (For production purposes)

## Launch of DEV
```
yarn
yarn dev
```

## Deployment
```
yarn build
```
Copy all the files included into `/dist` into S3 (api.gataca.io)

Execute CloudFront invalidation `/*`

## Update specification

For update just the component specification, it's not necessary necessary to upload the new file version to the `/docs` folder. Then it's necessary to reset the CloudFront cache (Execute invalidation).


# <img src="https://raw.githubusercontent.com/swagger-api/swagger.io/wordpress/images/assets/SWU-logo-clr.png" width="300">

[![NPM version](https://badge.fury.io/js/swagger-ui.svg)](http://badge.fury.io/js/swagger-ui)
Expand Down
8 changes: 7 additions & 1 deletion dev-helpers/dev-helper-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ window.onload = function() {
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"]
// Build a system
const ui = SwaggerUIBundle({
url: "https://petstore.swagger.io/v2/swagger.json",
url: "/docs/studio-swagger.json",
urls: [
{url: "./docs/studio-swagger.json", name: "Gataca Studio"},
{url: "./docs/nucleus-swagger.json", name: "Gataca Nucleus"},
{url: "./docs/connect-swagger.json", name: "Gataca Connect"},
{url: "/docs/certify-swagger.json", name: "Gataca Certify"},
],
dom_id: "#swagger-ui",
presets: [
SwaggerUIBundle.presets.apis,
Expand Down
Loading

0 comments on commit c917a02

Please sign in to comment.