<commit_before>FORMAT: 1A
HOST: http://polls.apiblueprint.org/

# Polls API

Polls is a simple API allowing consumers to view polls and vote in them.

## Questions Collection [/questions]

### List All Questions [GET]

+ Response 200 (application/json)

        [
            {
                "question": "Favourite programming language?",
                "published_at": "2015-08-05T08:40:51.620Z",
                "choices": [
                    {
                        "choice": "Swift",
                        "votes": 2048
                    }, {
                        "choice": "Python",
                        "votes": 1024
                    }, {
                        "choice": "Objective-C",
                        "votes": 512
                    }, {
                        "choice": "Ruby",
                        "votes": 256
                    }
                ]
            }
        ]

### Create a New Question [POST]

You may create your own question using this action. It takes a JSON
object containing a question and a collection of answers in the
form of choices.

+ Request (application/json)

        {
            "question": "Favourite programming language?",
            "choices": [
                "Swift",
                "Python",
                "Objective-C",
                "Ruby"
            ]
        }

+ Response 201 (application/json)

    + Headers

            Location: /questions/2

    + Body

            {
                "question": "Favourite programming language?",
                "published_at": "2015-08-05T08:40:51.620Z",
                "choices": [
                    {
                        "choice": "Swift",
                        "votes": 0
                    }, {
                        "choice": "Python",
                        "votes": 0
                    }, {
                        "choice": "Objective-C",
                        "votes": 0
                    }, {
                        "choice": "Ruby",
                        "votes": 0
                    }
                ]
            }<commit_msg>Transferring API Description file from Apiary.io<commit_after>FORMAT: 1A
HOST: https://doqman.herokuapp.com/

# Doqman
API for the Doqman Document Management System

# Group Users
Resources related to users account access

## User Login [/users/login]

### Logs A User In [POST]

+ Response 202 (application/json)
    {

    }

## User Logout [/users/logout]

### Logs A User Out [POST]

+ Response 200 (application/json)
    {

    }

## Create User [/users/]

### Creates a New User [POST]

+ Response 201 (application/json)
    {

    }

## Instances of User [/users/]

### Find Matching Instances of User [GET]

+ Response 200 
    {

    }

## Users Pagination [/users/?limit={integer}&offset={integer}]

### Pagination For Users [GET]

+ Response 200
    {

    }

## Find User [/users/{user_id}]

### Finds A User With The Specified ID [GET]

+ Response 200 (application/json)
    {

    }

## Update User [/users/{user_id}]

### Updates A User's Attributes [PUT]

+ Response 200 (application/json)
    {

    }

## Delete User [/users/{user_id}]

### Deletes A User [DELETE]

+ Response 204

# Group Documents
Resources related to documents attached to users accounts

## Create Document [/documents/]

### Creates A New Document Instance [POST]

+ Response 200 
    {

    }

## Get Document [/documents/]

### Find Matching Instances Of Document [GET]

+ Response 200 
    {

    }

## Document Pagination [/documents/?limit={integer}&offset={integer}]

### Pagination For Document List [GET]

+ Response 200 
    {

    }

## Find Document [/documents/{document_id}]

### Finds A Document [GET]

+ Response 200
    {

    }

## Update Document Attributes [/documents/{document_id}]

### Updates A Document's Attribute [PUT]

+ Response 200 
    {

    }

## Delete Document [/documents/{document_id}]

### Deletes A Document [DELETE]

+ Response 204

## Find All Documents For User [/users/{user_id}/documents]

### Find All Documents Belonging To A User [GET]

+ Response 200 (application/json)
    {

    }

# Group Search

## Search For A User [/search/users/?q={username}]

### Search For A User [GET]

+ Response 200 (application/json)
    {

    }

## Search For A Document [/search/documents/?q={doctitle}]

### Search For A Document [GET]
{'fraction_non_alphanumeric': 0.12204634090387703, 'fraction_numerical': 0.025005735260380822, 'mean_word_length': 1.631261315630658, 'pattern_counts': {'":': 24, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4837870', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1196, 'n_words': 352}