🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

bitbucket.org/adhikag24/golang-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket.org/adhikag24/golang-api

v0.0.0-20211019064729-a0d8831763c1
Source
Go
Version published
Created
Source

User Data API

The app fetch the data from postgres database that are build in docker, the container between application and database are connected using docker-compose.

Run the Application

To run this application, clone the repository and run command:

$ docker-compose up
$ curl http://localhost:8080/displayallusers
[{"userid":1,"name":"Budi"},{"userid":2,"name":"Nano"}]

If docker has not been installed in your computer, you may reffer to this link Get Docker.

Endpoints

There are 2 available endpoints:

  • displayallusers (GET)
  • displayuser (POST)

FAQs

Package last updated on 19 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts