{"id":16683330,"url":"https://github.com/barnhill/barcode-java-api","last_synced_at":"2025-06-20T03:06:27.645Z","repository":{"id":46783304,"uuid":"145267250","full_name":"barnhill/barcode-java-api","owner":"barnhill","description":"RESTful API for barcode image generation library","archived":false,"fork":false,"pushed_at":"2025-04-26T04:26:09.000Z","size":572,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-26T04:41:41.246Z","etag":null,"topics":["barcode","barcode-generator","barcode-images","barcodes","docker","docker-image","java","rest","rest-api","restful-api","spring","spring-boot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barnhill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-08-19T02:32:16.000Z","updated_at":"2025-04-26T04:26:13.000Z","dependencies_parsed_at":"2023-01-18T19:16:05.735Z","dependency_job_id":"9cebba9d-e0cc-4451-843d-3eac913ec74c","html_url":"https://github.com/barnhill/barcode-java-api","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/barnhill/barcode-java-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnhill%2Fbarcode-java-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnhill%2Fbarcode-java-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnhill%2Fbarcode-java-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnhill%2Fbarcode-java-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barnhill","download_url":"https://codeload.github.com/barnhill/barcode-java-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnhill%2Fbarcode-java-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260868885,"owners_count":23074960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barcode","barcode-generator","barcode-images","barcodes","docker","docker-image","java","rest","rest-api","restful-api","spring","spring-boot"],"created_at":"2024-10-12T14:24:13.126Z","updated_at":"2025-06-20T03:06:22.608Z","avatar_url":"https://github.com/barnhill.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Barcode Java API\n\n![Build Status](https://github.com/barnhill/barcode-java-api/workflows/Barcode%20API%20CI/badge.svg)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/barnhill/barcode-java-api/blob/master/LICENSE)\n\nBarcode Java API is a lightweight and easy-to-use Java library for generating barcodes. It supports various barcode formats and provides simple APIs for creating barcodes programmatically.\n\n## Features\n\n- **Multiple Barcode Formats:** Generate barcodes in various formats including Code 128, EAN-13, UPC-A, and more.\n- **Customizable:** Easily customize barcode size, color, text, and other properties to suit your needs.\n- **Platform Independent:** Works seamlessly on any platform that supports Java and Docker.\n- **Lightweight:** Small footprint, ideal for integration into existing projects without adding unnecessary overhead.\n- **Open Source:** Licensed under the MIT License, allowing for free and open usage in both commercial and non-commercial projects.\n\n## Supported Symbologies\n\n|   Supported   |  Symbology    | List  |\n| :------------- | :------------- | :-----|\n| Code 128      | Code 93       | Code 39 (Extended / Full ASCII) |\n| Code11        | EAN-8         | FIM (Facing Identification Mark) |\n| UPC-A         | UPC-E         | Pharmacode   |\n| MSI           | PostNet       | Standard 2 of 5 |\n| ISBN          | Codabar       | Interleaved 2 of 5 |\n| ITF-14        | Telepen       | UPC Supplemental 2 |\n| JAN-13        | EAN-13        | UPC Supplemental 5 |\n\n## Usage\n\nTo use SSL:\n\n- Mount a docker volume `/ssl` that points to a host folder that contains the SSL certificates for the server.\nName the full chain certificate as `certificate.pem` and the private key as `key.pem`\n- Pass the environment variable to the container: `PROFILE=ssl`\n\n```\ndocker run --rm -p -e PROFILE=ssl 8443:8443 bradbarnhill/barcode-api\n```\n\nTo use without SSL:\n- Pass the environment variable to the container: `PROFILE=nossl` or pass no value for `PROFILE`\n\n```\ndocker run --rm -p 8080:8080 bradbarnhill/barcode-api\n```\n\n\n### Test\nTo generate a sample barcode using this API go to:\n#### SSL\n```\nhttps://localhost:8443/v1/barcode/upca/data/636711605328?imageFormat=png\u0026w=600\u0026h=300\u0026label=false\n```\n\n#### No SSL\n```\nhttp://localhost:8080/v1/barcode/upca/data/636711605328?imageFormat=png\u0026w=600\u0026h=300\u0026label=false\n```\n\n## Response Headers\n#### Error codes will be returned in the headers for cases of invalid input parameters.\n\n|      Header       |                                              Value                                              |\n|:-----------------:|:-----------------------------------------------------------------------------------------------:|\n| x-error |                                     EUPCA-1: Data length invalid. (Length must be 11 or 12)        |\n\n#### Standard Headers\n\n|      Header       |                                              Value                                              |\n|:-----------------:|:-----------------------------------------------------------------------------------------------:|\n| X-Barcode-Version |                                     Barcode for Java 2.7.3                                      |\n|    X-Draw-Time    |                                           0.374072 ms                                           |\n|  X-Encoded-Type   |                                              UPCA                                               |\n|  X-Encoded-Value  | 10100110010010011011110101000110110001010111101010100010010010001110100111001011001101101100101 |\n|  X-Encoding-Time  |                                           0.576274 ms                                           |\n|   X-Label-Font    |                                              Serif                                              |\n|    X-Raw-Value    |                                          123456789012                                           |\n|    X-Served-By    |                                   barcode-api-c9f7bdd88-rq9wp                                   |\n|    X-Served-By    |                                     barcode.someserver.com                                      |\n\n## Documentation:\n#### SSL\n```\nhttps://localhost:8443/swagger-ui/index.html\n```\n\n#### No SSL\n```\nhttp://localhost:8080/swagger-ui/index.html\n```\n\n## Contributing\n\nContributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request. Make sure to follow the [Contributing Guidelines](CONTRIBUTING.md).\n\n## License\n\nBarcode Java API is licensed under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarnhill%2Fbarcode-java-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarnhill%2Fbarcode-java-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarnhill%2Fbarcode-java-api/lists"}