https://github.com/entur/namtar
Application responsible for producing and providing persistent DatedServiceJourneyIds from NeTEx-data
https://github.com/entur/namtar
datedservicejourneyids java marduk postgresql ror spring-boot
Last synced: 2 months ago
JSON representation
Application responsible for producing and providing persistent DatedServiceJourneyIds from NeTEx-data
- Host: GitHub
- URL: https://github.com/entur/namtar
- Owner: entur
- License: eupl-1.2
- Created: 2018-06-13T08:17:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-14T10:06:17.000Z (11 months ago)
- Last Synced: 2025-02-28T22:41:20.684Z (10 months ago)
- Topics: datedservicejourneyids, java, marduk, postgresql, ror, spring-boot
- Language: Java
- Homepage:
- Size: 311 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# namtar [](https://circleci.com/gh/entur/namtar/tree/master)
Application responsible for producing and providing persistent DatedServiceJourneyIds from NeTEx-data
Healthcheck:
```
http://:/path/health/ready
http://:/path/health/up
```
# Usage
Lookup serviceJourneyId and date
```
http://:/path/api/{serviceJourneyId}/{version}/{date}
{version} is either number (0-n) or ´latest´
```
Reverse lookup to resolve serviceJourney, version and date from DatedServiceJourney
```
http://:/path/api/dated/{datedServiceJourneyId}
```
Reverse lookup to resolve all serviceJourneys that share the provided originalDatedServiceJourney
```
http://:/path/api/original/{originalDatedServiceJourneyId}
```
Example-response:
```
{
"serviceJourneyId": "XXX:ServiceJourney:1-234-567",
"departureDate": "2018-12-24",
"privateCode": "321",
"departureTime": "16:55",
"lineRef": "XXX:Line:256",
"version": 0,
"datedServiceJourneyId": "ENT:DatedServiceJourney:9876",
"publicationTimestamp": "2018-07-15T20:19:39",
"sourceFileName": "netex_export.zip",
"originalDatedServiceJourneyId": "ENT:DatedServiceJourney:1234"
}
```