Hi all,
I saw several posts like this, but no resolving answer.
I can’t import an open api json also using the .net scaffolding base API project without any personal impementation.
The json result is
{
"openapi": "3.0.1",
"info": {
"title": "WebApplication20 | v1",
"version": "1.0.0"
},
"servers": [
{
"url": "https://localhost:7233"
},
{
"url": "http://localhost:5213"
}
],
"paths": {
"/weatherforecast": {
"get": {
"tags": [
"WebApplication20"
],
"operationId": "GetWeatherForecast",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WeatherForecast"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"WeatherForecast": {
"required": [
"date",
"temperatureC",
"summary"
],
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date"
},
"temperatureC": {
"type": "integer",
"format": "int32"
},
"summary": {
"type": "string",
"nullable": true
},
"temperatureF": {
"type": "integer",
"format": "int32"
}
}
}
}
},
"tags": [
{
"name": "WebApplication20"
}
]
}
I can import it only with copy/paste the JSON and not using the url http://localhost
Same error with http
Postman notify me Error while fetching data from link
Postman v11.36.6
Can someone help me to figure out the problem?
Thank you!