/fastnt

.NET Core implementation of GS1's EPCIS 1.2

Primary LanguageC#Apache License 2.0Apache-2.0

This project is under development, and this README isn't finished. I'll try to update is as soon as possible.. Build Status

FasTnT

FasTnT is a simple, lightweight GS1 EPCIS 1.2 repository written in C# using .NET Core 2.1, backed with PostGreSQL database.

Setup

Prerequisites:

  • PostGreSQL 9.5 or higher
  • .NET Core 2.1 SDK

Steps:

  1. Download the source code, and create a new user/database in PostGreSQL for FasTnT;
  2. Update the FasTnT.Database connection string in the project FasTnT.Host with your PostGreSQL connection string;
  3. Set FasTnT.Host project as startup project, and start the solution
  4. Make the following request to create the SQL schemas and tables: curl -X POST http://localhost:54805/Services/1.2/Migrate (the port number may change depending on your configuration)
  5. That's it! You have a properly working EPCIS 1.2 repository.

Endpoints

EPCIS endpoints:

  • Event capture: /Services/1.2/Capture
  • Queries : /Services/1.2/Query

Others endpoints:

  • Database migration: /Services/1.2/Migrate

The file documents\EPCIS_Samples.postman_collection.json contains examples of HTTP requests that you can perform on FasTnT (import and run it in PostMan)

The default username/password for the API services is APIUser/ApiP@ssw0rd.

Implemented Features

  • Event capture
  • Queries:
    • GetVendorVersion
    • GetStandardVersion
    • Poll SimpleEventQuery (still a few parameters missing)

License

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

Last update: december 2018