Coner Core is a REST API service for core autocross event operations.
- Create and access:
- Events
- Registrations
- Runs
- Handicap/Competition Groups
- Attach a time to the first run at a given event lacking a time
- Score runs for a single registration
Coner Core is in an early alpha stage of development.
Scaffold Phase 1 aims to implement the bare minimum level of functionality in the core service such that UI development can begin- Scaffold Phase 2 aims to fill in the gaps left in phase 1 such that the UI can reach a bare minimum level of functionality
Refer to this section for released versions of Coner Core.
To run a release build you'll need
- Java 8
- Port 8080 and 8081 available
Download a release from this project's Releases page and unzip it.
cdinto the folder where you extracted the release and do:java -jar coner-core-service-${version}.jar server test.yml
Refer to this section if you want to compile the code yourself.
To build from source, you'll need
- JDK 8
- Port 8080 and 8081 available
./mvnw clean packagejava -jar service/target/coner-core-service-${version}.jar server service/src/test/resources/config/test.yml
After you've started the service using any of the above methods, the last few lines should resemble the following:
INFO [2017-09-05 02:19:14,843] org.eclipse.jetty.server.handler.ContextHandler: Started i.d.j.MutableServletContextHandler@161451a4{/,null,AVAILABLE}
INFO [2017-09-05 02:19:14,848] org.eclipse.jetty.server.AbstractConnector: Started application@3a33872d{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
INFO [2017-09-05 02:19:14,848] org.eclipse.jetty.server.AbstractConnector: Started admin@439be00{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
INFO [2017-09-05 02:19:14,848] org.eclipse.jetty.server.Server: Started @3545ms
You may request a listing of events:
$ curl http://localhost:8080/events
{"events":[]}
Since you've probably just started up the service, there aren't any yet. Refer to the API spec for information about more operations.
You may check the service's health:
$ curl http://localhost:8081/healthcheck
{"deadlocks":{"healthy":true},"hibernate":{"healthy":true}}
Coner Core uses Swagger to document its API resources. While the service is running, visit its Swagger UI.
Interested in contributing to Coner Core? Please take a look at our contributing guidlines