Skip to content

ashish-c-naik/phonebook_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phonebook_api

Nodejs, Express, ElasticSearch

How to run

Install node and use command node index.js then you could use postman to test the API.

Note

  • The uuid is automatically generated and is manually checked for uniqueness.
  • The [hostname] could be changed in index.js file.
  • The elastic client host can be changed in data.js file.

How to use

Request Usage Description
GET [hostname]/contact?pageSize=[integerValue]&page=[integerValue]&query=[queryString] optional parameters = {pageSize, page, query}
GET [hostname]/contact/[uuid] required parameters = {uuid}
PUT [hostname]/contact/[uuid]?name=[nameString]&telephone=[telephoneString]&email=[emailString] required parameters = {uuid, name, telephone, email}
DELETE [hostname]/contact/[uuid] required parameters = {uuid}
POST [hostname]/contact?name=[nameString]&telephone=[telephoneString]&email=[emailString] required paramters = {name, telephone, email}

About

Nodejs, Express, ElasticSearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published