Skip to content

Commit

Permalink
mad summit 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurzydym committed Jun 12, 2024
1 parent 6265f5e commit 949975b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions backstage/examples/address-validation-service/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"metadata": {
"name": "address-validation-service",
"links": [{
"url": "http://address-validation.ok-cluster.azure.cloud.openknowledge.services/webjars/swagger-ui/index.html",
"url": "http://address-validation.api-workshop.azure.cloud.openknowledge.services/webjars/swagger-ui/index.html",
"title": "Address Validation Service"
}],
"annotations": {
Expand Down Expand Up @@ -38,7 +38,7 @@
"type": "openapi",
"lifecycle": "production",
"owner": "ok-user-team",
"definition": "{\"servers\":[{\"url\":\"http://address-validation.ok-cluster.azure.cloud.openknowledge.services\"}],\"components\":{\"schemas\":{\"Address\":{\"properties\":{\"city\":{\"$ref\":\"#/components/schemas/City\",\"type\":\"object\"},\"street\":{\"$ref\":\"#/components/schemas/Street\",\"type\":\"object\"}},\"type\":\"object\"},\"City\":{\"properties\":{\"zipCode\":{\"type\":\"string\"},\"cityName\":{\"type\":\"string\"}},\"type\":\"object\"},\"Street\":{\"properties\":{\"number\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"}},\"type\":\"object\"}}},\"openapi\":\"3.0.1\",\"paths\":{\"/valid-addresses\":{\"post\":{\"operationId\":\"validateAddress\",\"parameters\":[],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"nullable\":true,\"properties\":{},\"type\":\"object\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"nullable\":true,\"properties\":{},\"type\":\"object\"}}},\"description\":\"default response\"}}}}}}"
"definition": "{\"servers\":[{\"url\":\"http://address-validation.api-workshop.azure.cloud.openknowledge.services\"}],\"components\":{\"schemas\":{\"Address\":{\"properties\":{\"city\":{\"$ref\":\"#/components/schemas/City\",\"type\":\"object\"},\"street\":{\"$ref\":\"#/components/schemas/Street\",\"type\":\"object\"}},\"type\":\"object\"},\"City\":{\"properties\":{\"zipCode\":{\"type\":\"string\"},\"cityName\":{\"type\":\"string\"}},\"type\":\"object\"},\"Street\":{\"properties\":{\"number\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"}},\"type\":\"object\"}}},\"openapi\":\"3.0.1\",\"paths\":{\"/valid-addresses\":{\"post\":{\"operationId\":\"validateAddress\",\"parameters\":[],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"nullable\":true,\"properties\":{},\"type\":\"object\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"nullable\":true,\"properties\":{},\"type\":\"object\"}}},\"description\":\"default response\"}}}}}}"
}
}
]
4 changes: 2 additions & 2 deletions backstage/examples/billing-service/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"metadata": {
"name": "billing-service",
"links": [{
"url": "http://billing.ok-cluster.azure.cloud.openknowledge.services/webjars/swagger-ui/index.html",
"url": "http://billing.api-workshop.azure.cloud.openknowledge.services/webjars/swagger-ui/index.html",
"title": "Billing Service"
}],
"annotations": {
Expand Down Expand Up @@ -38,7 +38,7 @@
"type": "openapi",
"lifecycle": "production",
"owner": "ok-user-team",
"definition": "{\"servers\":[{\"url\":\"http://billing.ok-cluster.azure.cloud.openknowledge.services\"}],\"components\":{\"schemas\":{\"Address\":{\"properties\":{\"city\":{\"$ref\":\"#/components/schemas/City\",\"example\":\"26122 Oldenburg\",\"type\":\"object\"},\"street\":{\"$ref\":\"#/components/schemas/Street\",\"type\":\"object\"},\"recipient\":{\"$ref\":\"#/components/schemas/Recipient\",\"example\":\"Max Mustermann\",\"type\":\"object\"}},\"type\":\"object\"},\"Recipient\":{\"example\":\"Max Mustermann\",\"properties\":{},\"type\":\"object\"},\"Street\":{\"properties\":{\"number\":{\"example\":\"1\",\"type\":\"string\"},\"name\":{\"example\":\"Poststr.\",\"type\":\"string\"}},\"type\":\"object\"},\"City\":{\"example\":\"26122 Oldenburg\",\"properties\":{},\"type\":\"object\"}}},\"openapi\":\"3.0.1\",\"paths\":{\"/billing-addresses/{customerNumber}\":{\"get\":{\"operationId\":\"getAddress\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"description\":\"default response\"}}},\"post\":{\"operationId\":\"setAddress\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"nullable\":true,\"properties\":{},\"type\":\"object\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"nullable\":true,\"properties\":{},\"type\":\"object\"}}},\"description\":\"default response\"}}}}}}"
"definition": "{\"servers\":[{\"url\":\"http://billing.api-workshop.azure.cloud.openknowledge.services\"}],\"components\":{\"schemas\":{\"Address\":{\"properties\":{\"city\":{\"$ref\":\"#/components/schemas/City\",\"example\":\"26122 Oldenburg\",\"type\":\"object\"},\"street\":{\"$ref\":\"#/components/schemas/Street\",\"type\":\"object\"},\"recipient\":{\"$ref\":\"#/components/schemas/Recipient\",\"example\":\"Max Mustermann\",\"type\":\"object\"}},\"type\":\"object\"},\"Recipient\":{\"example\":\"Max Mustermann\",\"properties\":{},\"type\":\"object\"},\"Street\":{\"properties\":{\"number\":{\"example\":\"1\",\"type\":\"string\"},\"name\":{\"example\":\"Poststr.\",\"type\":\"string\"}},\"type\":\"object\"},\"City\":{\"example\":\"26122 Oldenburg\",\"properties\":{},\"type\":\"object\"}}},\"openapi\":\"3.0.1\",\"paths\":{\"/billing-addresses/{customerNumber}\":{\"get\":{\"operationId\":\"getAddress\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"description\":\"default response\"}}},\"post\":{\"operationId\":\"setAddress\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"nullable\":true,\"properties\":{},\"type\":\"object\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"nullable\":true,\"properties\":{},\"type\":\"object\"}}},\"description\":\"default response\"}}}}}}"
}
}
]
4 changes: 2 additions & 2 deletions backstage/examples/customer-service/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"metadata": {
"name": "customer-service",
"links": [{
"url": "http://customer.ok-cluster.azure.cloud.openknowledge.services/webjars/swagger-ui/index.html",
"url": "http://customer.api-workshop.azure.cloud.openknowledge.services/webjars/swagger-ui/index.html",
"title": "Customer Service"
}],
"annotations": {
Expand Down Expand Up @@ -38,7 +38,7 @@
"type": "openapi",
"lifecycle": "production",
"owner": "ok-user-team",
"definition": "{\"servers\":[{\"url\":\"http://customer.ok-cluster.azure.cloud.openknowledge.services\"}],\"components\":{\"schemas\":{\"Address\":{\"properties\":{\"city\":{\"example\":\"26122 Oldenburg\",\"type\":\"string\"},\"street\":{\"$ref\":\"#/components/schemas/Street\",\"type\":\"object\"},\"recipient\":{\"example\":\"Max Mustermann\",\"type\":\"string\"}},\"type\":\"object\"},\"Street\":{\"properties\":{\"number\":{\"example\":\"1\",\"type\":\"string\"},\"name\":{\"example\":\"Poststr.\",\"type\":\"string\"}},\"type\":\"object\"},\"Customer\":{\"properties\":{\"number\":{\"example\":\"0815\",\"type\":\"string\"},\"deliveryAddress\":{\"$ref\":\"#/components/schemas/Address\"},\"name\":{\"example\":\"Max Mustermann\",\"type\":\"string\"},\"billingAddress\":{\"$ref\":\"#/components/schemas/Address\"}},\"type\":\"object\"}}},\"openapi\":\"3.0.1\",\"paths\":{\"/customers/{customerNumber}/billing-address\":{\"put\":{\"operationId\":\"setBillingAddress\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"204\":{\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}},\"description\":\"No content\"}}}},\"/customers/{customerNumber}\":{\"get\":{\"operationId\":\"getCustomer\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"}}},\"description\":\"default response\"}}}},\"/customers\":{\"get\":{\"operationId\":\"getCustomers\",\"parameters\":[],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"items\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"},\"type\":\"array\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"items\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"},\"type\":\"array\"}}},\"description\":\"default response\"}}},\"post\":{\"operationId\":\"createCustomer\",\"parameters\":[],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"201\":{\"content\":{\"application/json\":{\"schema\":{}}},\"description\":\"\",\"headers\":{\"Location\":{\"allowEmptyValue\":false,\"deprecated\":false,\"description\":\"contains the url of the created customer\",\"required\":false,\"style\":\"simple\"}}}}}},\"/customers/{customerNumber}/delivery-address\":{\"put\":{\"operationId\":\"setDeliveryAddress\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"204\":{\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}},\"description\":\"No content\"}}}}}}"
"definition": "{\"servers\":[{\"url\":\"http://customer.api-workshop.azure.cloud.openknowledge.services\"}],\"components\":{\"schemas\":{\"Address\":{\"properties\":{\"city\":{\"example\":\"26122 Oldenburg\",\"type\":\"string\"},\"street\":{\"$ref\":\"#/components/schemas/Street\",\"type\":\"object\"},\"recipient\":{\"example\":\"Max Mustermann\",\"type\":\"string\"}},\"type\":\"object\"},\"Street\":{\"properties\":{\"number\":{\"example\":\"1\",\"type\":\"string\"},\"name\":{\"example\":\"Poststr.\",\"type\":\"string\"}},\"type\":\"object\"},\"Customer\":{\"properties\":{\"number\":{\"example\":\"0815\",\"type\":\"string\"},\"deliveryAddress\":{\"$ref\":\"#/components/schemas/Address\"},\"name\":{\"example\":\"Max Mustermann\",\"type\":\"string\"},\"billingAddress\":{\"$ref\":\"#/components/schemas/Address\"}},\"type\":\"object\"}}},\"openapi\":\"3.0.1\",\"paths\":{\"/customers/{customerNumber}/billing-address\":{\"put\":{\"operationId\":\"setBillingAddress\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"204\":{\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}},\"description\":\"No content\"}}}},\"/customers/{customerNumber}\":{\"get\":{\"operationId\":\"getCustomer\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"}}},\"description\":\"default response\"}}}},\"/customers\":{\"get\":{\"operationId\":\"getCustomers\",\"parameters\":[],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"items\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"},\"type\":\"array\"}}},\"description\":\"default response\"},\"default\":{\"content\":{\"application/json\":{\"schema\":{\"items\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"},\"type\":\"array\"}}},\"description\":\"default response\"}}},\"post\":{\"operationId\":\"createCustomer\",\"parameters\":[],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Customer\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"201\":{\"content\":{\"application/json\":{\"schema\":{}}},\"description\":\"\",\"headers\":{\"Location\":{\"allowEmptyValue\":false,\"deprecated\":false,\"description\":\"contains the url of the created customer\",\"required\":false,\"style\":\"simple\"}}}}}},\"/customers/{customerNumber}/delivery-address\":{\"put\":{\"operationId\":\"setDeliveryAddress\",\"parameters\":[{\"allowEmptyValue\":false,\"allowReserved\":false,\"description\":\"The business identifier of a customer \",\"example\":\"0815\",\"in\":\"path\",\"name\":\"customerNumber\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Address\",\"type\":\"object\"}}},\"required\":true},\"responses\":{\"204\":{\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}},\"description\":\"No content\"}}}}}}"
}
}
]
Loading

0 comments on commit 949975b

Please sign in to comment.