Skip to content

Documentation and sample client code for our Merino API

License

Notifications You must be signed in to change notification settings

graphx-design/merino-api-clients

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphX Merino API

license GitHub release

Documentation and sample client code for our Merino API.

Introduction

This JSON-via-HTTPS service allows our registered users access to our product details and to place orders without using the web site per se. If you require managing the user interface for your purchases but don't want to dive into cXML or EDI X12 support, this API is for you.

Usage

The service is at: https://www.gxd.ca/api/merino

You will need the security realm and token we supplied in order to authenticate your requests.

Clients issue HTTP POST requests to that URL with content-type "application/json" containing exactly one Message object, to which the service will respond with a single Message object as well. The definition for its structure is detailed in the file gxd.merino.public.proto. Details about each individual field is documented directly in comments in this file, so please read it thouroughly.

While Protocol Buffers are used to define this exchange, the Merino API is not a gRPC end point. It also does not support binary encoding, only JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json for how the field names translate directly to familiar JSON objects. Note that per this spec, we accept both snake_case and camelCase property name formats, but we always emit the preferred camelCase while this definition file is declared in snake_case, for compatibility with the broadest set of implementations possible. We also expect strings, not integers, for enumerations.

Ping

A message without requests is valid and considered to be a "ping", to which the API responds with a "Pong!" status.

Test Mode

Setting your message's test_mode to true still gives you access to your real data. However, all write operations are disabled and return a fake example response.

LICENSE AND COPYRIGHT

The usage examples and client libraries provided in this repository are:

Copyright (c) 2018-2023 Graph X Design Inc. https://www.gxd.ca/

Distributed under the MIT (X11) License: http://www.opensource.org/licenses/mit-license.php

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Documentation and sample client code for our Merino API

Resources

License

Stars

Watchers

Forks

Packages

No packages published