Download the PHP package snowio/magento2-idempotent-api without Composer

On this page you can find all versions of the php package snowio/magento2-idempotent-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento2-idempotent-api

Magento 2 Idempotent API

Description

Module that ensures all API operations are idempotent.

Idempotence : From a RESTful service standpoint, for an operation (or service call) to be idempotent, clients can make that same call repeatedly while producing the same result. In other words, making multiple identical requests has the same effect as making a single request. Note that while idempotent operations produce the same result on the server (no side effects), the response itself may not be the same (e.g. a resource's state may change between requests).

--RestApiTutorial.com http://www.restapitutorial.com/lessons/idempotency.html

Prerequisites

Magento Versions

Installation

Usage

Request Headers

X-Message-Group-ID

The X-Message-Group-ID request-header field specifies the message group of the request. If no X-Message-Group-ID is specified then the request will not be treated idempotently.

X-Message-Timestamp

The X-Message-Timestamp request-header field corresponds to the time the message was created. If this field is not specified then this plugin uses \time() as the message timestamp, please note that the this is a Unix Timestamp.

Error Response Codes

409 Conflict

This error occurs when 2 or more requests with the same X-Message-Group-ID are processed at the simultaneously one of the requests will result in a 409 CONFLICT error response. The Idempotent API should ensure that the resource is not simultaneously updated.

412 Precondition Failed

This error occurs when a late message is received. Message A is a late message iff message B (which has the same X-Message-Group-ID) was created in the source client after A (has a larger X-Message-Timestamp than message A) and was received before message A. Message A will try update the resource but fails as message B is more recent than message A. This ensures that late messages do not affect the state of the resource.

License

This software is licensed under the MIT License. View the license


All versions of magento2-idempotent-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4||^8.1
magento/framework Version ^103
snowio/magento2-lock Version ^1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package snowio/magento2-idempotent-api contains the following files

Loading the files please wait ....