(project: string, skillName: string)
| 33 | } |
| 34 | |
| 35 | export async function getSkill(project: string, skillName: string): Promise<SingleSkillResponse> { |
| 36 | const params = new URLSearchParams({ project, skill: skillName }); |
| 37 | const response = await fetch(`${baseUrl}/api/v2/skills?${params}`); |
| 38 | return (await response.json()) as SingleSkillResponse; |
| 39 | } |
| 40 | |
| 41 | export async function searchSkills(query: string): Promise<SearchResponse> { |
| 42 | const params = new URLSearchParams({ query }); |
no outgoing calls
no test coverage detected