THE CLOUD NATIVE API PLATFORM 2 2 Who am I 施 文翰(シ ブンカン) Wenhan Shi • 日立製作所 - Linux kernel module development/Support • Red Hat K.K. - GlusterFS/OpenShift Support • Canonical Japan K.K. - Ubuntu/OpenStack/Kubernetes Support • Rancher Lab/SUSE - Rancher Support • Kong Inc. - Solutions Engineer @shi_wenhan [email protected]
THE CLOUD NATIVE API PLATFORM 13 13 OpenAPI Specification(OAS)の例 openapi: 3.0.0 tags: - description: Creates a random UUDI and returns it in a JSON structure name: Generate UUID info: contact: email: [email protected] url: https://konghq.com/ description: A simple service returning a UUID based on https://httpbin.org title: UUID generator based on httpbin.org version: 1.0.0 paths: /uuid: get: operationId: uuid summary: Return a UUID. description: Return a UUID responses: "200": description: A UUID4. tags: - Generate UUID servers: - url: https://httpbin.org エンドポイント (path) と、 サポートされるメソッド (method) メタデータ titleとversionは必須 タグと説明 APIの所在