Skip to content

sriv97/Golang_AutoComplete

Repository files navigation

AutoComplete Backend API

An API Service to display the top 25 most frequent words used by Shakespeare based on searched fragment

The searched value can exist anywhere in the word, results are returned based on highest frequency

Running in Web Browser

To run the API in your web browser, change the term after ?=, and hit enter Run Online Web Example

Running by curl in Terminal / Command Prompt

Copy and Paste the command below into a terminal / command prompt window

In the below example the search fragment is set to th, replace it with the actual fragment

curl https://golang-autocomplete.herokuapp.com/autocomplete\?term\=th Curl Example

Running in Postman

Open Postman and create a GET Request to https://golang-autocomplete.herokuapp.com/autocomplete?term

In the Query Params, enter in the desired fragment as the value for term, then click Send

Postman Example

View sample data

Phrases (th, fr, pi, sh, wu, ar, il, ne, se, pl) Sample Fragments

References used

Guide to setting up Golang on Heroku

Original Text

About

Autocomplete API to return frequently used words based on fragment search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published