contactsAPI

command module
v0.0.0-...-8c73d52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 8 Imported by: 0

README

Kontak Fiber (Go) and MongoDB REST API

An API built with Fiber and MongoDB.

API Usage

Main URL / Endpoint : https://ulbicontacts-59a677aa5bea.herokuapp.com/

Get all Contact
  GET /contacts
Get by id Contact
  GET /contacts/{id}
Add Contact
  POST /insert
{
  "nama_kontak": "Si Ujang",
  "nomor_hp": "68123456789"
}

Edit Contact
  PUT /update/{id}
{
  "nama_kontak": "Si Asep",
  "nomor_hp": "61235156431231"
}

Delete Contact
  DELETE /delete/{id}
Login
  POST /login
{
  "username": "qwerty",
  "password": "qwerty"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL