Skip to content

Pharmatrace/goPtApiClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for openapi

The PharmaTrace SCIN API provides network members a resource and process oriented access to the blockchain backed market and inventory information. It represents a layer of abstraction above the Hyperledger network to facilitate a business focused development of clients and integration systems without the need to directly connect to Hyperledger nodes.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.0.1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://api.pharmatrace.io/v1

Class Method HTTP request Description
ActivitysApi AddActivity Post /activitys
ActivitysApi DeleteActivity Delete /activitys/{id}
ActivitysApi FindActivityById Get /activitys/{id}
ActivitysApi FindActivitys Get /activitys
ContainerApi LocationHistoryGet Get /locationHistory Location History
ContainersApi AddContainer Post /containers
ContainersApi DeleteContainer Delete /containers/{id}
ContainersApi FindContainerById Get /containers/{id}
ContainersApi FindContainers Get /containers
InformationQueryResponsesApi AddInformationQueryResponse Post /informationqueryresponses
InformationQueryResponsesApi DeleteInformationQueryResponse Delete /informationqueryresponses/{id}
InformationQueryResponsesApi FindInformationQueryResponses Get /informationqueryresponses
InformationQueryResponsesApi FindInformationqueryresponseById Get /informationqueryresponses/{id}
InformationQuerysApi AddInformationQuery Post /informationquerys
InformationQuerysApi DeleteInformationQuery Delete /informationquerys/{id}
InformationQuerysApi FindInformationQuerys Get /informationquerys
InformationQuerysApi FindInformationqueryById Get /informationquerys/{id}
LegalTxTermssApi AddLegalTxTerms Post /legaltxtermss
LegalTxTermssApi DeleteLegalTxTerms Delete /legaltxtermss/{id}
LegalTxTermssApi FindLegalTxTermss Get /legaltxtermss
LegalTxTermssApi FindLegaltxtermsById Get /legaltxtermss/{id}
LocationsApi AddLocation Post /locations
LocationsApi DeleteLocation Delete /locations/{id}
LocationsApi FindLocationById Get /locations/{id}
LocationsApi FindLocations Get /locations
PharmaceuticalsApi AddPharmaceutical Post /pharmaceuticals
PharmaceuticalsApi DeletePharmaceutical Delete /pharmaceuticals/{id}
PharmaceuticalsApi FindPharmaceuticalById Get /pharmaceuticals/{id}
PharmaceuticalsApi FindPharmaceuticals Get /pharmaceuticals
ProfilesApi AddProfile Post /profiles
ProfilesApi DeleteProfile Delete /profiles/{id}
ProfilesApi FindProfileById Get /profiles/{id}
ProfilesApi FindProfiles Get /profiles
RepackagesApi AddRepackage Post /repackages
RepackagesApi DeleteRepackage Delete /repackages/{id}
RepackagesApi FindRepackageById Get /repackages/{id}
RepackagesApi FindRepackages Get /repackages
StakeholdersApi AddStakeholder Post /stakeholders
StakeholdersApi DeleteStakeholder Delete /stakeholders/{id}
StakeholdersApi FindStakeholderById Get /stakeholders/{id}
StakeholdersApi FindStakeholders Get /stakeholders
SystemInformationsApi AddSystemInformation Post /systeminformations
SystemInformationsApi DeleteSystemInformation Delete /systeminformations/{id}
SystemInformationsApi FindSystemInformations Get /systeminformations
SystemInformationsApi FindSysteminformationById Get /systeminformations/{id}
TradesApi AddTrade Post /trades
TradesApi DeleteTrade Delete /trades/{id}
TradesApi FindTradeById Get /trades/{id}
TradesApi FindTrades Get /trades
TransportsApi AddTransport Post /transports
TransportsApi DeleteTransport Delete /transports/{id}
TransportsApi FindTransportById Get /transports/{id}
TransportsApi FindTransports Get /transports
UserApi MeGet Get /me User Profile
WalletsApi AddWallet Post /wallets
WalletsApi DeleteWallet Delete /wallets/{id}
WalletsApi FindWalletById Get /wallets/{id}
WalletsApi FindWallets Get /wallets

Documentation For Models

Documentation For Authorization

apikey

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

api@pharmatrace.io

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published