Skip to content

Master data service for flights, airlines, airports built with CAP Java

License

Notifications You must be signed in to change notification settings

capire/xflights-java

capire/xflights-java

This is a CAP Java application that manages master data like Airlines, Airports, and Flights. It provides a reuse package for clients to consume this data. It is used in the xtravels-java application.

Run

To start the xflights application, run the Application class in your preferred IDE. Alternatively, execute mvn spring-boot:run on the command line.

Reuse

You can reuse the client package by adding it to your dependencies in your app's pom.xml:

<dependency>
    <groupId>sap.capire</groupId>
    <artifactId>xflights-data</artifactId>
    <version>1.0.0-SNAPSHOT</version>
</dependency>
_Using GitHub Packages..._

The reuse package is published to the GitHub Packages registry, which requires you to authenticate to GitHub's Maven repository by adding the following to your ~/.m2/settings.xml:

<servers>
  <!-- ... -->
  <server>
    <id>github</id>
    <username>USERNAME</username>
    <password>TOKEN</password>
  </server>
</servers>

As password you're using a Personal Access Token (classic) with read:packages scope. Read more about it in Authenticating to GitHub Packages.

Usage

Then you can import and use the entities in your CDS models like this:

using { sap.capire.flights.data.Flights } from 'capire/xflights-data';
// mashup with your own entities ...

Find examples for that in the xtravels-java application.

License

Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

About

Master data service for flights, airlines, airports built with CAP Java

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •