Table of content



The SeatCategory entity within the microservice architecture

Entity-Relationship-Model of <PassengerBookingService>

Entity Name: SeatCategory

Data Schema: AirportLogistics

Master Service: PassengerBookingService


Dataflow of entity of SeatCategory

Microservices

3.1 AirplaneService3.2 AirportService3.3 CargoService3.4 CountryService3.5 EmployeeService3.6 LuggageService
3.7 PassengerBookingService

Entity Properties

Property NameDatatypeData EntityReference Entity
CategoryNameSTRINGSeatCategory
DescriptionSTRINGSeatCategory
PrimaryKeyLONGSeatCategory
ServerReplicationVersionLONGSeatCategory

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/seat/seatcategory/{id}GETfindAllSeatOfSeatCategory(id)PassengerBookingServiceSeatCategory Seat
/seatcategoryPOSTinsertSeatCategory(seatcategory)PassengerBookingServiceSeatCategory
/seatcategoryGETfindAllSeatCategory()PassengerBookingServiceSeatCategory
/seatcategory/{id}GETfindSeatCategoryById(id)PassengerBookingServiceSeatCategory
/seatcategory/{id}DELETEdeleteSeatCategoryById(id)PassengerBookingServiceSeatCategory
/seatcategory/{id}PUTupdateSeatCategoryById(seatcategory)PassengerBookingServiceSeatCategory

Distributed transaction of <SeatCategory>

Pseudo code snippet

final SeatCategory seatcategory = (SeatCategory) this.callMicroservice(ServiceNames.PASSENGER_BOOKING_SERVICE + "/seatcategory/" + id, SeatCategory.class);
if (seatcategory != null) {
}
return seatcategory;


Table of content