Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Latest commit

 

History

History
50 lines (33 loc) · 755 Bytes

File metadata and controls

50 lines (33 loc) · 755 Bytes

http.json.schema

Listens on https port 7114 and will response back whatever is hosted in nginx on that path after enforcing validation.

Requirements

  • docker compose

Setup

To start the Docker Compose stack defined in the compose.yaml file, use:

docker compose up -d

Verify behavior for valid content

curl http://localhost:7114/valid.json

output:

{
    "id": 42,
    "status": "Active"
}

Verify behavior for invalid content

curl http://localhost:7114/invalid.json

output:

curl: (18) transfer closed with 37 bytes remaining to read

Teardown

To remove any resources created by the Docker Compose stack, use:

docker compose down