Skip to content

A Contacts Lookup REST API, built in Go, and so designed to be ran indefinitely. Add, amend or remove contact information, stored in a temporary sudo-database.

Notifications You must be signed in to change notification settings

tberey/go-contact-lookup-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contact Lookup API (Go)


A RESTful Contacts Lookup API, made in Golang & locally hosted, that allows users to performs CRUD operations on a temporary/unsaved database, using tcp connection requests.

Create, search, edit and delete Contact Records.



Client Page (Front-End) Homepage:

http://localhost:<Port>/api/v0-1/home




List of URL(http://localhost:<Port>/api/v0-1/) + URN (End-points), for Requests against an unstored array, that are currently available:

URN Action on Array/DB Full URI (Using some port, e.g. "8080")
  • "/home"
HOME/CLIENT PAGE
  • "/contacts/new"
CREATE (POST)
  • "/contacts/all"
  • "/contacts/find?id=<id>"
READ (GET)
  • "/update?id=<id>"
UPDATE (PUT)
  • "/deleteAll"
  • "/delete?id=<id>"
DELETE
POST/PUT/DELETE available via middleware.




Version Changes
Version 0.0.1 [2020-03-01]
  • Initial Commit.
  • Add "main.go" file.
  • Adds basic infrastructure and request methods, against the local unsaved sudo-databse
  • Add README.md
Version 0.0.2 [2020-03-02]
  • Add three new request methods and accompanying handler functions: PUT, DELETE(x2) to server.
  • Add new dir "Screenshots", and Add image files to new dir.
  • Update README.md
Version 0.0.3 [2020-03-03]
  • Add front-end / client-side page, "index.html" (/api/v0-1/home).
  • Add POST Request from front-end, using in-page javascript, to create a new contact in db.
  • Adjust back-end to receive parameters from a POST request.
  • Update README.md
Version 0.0.4 [2020-03-04]
  • Add further methods to front-end/client-side page: DELETE, PUT, GET, to enable all CRUD operations against db.
  • Update README.md

About

A Contacts Lookup REST API, built in Go, and so designed to be ran indefinitely. Add, amend or remove contact information, stored in a temporary sudo-database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages