2018-03-17 14:47:09 +01:00
2018-03-17 14:47:09 +01:00
2018-03-10 12:39:45 +01:00
2018-03-17 13:38:12 +01:00

Simple project that gets information about specific owner and his specific repository information usign github rest api v3.

Aplication serve one rest method::

GET /repositories/{owner}/{repository-name}

and it returns information:

{ "fullName": "...", "description": "...", "cloneUrl": "...", "stars": 0, "createdAt": "..." }


Compile project

To build project you need maven >= 3.0 and java 1.8

Run build:

mvn clean install


Run project

Simply use:

java -jar github-repo-seeker-1.0-SNAPSHOT-jar-with-dependencies.jar

Configuration

Configuration can be changed by placing along with the jar file named config.yaml

Default configuration:

server:
  port: 8080
  threads: 1
  development: false

app:
  clientPoolSize: 20 #http client pool size
  clientTimeout: 10 #in seconds
  githubResourceV3: https://api.github.com/repos/
  githubUserAgent: Allegro-exercise
  githubAccept: application/vnd.github.v3+json
  githubUserBasic: YWxsZWdyb0V4ZXJjaXNlOkNpSHVuQmFIaWR1andpNg==
S
Description
No description provided
Readme
71 KiB
0 Stars 1 Watchers 0 Forks
Languages
Java 100%