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

github.com/smartio-github/news-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/smartio-github/news-api

v0.0.0-20200524185909-f05c491cef27
Source
Go
Version published
Created
Source

mtmr-bot

How to Run

$ docker-compose up -d
$ docker exec -it news_api-gin bash
$ go run main.go

How to Use

  • api_server http://localhost:8080/
  • swagger-editor http://localhost:8081/
  • swagger-ui http://localhost:8082/

Environment

  • GORM
  • Gin
  • GoQuery
  • swaggo (future plan)

request example

$ curl localhost:8080/trains/11

{"id":1,"line_name":"上越線","line_name_hira":"じょうえつせん","line_name_kana":"ジョウエツセン","line_group":"direction_tohoku"}

FAQs

Package last updated on 24 May 2020

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