emergency-auth-code-api

command module
v0.0.0-...-80e094b Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 12 Imported by: 0

README

emergency-auth-code-api

GoDoc Go Report Card

Temporary - Server side application for the emergency auth code solution.

Requirements

In order to run this service locally, you will need:

Getting Started

  1. Clone this repository: go get github.com/companieshouse/emergency-auth-code-api
  2. Build the executable: make build

Configuration

Variable Default Description
BIND_ADDR - The host:port to bind to
MONGODB_URL - The mongo DB connection string
MONGO_AUTHCODE_DATABASE - Authcode mongo database
MONGO_AUTHCODE_COLLECTION - Authcode mongo collection
MONGO_AUTHCODE_REQUEST_DATABASE - Authcode Request mongo database
MONGO_AUTHCODE_REQUEST_COLLECTION - Authcode Request mongo collection
ORACLE_QUERY_API_URL - URL of the Oracle Query API
QUEUE_API_LOCAL_URL - URL of the Queue API

Endpoints

Method Path Description
GET /emergency-auth-code-service/healthcheck Standard healthcheck endpoint
GET emergency-auth-code-service/company/{company_number}/officers Get list of eligible officers
GET emergency-auth-code-service/company/{company_number}/officers/{officer_id} Get officer details
POST emergency-auth-code-service/auth-code-requests Create auth code request
GET emergency-auth-code-service/auth-code-requests/{auth_code_request_id} Get auth code request
PUT emergency-auth-code-service/auth-code-requests/{auth_code_request_id} Update auth code request

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package authcodeapi connects and sends requests to the authcode api flow
Package authcodeapi connects and sends requests to the authcode api flow
Package config defines the environment variable and command-line flags
Package config defines the environment variable and command-line flags
Package dao provides access to the database.
Package dao provides access to the database.
Package handlers contains the http handlers which receive requests to be processed by the API.
Package handlers contains the http handlers which receive requests to be processed by the API.
Package models contains the required data structures.
Package models contains the required data structures.
Package oracle connects to the Oracle Query API to retrieve officer details
Package oracle connects to the Oracle Query API to retrieve officer details
Package service contains the controllers used by the the API endpoints.
Package service contains the controllers used by the the API endpoints.
Package transformers contains data transformation functions
Package transformers contains data transformation functions
Package utils contains helper functions
Package utils contains helper functions

Jump to

Keyboard shortcuts

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