This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": { | |
"Person": "http://uri.suomi.fi/datamodel/ns/isa2core#Person", | |
"Location": "http://uri.suomi.fi/datamodel/ns/isa2core#Location", | |
"Geometry": "http://uri.suomi.fi/datamodel/ns/isa2core#Geometry", | |
"Address": "http://uri.suomi.fi/datamodel/ns/isa2core#Address", | |
"Identifier": "http://uri.suomi.fi/datamodel/ns/isa2core#Identifier", | |
"Agent": "http://uri.suomi.fi/datamodel/ns/isa2core#Agent", | |
"identifies": { | |
"@id": "http://uri.suomi.fi/datamodel/ns/isa2core#identifies", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.1 | |
info: | |
title: SDG OAuth | |
version: 1.1.0 | |
description: SDG OAuth | |
termsOfService: https://sdg-oauth.github.io/sdg-oauth/ | |
contact: | |
name: SDG OAuth | |
url: https://sdg-oauth.github.io/sdg-oauth/ | |
license: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
title: API Sistema Gestione Deleghe (SGD) | |
version: '1.0.0' | |
description: This document contains the specification for the SGD API | |
termsOfService: https://deleghedigitali.gov.it/tos | |
contact: | |
name: Istituto Poligrafico e Zecca dello Stato (IPZS) | |
url: https://deleghedigitali.gov.it | |
email: tech@deleghedigitali.gov.it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends: | |
- https://italia.github.io/api-oas-checker/spectral-full.yml | |
rules: | |
oas3-unused-components-schema: false | |
oas3-api-servers: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install argocd CLI. | |
wget https://github.com/argoproj/argo-cd/releases/download/v2.2.5/argocd-linux-amd64 -O ~/.local/bin/argocd && chmod +x ~/.local/bin/argocd | |
# Run a minikube instance. | |
export CLUSTER_NAME="test-argocd" | |
minikube start --profile "${CLUSTER_NAME}" | |
# Deploy argocd in the `argocd` ns. | |
kubectl create namespace argocd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
title: Interoperability API Gateway Micro Service | |
description: defines the persistence operations for the agreement | |
version: '0.1.0' | |
contact: | |
name: API Support | |
url: 'http://www.example.com/support' | |
email: support@example.com | |
termsOfService: 'http://swagger.io/terms/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > main.go <<EOF | |
package main | |
import ( | |
"github.com/didip/tollbooth/v6" | |
"net/http" | |
) | |
func HelloHandler(w http.ResponseWriter, req *http.Request) { | |
w.Write([]byte("Hello, World!")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.1 | |
paths: | |
/oauth: | |
post: | |
description: Use x-noqa to skip this check | |
responses: | |
"200": {} | |
"400": | |
x-noqa: RFC6749 | |
content: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from faker import Faker | |
from codicefiscale import codicefiscale as fiscalcode | |
from codicefiscale.data import _MUNICIPALITIES as italian_municipalities | |
import string | |
italian_municipalities_active = [ | |
x for x in italian_municipalities if "soppresso" not in str(x) | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.1 | |
components: | |
schemas: | |
Person: | |
# When you reference a rdf:type, the UI shows all related properties | |
x-jsonld-type: https://w3id.org/italia/onto/CPV/Person | |
paths: {} | |
info: |