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

# MoMoMods

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: http://momomods.apiblueprint.org/

# MoMoMods

MoMoMods helps you plan your timetable with friends!

## Timetable [/{year}/{sem}/timetable]

### Get Timetable for year and sem [GET]

+ Response 200 (application/json)

        [
            {
                "module_code": "CS1010",
                "lesson_type": "sectional",
                "class_number": "1"
            }
        ]

### Add module to Timetable [POST]

You can add a module to a timetable.
The response is the complete timetable for year and sem with the module added.

+ Request (application/json)

        [
            {
                "module_code": "CS1010",
                "lesson_type": "tutorial",
                "class_number": "2",
            }
        ]

+ Response 201 (application/json)

        [
            {
                "module_code": "CS1010",
                "lesson_type": "sectional",
                "class_number": "1"
            },
            {
                "module_code": "CS1010",
                "lesson_type": "tutorial",
                "class_number": "2",
            }
        ]
        
## Group Collection [/{year}/{sem}/group]

### List groups I belong to [GET]

+ Response 200 (application/json)

        [
            {
                "group_id": "1",
                "group_name": "3216 assignment 3",
                "members": ["1", "2"]
            }
        ]

### Create a new group [POST]

+ Request (application/json)

        [
            {
                "group_name": "3216 final project"
            }
        ]

+ Response 200 (application/json)

        [
            {
                "group_id": "3",
                "group_name": "3216 final project",
                "members": ["1"]
            }
        ]
        
## Group [/{year}/{sem}/group/{id}]

### Get group info [GET]

+ Response 200 (application/json)

        {
            "group_id": "{id}",
            "group_name": "3216 final project",
            "members": ["1", "2"]
        }

### Add members to group [POST]

+ Request (application/json)

        {
            "members": ["2", "3"]
        }

+ Response 200 (application/json)

        [
            {
                "group_id": "3",
                "group_name": "3216 final project",
                "members": ["1", "2", "3"]
            }
        ]
        
## Friends [/friends]

### Get connected friends [GET]

+ Response 200 (application/json)

        [
            {
                "friend_name": "Niko",
                "user_id": "2"
            },
            {
                "friend_name": "Mich",
                "user_id": "3"
            },
            {
                "friend_name": "Pat",
                "user_id": "3"
            }
        ]
{'fraction_non_alphanumeric': 0.12329603255340793, 'fraction_numerical': 0.028280773143438454, 'mean_word_length': 1.0698947368421052, 'pattern_counts': {'":': 56, '<': 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': '1395127', 'n_tokens_mistral': 1482, 'n_tokens_neox': 1278, 'n_words': 316}