<commit_before>// @flow
import {get} from 'api/utils'
import qs from 'query-string'

export type GetUsersDataType = {
	id: string
}

export async function getUsersAPI (options: GetUsersDataType) {
	// Support both /users and /users/:id
	const str: string = qs.stringify(options)
	return get(
		`https://jsonplaceholder.typicode.com/users${str ? `?${str}` : ''}`
	)
}
<commit_msg>fix(api/UsersSvc): getUsersApi - use few args instead of one object-arg<commit_after>// @flow
import {get} from 'api/utils'
import qs from 'query-string'

export async function getUsersAPI (id: string) {
	// Support both /users and /users/:id
	const str: string = qs.stringify({id})
	return get(
		`https://jsonplaceholder.typicode.com/users${str ? `?${str}` : ''}`
	)
}

{'fraction_non_alphanumeric': 0.15733333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 4.326241134751773, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2209531', 'n_tokens_mistral': 259, 'n_tokens_neox': 262, 'n_words': 71}