<commit_before>[![Build Status](https://travis-ci.org/ONSdigital/Posie.svg?branch=master)](https://travis-ci.org/ONSdigital/Posie)

![Logo](http://www.80snostalgia.com/files/fluposie.jpg)

# Posie

Posie is a decryption service. It exposes two endpoints '/key' and '/import' which expose a public key and the decryption service respectively.

The key endpoint exposes a der format public key under the attribute 'key'.

The import endpoint accepts a single argument 'contents' submitted as a POST request and returns decrypted data under the 'data' attribute.

All requests have a json content type.<commit_msg>Update endpoint in docs<commit_after>[![Build Status](https://travis-ci.org/ONSdigital/Posie.svg?branch=master)](https://travis-ci.org/ONSdigital/Posie)

![Logo](http://www.80snostalgia.com/files/fluposie.jpg)

# Posie

Posie is a decryption service. It exposes two endpoints '/key' and '/decrypt' which expose a public key and the decryption service respectively.

The key endpoint exposes a der format public key under the attribute 'key'.

The decrypt endpoint accepts a single argument 'contents' submitted as a POST request and returns decrypted data under the 'data' attribute.

All requests have a json content type.
{'fraction_non_alphanumeric': 0.09724473257698542, 'fraction_numerical': 0.0032414910858995136, 'mean_word_length': 5.053921568627451, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '844614', 'n_tokens_mistral': 366, 'n_tokens_neox': 344, 'n_words': 136}