<commit_before>## Retrieving all the terms of a synonyms list

Use this API to retrieve all synonyms from a list.

**Requirement:** OpenSearchServer v1.5

### Call parameters

**URL:** ```/services/rest/index/{index_name}/synonyms/{list_name}```

**Method:** ```GET```

**Header**:
- _**Accept**_ (optional returned type): ```application/json``` or ```application/xml```

**URL parameters:**
- _**index_name**_ (required): The name of the index.
- _**list_name**_ (required): The name of the target list.

### Success response
All synonymes within the list are returned. One group of synonyms by line, each synonym separated by a comma:

    
couch,divan,sofa

desk,bureau
    
<commit_msg>Update get.md<commit_after>## Retrieving all the terms of a synonyms list

Use this API to retrieve all synonyms from a list.

**Requirement:** OpenSearchServer v1.5

### Call parameters

**URL:** ```/services/rest/index/{index_name}/synonyms/{list_name}```

**Method:** ```GET```

**Header**:
- _**Accept**_ (optional returned type): ```application/json``` or ```application/xml```

**URL parameters:**
- _**index_name**_ (required): The name of the index.
- _**list_name**_ (required): The name of the target list.

### Success response
All synonyms within the list are returned. One group of synonyms by line, each synonym separated by a comma:

    
couch,divan,sofa

desk,bureau
    

{'fraction_non_alphanumeric': 0.154459753444525, 'fraction_numerical': 0.0029006526468455403, 'mean_word_length': 4.822784810126582, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4547476', 'n_tokens_mistral': 440, 'n_tokens_neox': 431, 'n_words': 153}