Comments (7)
Can you send a full example so we can reproduce? Thanks
from aws-apigateway-importer.
May be duplicate of #56
from aws-apigateway-importer.
{
"swagger": "2.0",
"info": {
"title": "Med",
"description": "Med Catering",
"version": "0.0.1"
},
"host": "apimed.soluzionifutura.it",
"schemes": [
"https"
],
"basePath": "",
"produces": [
"application/json"
],
"security": [
{
"api_key": []
}
],
"paths": {
"/": {
"get": {
"description": "Restituisce staticamente l'oggetto di s3: index.html",
"parameters": [],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Content-Type": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:s3:path/med.catering/index.html",
"httpMethod": "GET",
"credentials": "arn:aws:iam::477398036046:role/med-s3_getItem",
"requestParameters": {},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Content-Type": "'text/html'"
}
}
}
}
}
},
"/{alias}": {
"get": {
"description": "Restituisce staticamente l'oggetto di s3: 404.html",
"parameters": [
{
"name": "alias",
"in": "path",
"required": "true",
"type": "string"
}
],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Content-Type": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:s3:path/med.catering/404.html",
"httpMethod": "GET",
"credentials": "arn:aws:iam::477398036046:role/med-s3_getItem",
"requestParameters": {
"integration.request.path.alias": "method.request.path.alias"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Content-Type": "'text/html'"
}
}
}
}
}
},
"/servizi": {
"get": {
"description": "Restituisce staticamente l'oggetto di s3: index.html",
"parameters": [],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Content-Type": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:s3:path/med.catering/index.html",
"httpMethod": "GET",
"credentials": "arn:aws:iam::477398036046:role/med-s3_getItem",
"requestParameters": {},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Content-Type": "'text/html'"
}
}
}
}
}
},
"/blog": {
"get": {
"description": "Restituisce staticamente l'oggetto di s3: index.html",
"parameters": [],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Content-Type": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:s3:path/med.catering/index.html",
"httpMethod": "GET",
"credentials": "arn:aws:iam::477398036046:role/med-s3_getItem",
"requestParameters": {},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Content-Type": "'text/html'"
}
}
}
}
}
},
"/blog/{alias}": {
"get": {
"description": "Restituisce staticamente l'oggetto di s3: index.html",
"parameters": [
{
"name": "alias",
"in": "path",
"required": "true",
"type": "string"
}
],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Content-Type": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:s3:path/med.catering/index.html",
"httpMethod": "GET",
"credentials": "arn:aws:iam::477398036046:role/med-s3_getItem",
"requestParameters": {
"integration.request.path.alias": "method.request.path.alias"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Content-Type": "'text/html'"
}
}
}
}
}
},
"/portfolio/": {
"get": {
"description": "Restituisce staticamente l'oggetto di s3: index.html",
"parameters": [],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Content-Type": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:s3:path/med.catering/index.html",
"httpMethod": "GET",
"credentials": "arn:aws:iam::477398036046:role/med-s3_getItem",
"requestParameters": {},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Content-Type": "'text/html'"
}
}
}
}
}
},
"/portfolio/{alias}": {
"get": {
"description": "Restituisce staticamente l'oggetto di s3: index.html",
"parameters": [
{
"name": "alias",
"in": "path",
"required": "true",
"type": "string"
}
],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Content-Type": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:s3:path/med.catering/index.html",
"httpMethod": "GET",
"credentials": "arn:aws:iam::477398036046:role/med-s3_getItem",
"requestParameters": {
"integration.request.path.alias": "method.request.path.alias"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Content-Type": "'text/html'"
}
}
}
}
}
},
"/contatti": {
"get": {
"description": "Restituisce staticamente l'oggetto di s3: index.html",
"parameters": [],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Content-Type": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:s3:path/med.catering/index.html",
"httpMethod": "GET",
"credentials": "arn:aws:iam::477398036046:role/med-s3_getItem",
"requestParameters": {},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Content-Type": "'text/html'"
}
}
}
}
}
},
"/api/portfolio": {
"get": {
"description": "Restituisce le entry di portfolio",
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_QUERY/invocations",
"httpMethod": "POST",
"credentials": "arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_READ",
"requestTemplates": {
"application/json": "{\r\n "TableName" : "med_posts",\r\n "IndexName" : "inPortfolio-dateTime-index",\r\n "KeyConditionExpression": "inPortfolio = :hkey",\r\n "ExpressionAttributeValues": {\r\n ":hkey": 1\r\n },\r\n "ScanIndexForward" : false\r\n}"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/comunicazioni": {
"post": {
"description": "Crea una nuova comunicazione",
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_PUT/invocations",
"httpMethod": "POST",
"credentials": "arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_CREATE",
"requestTemplates": {
"application/json": "{\r\n "TableName" : "med_posts"\r\n}"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/comunicazioni/{alias}": {
"put": {
"description": "Aggiorna la comunicazione corrispondente all'alias",
"parameters": [
{
"name": "alias",
"in": "path",
"required": "true",
"type": "string"
}
],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_UPDATE/invocations",
"httpMethod": "POST",
"credentials": "arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_UPDATE",
"requestParameters": {
"integration.request.path.alias": "method.request.path.alias"
},
"requestTemplates": {
"application/json": "{\r\n "TableName" : "med_posts"\r\n}"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/eventi": {
"post": {
"description": "Crea un nuovo evento",
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_PUT/invocations",
"httpMethod": "POST",
"credentials": "arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_CREATE",
"requestTemplates": {
"application/json": "{\r\n "TableName" : "med_posts"\r\n}"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/eventi/{alias}": {
"put": {
"description": "Aggiorna l'evento corrispondente all'alias",
"parameters": [
{
"name": "alias",
"in": "path",
"required": "true",
"type": "string"
}
],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_UPDATE/invocations",
"httpMethod": "POST",
"credentials": "arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_UPDATE",
"requestParameters": {
"integration.request.path.alias": "method.request.path.alias"
},
"requestTemplates": {
"application/json": "{\r\n "TableName" : "med_posts"\r\n}"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/articoli": {
"get": {
"description": "Restituisce tutti gli elementi della tabella",
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_SCAN/invocations",
"httpMethod": "POST",
"credentials": "arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_READ",
"requestTemplates": {
"application/json": "{\r\n "TableName" : "med_posts",\r\n "ScanIndexForward" : false\r\n}"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/articoli/{alias}": {
"get": {
"description": "Restituisce l'articolo corrispondente all'alias",
"parameters": [
{
"name": "alias",
"in": "path",
"required": "true",
"type": "string"
}
],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_QUERY/invocations",
"httpMethod": "POST",
"credentials": "arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_READ",
"requestParameters": {
"integration.request.path.alias": "method.request.path.alias"
},
"requestTemplates": {
"application/json": "#set($alias = $input.params('alias'))\r\n\r\n{\r\n "TableName" : "med_posts",\r\n "KeyConditionExpression": "alias = :hkey",\r\n "ExpressionAttributeValues": {\r\n ":hkey": "$alias"\r\n }\r\n}"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"delete": {
"description": "Elimina l'articolo corrispondente all'alias",
"parameters": [
{
"name": "alias",
"in": "path",
"required": "true",
"type": "string"
},
{
"name": "dateTime",
"in": "body",
"required": "true",
"type": "number",
"schema": {
"$ref": "#/definitions/DateTime"
}
}
],
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_DELETE/invocations",
"httpMethod": "POST",
"credentials": "arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_DELETE",
"requestParameters": {
"integration.request.path.alias": "method.request.path.alias"
},
"requestTemplates": {
"application/json": "#set($alias = $input.params('alias'))\r\n#set($dateTime = $input.path('$').dateTime)\r\n{\r\n "TableName" : "med_posts",\r\n "Key": {\r\n "alias": "$alias",\r\n "dateTime": $dateTime\r\n }\r\n}"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/evidenza": {
"get": {
"summary": "Restituisce le entry in evidenza",
"description": "Le entry in evidenza possono essere sia di tipo portfolio che di tipo comunicazione",
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "aws",
"uri": "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_QUERY/invocations",
"httpMethod": "POST",
"credentials": "arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_READ",
"requestTemplates": {
"application/json": "{\r\n "TableName" : "med_posts",\r\n "IndexName" : "inHome-dateTime-index",\r\n "KeyConditionExpression": "inHome = :hkey",\r\n "ExpressionAttributeValues": {\r\n ":hkey": 1\r\n },\r\n "ScanIndexForward" : false\r\n}"
},
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/login": {
"post": {
"description": "Esegue il login",
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://www.google.it/",
"httpMethod": "GET",
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/logout": {
"post": {
"description": "Esegue il logout",
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://www.google.it/",
"httpMethod": "GET",
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "''"
}
}
}
}
}
},
"/api/contactform": {
"post": {
"description": "Esegue l'invio di una mail dal contactform",
"responses": {
"200": {
"description": "200 Ok",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"api_key": []
}
],
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://www.google.it/",
"httpMethod": "GET",
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "''"
}
},
"Error!.": {
"statusCode": "400"
}
}
}
},
"options": {
"description": "Used for cors",
"responses": {
"200": {
"headers": {
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "http",
"uri": "https://cors.cors",
"httpMethod": "GET",
"responses": {
"2\d{2}": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization'",
"method.response.header.Access-Control-Allow-Methods": "'GET,POST,PUT,DELETE'",
"method.response.header.Access-Control-Allow-Origin": "'*'"
}
}
}
}
}
}
},
"definitions": {
"Error": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Schema",
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"fields": {
"type": "string"
}
}
},
"DateTime": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Date-Time Schema",
"type": "object",
"properties": {
"dateTime": {
"type": "integer",
"format": "int32"
}
}
}
}
}
from aws-apigateway-importer.
just remove the integration and create the api, then try to update the api with this representation
from aws-apigateway-importer.
Just pushed a fix - let me know if you see this again
from aws-apigateway-importer.
the problem still exist apparently, this is the full representation:
from aws-apigateway-importer.
{
"swagger":"2.0",
"info":{
"title":"Med Backend Dev",
"description":"Med Catering",
"version":"0.0.1"
},
"host":"apimed.soluzionifutura.it",
"schemes":[
"https"
],
"basePath":"/v1",
"produces":[
"application/json"
],
"security":[
{
"api_key":[
]
}
],
"paths":{
"/portfolio":{
"get":{
"description":"Restituisce le entry di portfolio",
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_QUERY/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_READ",
"requestTemplates":{
"application/json":"{ \"TableName\" : \"med_posts_dev\", \"IndexName\" : \"inPortfolio-dateTime-index\", \"KeyConditionExpression\": \"inPortfolio = :hkey\", \"ExpressionAttributeValues\": { \":hkey\": 1 }, \"ScanIndexForward\" : false}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/comunicazioni":{
"post":{
"description":"Crea una nuova comunicazione",
"parameters":[
{
"name":"dateTime",
"in":"body",
"required":"true",
"type":"number",
"schema":{
"$ref":"#/definitions/Articolo"
}
}
],
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_PUT/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_CREATE",
"requestTemplates":{
"application/json":"#set($inputRoot = $input.path('$')){ \"TableName\" : \"med_posts_dev\", \"Item\" : { \"alias\": \"$inputRoot.alias\", \"dateTime\": $inputRoot.dateTime, \"location\": \"$inputRoot.location\", \"title\": \"$inputRoot.title\", \"fullText\": \"$inputRoot.fullText\", \"images\": [ #foreach($elem in $inputRoot.images) \"$elem\" #if($foreach.hasNext),#end #end ], #if ($inputRoot.video) \"video\": { \"id\": \"$inputRoot.video.id\", \"start\": $inputRoot.video.start }, #end \"inHome\": $inputRoot.inHome, \"inPortfolio\": 0 }}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/comunicazioni/{alias}":{
"put":{
"description":"Aggiorna la comunicazione corrispondente all'alias",
"parameters":[
{
"name":"alias",
"in":"path",
"required":"true",
"type":"string"
}
],
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_UPDATE/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_UPDATE",
"requestParameters":{
"integration.request.path.alias":"method.request.path.alias"
},
"requestTemplates":{
"application/json":"#set($inputRoot = $input.path('$')){ \"TableName\" : \"med_posts_dev\", \"Item\" : { \"alias\": \"$inputRoot.alias\", \"dateTime\": $inputRoot.dateTime, \"location\": \"$inputRoot.location\", \"title\": \"$inputRoot.title\", \"fullText\": \"$inputRoot.fullText\", \"images\": [ #foreach($elem in $inputRoot.images) \"$elem\" #if($foreach.hasNext),#end #end ], #if ($inputRoot.video) \"video\": { \"id\": \"$inputRoot.video.id\", \"start\": $inputRoot.video.start }, #end \"inHome\": $inputRoot.inHome, \"inPortfolio\": 0 }}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/eventi":{
"post":{
"description":"Crea un nuovo evento",
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_PUT/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_CREATE",
"requestTemplates":{
"application/json":"#set($inputRoot = $input.path('$')){ \"TableName\" : \"med_posts_dev\", \"Item\" : { \"alias\": \"$inputRoot.alias\", \"dateTime\": $inputRoot.dateTime, \"location\": \"$inputRoot.location\", \"title\": \"$inputRoot.title\", \"fullText\": \"$inputRoot.fullText\", \"images\": [ #foreach($elem in $inputRoot.images) \"$elem\" #if($foreach.hasNext),#end #end ], #if ($inputRoot.video) \"video\": { \"id\": \"$inputRoot.video.id\", \"start\": $inputRoot.video.start }, #end \"inHome\": $inputRoot.inHome, \"inPortfolio\": 1 }}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/eventi/{alias}":{
"put":{
"description":"Aggiorna l'evento corrispondente all'alias",
"parameters":[
{
"name":"alias",
"in":"path",
"required":"true",
"type":"string"
}
],
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_UPDATE/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_UPDATE",
"requestParameters":{
"integration.request.path.alias":"method.request.path.alias"
},
"requestTemplates":{
"application/json":"#set($inputRoot = $input.path('$')){ \"TableName\" : \"med_posts_dev\", \"Item\" : { \"alias\": \"$inputRoot.alias\", \"dateTime\": $inputRoot.dateTime, \"location\": \"$inputRoot.location\", \"title\": \"$inputRoot.title\", \"fullText\": \"$inputRoot.fullText\", \"images\": [ #foreach($elem in $inputRoot.images) \"$elem\" #if($foreach.hasNext),#end #end ], #if ($inputRoot.video) \"video\": { \"id\": \"$inputRoot.video.id\", \"start\": $inputRoot.video.start }, #end \"inHome\": $inputRoot.inHome, \"inPortfolio\": 1 }}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/articoli":{
"get":{
"description":"Restituisce tutti gli elementi della tabella",
"parameters":[
{
"name":"alias",
"in":"query",
"required":"false",
"type":"string"
},
{
"name":"dateTime",
"in":"query",
"required":"false",
"type":"string"
}
],
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_SCAN/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_READ",
"requestTemplates":{
"application/json":"#set($alias = $input.params('alias'))#set($dateTime = $input.params('dateTime')){ \"TableName\" : \"med_posts_dev\", \"Limit\" : 15, \"ScanIndexForward\" : false #if ($dateTime != \"\" && $alias != \"\") , \"ExclusiveStartKey\": { \"dateTime\": $dateTime, \"alias\": \"$alias\" } #end}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/articoli/{alias}":{
"get":{
"description":"Restituisce l'articolo corrispondente all'alias",
"parameters":[
{
"name":"alias",
"in":"path",
"required":"true",
"type":"string"
}
],
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_QUERY/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_READ",
"requestParameters":{
"integration.request.path.alias":"method.request.path.alias"
},
"requestTemplates":{
"application/json":"#set($alias = $input.params('alias')){ \"TableName\" : \"med_posts_dev\", \"KeyConditionExpression\": \"alias = :hkey\", \"ExpressionAttributeValues\": { \":hkey\": \"$alias\" }}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"delete":{
"description":"Elimina l'articolo corrispondente all'alias",
"parameters":[
{
"name":"alias",
"in":"path",
"required":"true",
"type":"string"
},
{
"name":"dateTime",
"in":"body",
"required":"true",
"type":"number",
"schema":{
"$ref":"#/definitions/DateTime"
}
}
],
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_DELETE/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_DELETE",
"requestParameters":{
"integration.request.path.alias":"method.request.path.alias"
},
"requestTemplates":{
"application/json":"#set($alias = $input.params('alias'))#set($dateTime = $input.path('$').dateTime){ \"TableName\" : \"med_posts_dev\", \"Key\": { \"alias\": \"$alias\", \"dateTime\": $dateTime }}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/evidenza":{
"get":{
"summary":"Restituisce le entry in evidenza",
"description":"Le entry in evidenza possono essere sia di tipo portfolio che di tipo comunicazione",
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:DynamoDB-DocumentClient_QUERY/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/DynamoDB/DynamoDB_READ",
"requestTemplates":{
"application/json":"{ \"TableName\" : \"med_posts_dev\", \"IndexName\" : \"inHome-dateTime-index\", \"KeyConditionExpression\": \"inHome = :hkey\", \"ExpressionAttributeValues\": { \":hkey\": 1 }, \"ScanIndexForward\" : false, \"Limit\" : 7}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/login":{
"post":{
"description":"Esegue il login",
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"http",
"uri":"https://www.google.it/",
"httpMethod":"GET",
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/logout":{
"post":{
"description":"Esegue il logout",
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"http",
"uri":"https://www.google.it/",
"httpMethod":"GET",
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
},
"/contactform":{
"post":{
"description":"Crea un nuovo evento",
"parameters":[
{
"name":"SesEmail",
"in":"body",
"required":"true",
"type":"application/json",
"schema":{
"$ref":"#/definitions/SesEmail"
}
}
],
"responses":{
"200":{
"description":"200 Ok",
"headers":{
"Access-Control-Allow-Origin":{
"type":"string"
}
}
},
"400":{
"description":"Bad request",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"security":[
{
"api_key":[
]
}
],
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"aws",
"uri":"arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:477398036046:function:Ses_SendEmail/invocations",
"httpMethod":"POST",
"credentials":"arn:aws:iam::477398036046:role/Ses_SendEmail",
"requestTemplates":{
"application/json":"#set($inputRoot = $input.path('$'))#set($toAddresses = \"[email protected]\")#set($returnPath = \"[email protected]\")#set($source = \"[email protected]\")#set($subject = \"Mail inviata dal contact form del sito www.med.catering\"){ \"Destination\" : { \"ToAddresses\" : [\"$toAddresses\"] }, \"Message\" : { \"Body\" : { \"Html\" : { \"Data\" : #if( $inputRoot.Message.Body.Html.Data ) \"$inputRoot.Message.Body.Html.Data\" #else \"\" #end }, \"Text\" : { \"Data\" : #if( $inputRoot.Message.Body.Text.Data ) \"$inputRoot.Message.Body.Text.Data\" #else \"\" #end } }, \"Subject\" : { \"Data\" : \"$subject\", \"Charset\" : \"UTF-8\" } }, \"Source\" : \"$source\", \"ReplyToAddresses\" : [ #foreach($elem in $inputRoot.ReplyToAddresses) \"$elem\" #if($foreach.hasNext),#end #end ], \"ReturnPath\" : \"$returnPath\"}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
},
"Error | .*":{
"statusCode":"400"
}
}
}
},
"options":{
"description":"Used for cors",
"responses":{
"200":{
"headers":{
"Access-Control-Allow-Headers":{
"type":"string"
},
"Access-Control-Allow-Methods":{
"type":"string"
},
"Access-Control-Allow-Origin":{
"type":"string"
}
}
}
},
"x-amazon-apigateway-auth":{
"type":"none"
},
"x-amazon-apigateway-integration":{
"type":"MOCK",
"httpMethod":"GET",
"requestTemplates":{
"application/json":"{\"statusCode\":200}"
},
"responses":{
"default":{
"statusCode":"200",
"responseParameters":{
"method.response.header.Access-Control-Allow-Headers":"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
"method.response.header.Access-Control-Allow-Methods":"'*'",
"method.response.header.Access-Control-Allow-Origin":"'*'"
}
}
}
}
}
}
},
"definitions":{
"Error":{
"$schema":"http://json-schema.org/draft-04/schema#",
"title":"Error Schema",
"type":"object",
"properties":{
"code":{
"type":"integer",
"format":"int32"
},
"message":{
"type":"string"
},
"fields":{
"type":"string"
}
}
},
"DateTime":{
"$schema":"http://json-schema.org/draft-04/schema#",
"title":"Date-Time Schema",
"type":"object",
"properties":{
"dateTime":{
"type":"integer"
}
}
},
"Articolo":{
"$schema":"http://json-schema.org/draft-04/schema#",
"title":"Articolo Schema",
"type":"object",
"properties":{
"alias":{
"type":"string"
},
"dateTime":{
"type":"integer"
},
"location":{
"type":"string"
},
"title":{
"type":"string"
},
"fullText":{
"type":"string"
},
"images":{
"type":"array",
"items":{
"type":"string"
}
},
"video":{
"type":"object",
"properties":{
"id":{
"type":"string"
},
"start":{
"type":"integer"
}
}
},
"inHome":{
"type":"integer"
}
}
},
"SesEmail":{
"$schema":"http://json-schema.org/draft-04/schema#",
"title":"SesEmail Schema",
"type":"object",
"properties":{
"Destination":{
"type":"object",
"properties":{
"BccAddresses":{
"type":"array",
"items":{
"type":"string"
}
},
"CcAddresses":{
"type":"array",
"items":{
"type":"string"
}
},
"ToAddresses":{
"type":"array",
"items":{
"type":"string"
}
}
}
},
"Message":{
"type":"object",
"properties":{
"Body":{
"type":"object",
"properties":{
"Html":{
"type":"object",
"properties":{
"Data":{
"type":"string"
},
"Charset":{
"type":"string"
}
}
},
"Text":{
"type":"object",
"properties":{
"Data":{
"type":"string"
},
"Charset":{
"type":"string"
}
}
}
}
},
"Subject":{
"type":"object",
"properties":{
"Data":{
"type":"string"
},
"Charset":{
"type":"string"
}
}
}
}
},
"Source":{
"type":"string"
},
"ReplyToAddresses":{
"type":"array",
"items":{
"type":"string"
}
},
"ReturnPath":{
"type":"string"
},
"ReturnPathArn":{
"type":"string"
},
"SourceArn":{
"type":"string"
}
}
}
}
}
from aws-apigateway-importer.
Related Issues (20)
- Duplicate Model In Swagger File Because Of Same RequestBody variable Name HOT 1
- import Swagger failed - Parameter type formData not supported HOT 7
- com.amazonaws.util.json.JSONObject No Longer Available HOT 1
- Unable to import api definition from aws console? HOT 19
- Custom Authorizers wont' send CORS headers HOT 5
- "Invalid Mapping Expression Parameter" Error Thrown on method.request.path when Importing RAML with Nested uriParameters
- Support for ANY method with http proxy? HOT 1
- Polymorphism not supported? HOT 1
- Unable to create resource at path '/user/{userId}/fans': A sibling ({bizId}) of this resource already has a variable path part -- only one is allowed HOT 3
- A Linux AMI aws configuration HOT 1
- Root security definition HOT 2
- What's the relationship between Swagger definition and header returned by Lambda function? HOT 2
- Lambda invocation definition, does SAM respect ApiGateway section or Lambda section? HOT 2
- Importer does not create UserPoolAuthorizer. HOT 1
- Swagger import failing (created via app.swaggerhub.com, validated on http://editor.swagger.io/) HOT 3
- Error importing Swagger
- Explicit error message + support `example` swagger key
- base path issues with open banking API specifications
- Default value of properties
- Invalid model specified: Validation Result: warnings : [], errors : [Invalid model schema specified]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-apigateway-importer.