New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/shodske/payment-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/shodske/payment-api

  • v0.0.0-20190405115137-f68d27851b34
  • Source
  • Go
  • Socket score

Version published
Created
Source

Go Report Card

Payment API

This is an example repo for a small RESTful API in which you can manage payments.

This API is based on the json:api specification and one can expect the API to behave according to this specification.

For ease of use a docker-compose.yml has been created that will run the API, database and Swagger UI.

API Specification

The API specification is written in OpenAPI Specification 3.0 and can found in api/oas.yml.

A Swagger UI docker image is set up for easier reading and sending requests to the API.

Running the API

A docker-compose.yml file has been set up to start the API. Which can be run using the Makefile. To override any of the environment variables, you can create a .env file in the project root, which will be picked up by docker-compose.

  • make start: Start the Docker containers running the API, the Postgres database and Swagger UI.
  • make stop: Stop all Docker containers.
  • make logs: Follow the logs of the API and Postgres database.
  • make test: Run all tests.

FAQs

Package last updated on 05 Apr 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc