Skip to content

myzzh/epcis-ef-core

 
 

Repository files navigation

Codacy Badge Codacy Badge .NET

EF Core version of EPCIS repository

FasTnT EPCIS is a lightweight GS1 EPCIS 1.2 repository written in C# using .NET 6 and backed using EntityFramework Core.

There is a sandbox available if you want to quickly test this repository capabilities.

Setup

Prerequisites:

  • SQL Server 2016 or +
  • .NET 6 SDK

Steps:

  1. Download the source code, and create a new user/database in SQL Server for FasTnT ;
  2. Start the repository with the command $ dotnet run -p FasTnT.Host\FasTnT.Host.csproj --urls "http://localhost:5102/" --connectionStrings:FasTnT.Database "{your connectionstring}" ;

That's it! You have a properly working EPCIS 1.2 repository.

HTTP Endpoints

EPCIS 1.2 endpoints:

The API is secured using HTTP Basic authentication. The default username:password value is admin:P@ssw0rd

  • Capture: POST /v1_2/Capture
  • Queries : POST /v1_2/Query.svc

Capture endpoint only supports requests with content-type: application/xml or content-type: text/xml header and XML payload.

Queries endpoint supports SOAP requests on endpoint /v1_2/Query.svc.

See the wiki for more details.

Implemented Features

This is the list of planned and implemented features in the repository:

  • Capture
    • Events
    • Capture Master Data (CBV)
  • Queries:
    • GetVendorVersion
    • GetStandardVersion
    • GetQueryNames
    • GetSubsciptionIDs
    • Poll
      • SimpleEventQuery
      • SimpleMasterDataQuery
  • Query Callback:
    • CallbackResults
    • CallbackQueryTooLargeException
    • CallbackImplementationException
  • Subscriptions:
    • Subscribe to an EPCIS request
    • Unsubscribe from EPCIS repository
    • Trigger subscriptions that register to specific trigger name
    • Execute subscription based on schedule

Authors

External contributions on FasTnT EPCIS repository are welcome from anyone. This project was created an is primarily maintained by Louis-Axel Ambroise.

License

This project is licensed under the Apache 2.0 license - see the LICENSE file for details

Contact: fastnt@pm.me

About

EF Core version of EPCIS repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.5%
  • HCL 2.8%
  • Other 0.7%