<commit_before># Gravitee Management REST API

Administrative Rest API to manage the Gateway

[![Build Status](http://build.gravitee.io/jenkins/buildStatus/icon?job=gravitee-management-rest-api)](http://build.gravitee.io/jenkins/view/Tous/job/gravitee-management-rest-api/)

## Building

```
$ git clone https://github.com/gravitee-io/gravitee-management-rest-api.git
$ cd gravitee-management-rest-api/war
$ mvn -Djetty.port=8083 jetty:run -Dgravitee.home=/|gravite-home-path|/ -Dgravitee.conf=/|gravite-conf-path|/gravitee.yml

...
<app starts and listens on port 8083>
```
The application can be package and deploy as web application (war file)
```
$ git clone https://github.com/gravitee-io/gravitee-management-rest-api.git
$ cd gravitee-management-rest-api/war
$ mvn package
...
<app war file can be find inside target/ folder>
<deploy it inside web container to get ready>
```
and also as a executable jar (embedded web application)
```
$ git clone https://github.com/gravitee-io/gravitee-management-rest-api.git
$ cd gravitee-management-rest-api/standalone
$ mvn package
...
<app jar file can be find inside target/ folder>
<you can start the application with the following command line>
$ java -jar target/<app_name>-executable.jar -Dgravitee.home=/|gravite-home-path|/ -Dgravitee.conf=/|gravite-conf-path|/gravitee.yml
...
<app starts and listens on port 8083>
```
## Application configuration file

A minimal configuration file (gravitee.yml) :

```
node:
  home: ${gravitee.home}

plugins:
  registry:
    path: ${gravitee.home}/plugins

repository:
  type: mongodb
  mongodb:
    dbname: gravitee
    host: localhost
    port: 27017

security:
  type: basic-auth
  authentication-manager:<commit_msg>refactor: Added documentation for configuration of JPA repository<commit_after># Gravitee Management REST API

Administrative Rest API to manage the Gateway

[![Build Status](http://build.gravitee.io/jenkins/buildStatus/icon?job=gravitee-management-rest-api)](http://build.gravitee.io/jenkins/view/Tous/job/gravitee-management-rest-api/)

## Building

```
$ git clone https://github.com/gravitee-io/gravitee-management-rest-api.git
$ cd gravitee-management-rest-api/war
$ mvn -Djetty.port=8083 jetty:run -Dgravitee.home=/|gravite-home-path|/ -Dgravitee.conf=/|gravite-conf-path|/gravitee.yml

...
<app starts and listens on port 8083>
```
The application can be package and deploy as web application (war file)
```
$ git clone https://github.com/gravitee-io/gravitee-management-rest-api.git
$ cd gravitee-management-rest-api/war
$ mvn package
...
<app war file can be find inside target/ folder>
<deploy it inside web container to get ready>
```
and also as a executable jar (embedded web application)
```
$ git clone https://github.com/gravitee-io/gravitee-management-rest-api.git
$ cd gravitee-management-rest-api/standalone
$ mvn package
...
<app jar file can be find inside target/ folder>
<you can start the application with the following command line>
$ java -jar target/<app_name>-executable.jar -Dgravitee.home=/|gravite-home-path|/ -Dgravitee.conf=/|gravite-conf-path|/gravitee.yml
...
<app starts and listens on port 8083>
```
## Application configuration file

A minimal configuration file (gravitee.yml) :

```
node:
  home: ${gravitee.home}

plugins:
  registry:
    path: ${gravitee.home}/plugins

repository:
  type: mongodb
  mongodb:
    dbname: gravitee
    host: localhost
    port: 27017

#  type: jpa
#  jpa:
#    hibernateDialect: org.hibernate.dialect.PostgreSQL9Dialect
#    driverClassName: org.postgresql.Driver
#    url: jdbc:postgresql://localhost/gravitee
#    hbm2ddlAuto: validate | update | create | create-drop
#    username: user
#    password: password

security:
  type: basic-auth
  authentication-manager:
{'fraction_non_alphanumeric': 0.12919552477357485, 'fraction_numerical': 0.009589770911028236, 'mean_word_length': 4.281293952180028, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5719143', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1251, 'n_words': 312}