Use-case # | Account service | Reservation service |
---|---|---|
1 | 200 OK |
200 OK |
2 | 200 OK |
400 Bad Request |
3 | 200 OK |
403 Forbidden |
4 | 200 OK |
500 Internal Server Error |
5 | 200 OK |
200 OK (after 1500 millis to cause a read timeout) * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The configuration parameters outlined below are specifically optimized for execution across | |
* four (4) distributed workers, each provisioned with the n2d-highmem-48 machine type—offering | |
* 48 virtual CPUs and 384 GB of RAM per node. These settings have been carefully fine-tuned to | |
* support Spark workloads that process data on a monthly cadence, where each job ingests and | |
* computes over an entire month's worth of data in a single run on DataProc. | |
* | |
* The cluster total resources: | |
* - 4 workers * 48 vCPUs/worker = 192 total vCPUs | |
* - 4 workers * 384 GB RAM/worker = 1,536 GB total RAM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2023-2024 Alexander Zagniotov | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
alexPrintPrep($("textarea#phrase").val(), null, 210); | |
alexPrintPrep(address, privkey, 100); | |
<div id="printable-view-for-alex" class="alex-qr-container"></div> | |
@media print | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"reservation" : "p5e20A9hSi2IsV0soVpafQ==", | |
"name" : "Leanne Graham", | |
"phone" : "1-770-736-8031 x56442", | |
"basePrice" : "USD10.00", | |
"taxes" : "EUR19.62" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- request: | |
method: GET | |
url: /api/v1/reservations/1 | |
# When sequenced responses is configured, on each incoming request to the same URI, | |
# a subsequent response in the list will be sent to the client. The sequenced | |
# responses play in a cycle (loop). In other words: after the response sequence plays | |
# through, the cycle restarts on the next incoming request | |
# | |
# https://github.com/azagniotov/stubby4j#response-object-properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- request: | |
method: GET | |
url: /api/v1/accounts/1 | |
response: | |
status: 200 | |
headers: | |
content-type: application/json | |
file: json/account.service.expected.success.response.json | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
includes: | |
- include-account-service-stubs.yaml | |
- include-reservation-service-stubs.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This section builds flight-booking application image to the stack | |
version: '3.8' | |
services: | |
flight-booking-service: | |
build: . | |
container_name: flight-booking-service | |
ports: | |
- 8080:8080 | |
environment: |
- Adopted from: https://stubby4j.com/docs/admin_portal.html
- Inspired by Swagger API docs style & structure: https://petstore.swagger.io/#/pet
NewerOlder