<commit_before>FORMAT: 1A
HOST: http://www.carlossouza.com/teamleader/

# Teamleader

This is a small (micro)service that calculates discounts for orders.

linked to:
https://github.com/teamleadercrm/coding-test/blob/master/1-discounts.md

## Questions Collection [/discounts]

### POST Discounts [POST]
+ Parameters
    + id (number) - Order Id
+ Response 200 (application/json)


        [
            {
                "id": "Order Id"
            }
        ]
        
        + Response 200 (application/json)

    + Headers

            Location: /questions/1

    + Body

{"discount":0,"discountType":"","itemFree":"B102","quantityItemFree":2,"newValue":39.92}<commit_msg>refactor request -> response<commit_after>FORMAT: 1A
HOST: http://www.carlossouza.com/teamleader/

# Teamleader

This is a small (micro)service that calculates discounts for orders.

linked to:
https://github.com/teamleadercrm/coding-test/blob/master/1-discounts.md

## Questions Collection [/discounts]

### POST Discounts [POST]
+ Parameters
    + id (number) - Order Id
+ Request 200 (application/json)


        [
            {
                "id": "Order Id"
            }
        ]
        
+ Response 200 (application/json)

    + Headers

            Location: /questions/1

    + Body

{"discount":0,"discountType":"","itemFree":"B102","quantityItemFree":2,"newValue":39.92}
{'fraction_non_alphanumeric': 0.13656387665198239, 'fraction_numerical': 0.02643171806167401, 'mean_word_length': 2.6346666666666665, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '3039128', 'n_tokens_mistral': 474, 'n_tokens_neox': 416, 'n_words': 87}