Skip to content

vietnguyengit/ogcapi-java

 
 

Repository files navigation

OGC API Java Implementation

This is a Java implementation of varies OGC api, you can find couples of APIs seperated into modules. Only the server module contains the real implementation, other modules are class generated from openapi files using swagger generator and do not expect any manual changes.

How code generated

WARNING: You may experience code generation problem when the code is running in Windows machine . Namely some enum will generated in two classes where one prefix with Api and the other emum contains empty skeleton.

All code generated using swagger generator with openapi file download online, these pages provide link to a website which store the openapi file.

The generator generates the interface and model only, the implementor need to implement those interface as needed.

Noted: There are typeMappings in api generator pom to force mapping to desire class instead of enum, this is because some of the definition in the openapi file is too restricted and not fit for purpose. The change will not break the api contract.

Another change will be on the file replacer, this is due to the following reasons:

  • javax package is removed in jdk17 and replaced by jakarta
  • unused extra import that cause compilation failure
  • return type ResponseEntity<String> is too restricted and need to be replaced by ResponseEntity<?>

Implementation

The server module contains the implementation of those interfaces, for details please read the README

Endpoints:

Description Endpoints Environment
Logfile /manage/logfile Edge
Beans info /manage/beans Edge
Env info /manage/env Edge
Info (Show version) /manage/info Edge
Health check /manage/health Edge

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.0%
  • Other 1.0%