<commit_before># Deployster API v1

The Deployster API is the main entrypoint into controlling Deployster and executing deploys and tasks.

## Authentication
Requests are authenticated using HTTP Basic authentication.  Deployster is launched while specifying a username and password that must be provided with all requests.  If credentials are not provided, a `401 Unauthorized` will be returned.

## Deploys resource

### Start a new deploy
Trigger an asynchronous deploy of a service, optionally cleaning up an old version upon completion.

```http<commit_msg>Add detail for the destroy previous functionality.<commit_after># Deployster API v1

The Deployster API is the main entrypoint into controlling Deployster and executing deploys and tasks.

## Authentication
Requests are authenticated using HTTP Basic authentication.  Deployster is launched while specifying a username and password that must be provided with all requests.  If credentials are not provided, a `401 Unauthorized` will be returned.

## Deploys resource

### Start a new deploy
Trigger an asynchronous deploy of a service, optionally cleaning up an old version upon completion.  If destroy previous versions is enabled, Deployster will start all new instances and watch for these instances to be launched on a 1 second interval.  After each new instance has finished launching, the matching instance with the previous version will be destroyed.  There's a possibility that all instances of the old and new versions will be running for a brief period of time until the old instances start to be killed off.

```http
{'fraction_non_alphanumeric': 0.03335431088735054, 'fraction_numerical': 0.005663939584644431, 'mean_word_length': 4.977443609022556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3460343', 'n_tokens_mistral': 367, 'n_tokens_neox': 345, 'n_words': 229}