<commit_before># Rails File API

This is a file API for a coding challenge.


## API Endpoints

- `GET /fs_items` Returns JSON of top level files
- `GET /fs_items/:id` Returns JSON of a specific file by integer ID
- `PUT /fs_items/:id` Updates information (name, parent_id) for a given file<commit_msg>Updated API documentation for usage of the index<commit_after># Rails File API

This is a file API for a coding challenge.


## API Endpoints

- `GET /fs_items` Returns JSON of top level files. If you pass a fs_item= query string, it will return files nested under that id.

- `GET /fs_items/:id` Returns JSON of a specific file by integer ID
- `PUT /fs_items/:id` Updates information (name, parent_id) for a given file
{'fraction_non_alphanumeric': 0.07766990291262135, 'fraction_numerical': 0.0, 'mean_word_length': 3.9452054794520546, 'pattern_counts': {'":': 0, '<': 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': '6552795', 'n_tokens_mistral': 216, 'n_tokens_neox': 215, 'n_words': 109}