https://github.com/capire/xflights-java
Master data service for flights, airlines, airports built with CAP Java
https://github.com/capire/xflights-java
cap cds flights java reuse
Last synced: 5 months ago
JSON representation
Master data service for flights, airlines, airports built with CAP Java
- Host: GitHub
- URL: https://github.com/capire/xflights-java
- Owner: capire
- License: apache-2.0
- Created: 2025-10-07T11:48:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2026-01-12T10:50:03.000Z (5 months ago)
- Last Synced: 2026-01-12T19:00:00.275Z (5 months ago)
- Topics: cap, cds, flights, java, reuse
- Language: CAP CDS
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/capire/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`:
```xml
sap.capire
xflights-data
1.0.0-SNAPSHOT
```
_Using GitHub Packages..._
The reuse package is published to the [GitHub Packages](https://docs.github.com/packages) registry,
which requires you to authenticate to GitHub's Maven repository by adding the following to your `~/.m2/settings.xml`:
```xml
github
USERNAME
TOKEN
```
As password you're using a Personal Access Token (classic) with `read:packages` scope.
Read more about it in [Authenticating to GitHub Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry).
## Usage
Then you can import and use the entities in your CDS models like this:
```cds
using { sap.capire.flights.data.Flights } from 'capire/xflights-data';
// mashup with your own entities ...
```
Find examples for that in the [_xtravels-java_ application](https://github.com/capire/xtravels-java/blob/main/db/master-data.cds).
## 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](LICENSE) file.