packages feed

mellon-web-0.7.0.1: API.md

## Mellon API


## GET /state

#### Authentication



Clients must supply the following data


#### Response:

- Status code 200
- Headers: []

- Supported content types are:

    - `application/json`
    - `text/html;charset=utf-8`

- Locked

```javascript
{"state":"Locked","until":[]}
```

- Locked

```html
<!DOCTYPE HTML><html><head><title>Mellon state</title></head><body>Locked</body></html>
```

- Unlocked until a given date

```javascript
{"state":"Unlocked","until":"2015-10-06T00:00:00Z"}
```

- Unlocked until a given date

```html
<!DOCTYPE HTML><html><head><title>Mellon state</title></head><body>Unlocked until 2015-10-06 00:00:00 UTC</body></html>
```

## PUT /state

#### Authentication



Clients must supply the following data


#### Request:

- Supported content types are:

    - `application/json`

- Example: `application/json`

```javascript
{"state":"Locked","until":[]}
```

#### Response:

- Status code 200
- Headers: []

- Supported content types are:

    - `application/json`
    - `text/html;charset=utf-8`

- Locked

```javascript
{"state":"Locked","until":[]}
```

- Locked

```html
<!DOCTYPE HTML><html><head><title>Mellon state</title></head><body>Locked</body></html>
```

- Unlocked until a given date

```javascript
{"state":"Unlocked","until":"2015-10-06T00:00:00Z"}
```

- Unlocked until a given date

```html
<!DOCTYPE HTML><html><head><title>Mellon state</title></head><body>Unlocked until 2015-10-06 00:00:00 UTC</body></html>
```

## GET /time

#### Authentication



Clients must supply the following data


#### Response:

- Status code 200
- Headers: []

- Supported content types are:

    - `application/json`
    - `text/html;charset=utf-8`

- 2015-10-06

```javascript
"2015-10-06T00:00:00Z"
```

- 2015-10-06

```html
<!DOCTYPE HTML><html><head><title>Server time</title></head><body>Server time is 2015-10-06 00:00:00 UTC</body></html>
```