<commit_before>+++++++++++++
Api reference
+++++++++++++

App list
========

Returns the app list.

    * Method: GET
    * URI: /apps
    * Format: json

Returns 200 in case of sucess, and json in the body of the response containing the app list.

Example:

.. highlight:: bash

::

    GET /apps HTTP/1.1
    Content-Legth: 82
    [{"Ip":"10.10.10.10","Name":"app1","Units":[{"Name":"app1/0","State":"started"}]}]

App detail
==========

Returns an app.

    * Method: GET
    * URI: /apps/:appname
    * Format: json

Returns 200 in case o f sucess, ando json in the body of the response containing the app.

Example:

.. highlight:: bash

::

    GET /apps/myapp HTTP/1.1
    Content-Legth: 284
    {"Name":"app1","Framework":"php","Repository":"<EMAIL>:php.git","State":"dead", "Units":[{"Ip":"10.10.10    .10","Name":"app1/0","State":"started"}, {"Ip":"9.9.9.9","Name":"app1/1","State":"started"}, {"Ip":"","Name":"app1/2","Stat    e":"pending"}],"Teams":["tsuruteam","crane"]}<commit_msg>docs/api: added docs for remove app resource.<commit_after>+++++++++++++
Api reference
+++++++++++++

App list
========

Returns the app list.

    * Method: GET
    * URI: /apps
    * Format: json

Returns 200 in case of success, and json in the body of the response containing the app list.

Example:

.. highlight:: bash

::

    GET /apps HTTP/1.1
    Content-Legth: 82
    [{"Ip":"10.10.10.10","Name":"app1","Units":[{"Name":"app1/0","State":"started"}]}]

App detail
==========

Returns an app.

    * Method: GET
    * URI: /apps/:appname
    * Format: json

Returns 200 in case of success, ando json in the body of the response containing the app.

Example:

.. highlight:: bash

::

    GET /apps/myapp HTTP/1.1
    Content-Legth: 284
    {"Name":"app1","Framework":"php","Repository":"<EMAIL>:php.git","State":"dead", "Units":[{"Ip":"10.10.10    .10","Name":"app1/0","State":"started"}, {"Ip":"9.9.9.9","Name":"app1/1","State":"started"}, {"Ip":"","Name":"app1/2","Stat    e":"pending"}],"Teams":["tsuruteam","crane"]}

App remove
==========

Removes an app.

    * Method: DELETE
    * URI: /apps/:appname

Returns 200 in case of success.

Example:

.. highlight:: bash

::

    DELETE /apps/myapp HTTP/1.1
{'fraction_non_alphanumeric': 0.23734177215189872, 'fraction_numerical': 0.04294755877034358, 'mean_word_length': 3.7489270386266096, 'pattern_counts': {'":': 40, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4386249', 'n_tokens_mistral': 821, 'n_tokens_neox': 749, 'n_words': 195}