OpenAPI 仕様ファイルに問題があります。公開された URL を呼び出して ID を「GET」しようとしていますが、サービスをローカルにポート転送し、API ドキュメントを介してリクエストを送信しようとするたびに、接続が拒否されます。助けていただければ幸いです。私が期待しているIDはJSON形式です。以下は私の仕様ファイルです
openapi: "3.0.0"
info:
version: 1.0.0
title: Id Generator
servers:
url: www.someurl.com
paths:
/posts:
get:
summary: Get Id
operationId: id
tags:
- posts
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: "#/definition/Post"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/definition/Error"
definition:
Post:
type: object
properties:
id:
type: string
Error:
properties:
id:
type: string