GithubHelp home page GithubHelp logo

zfcampus / apigility-documentation Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 37.0 8.75 MB

Documentation for the Apigility project.

License: BSD 3-Clause "New" or "Revised" License

Makefile 14.74% PHP 85.26%

apigility-documentation's People

Contributors

alaczi avatar artmnv avatar austinmaddox avatar basz avatar danielss89 avatar e-belair avatar egyptianbman avatar ezimuel avatar finnyabraham avatar gartner avatar iwanluijksquestmedia avatar jackdpeterson avatar lee-reinhardt avatar michalbundyra avatar nepda avatar pawel-slowik avatar pikariop avatar poisa avatar powerkiki avatar ralphschindler avatar santiph avatar tomhanderson avatar weierophinney avatar wilt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apigility-documentation's Issues

REST tutorial again: Can't resolve dependencies for zfcampus/statuslib-example

When following the REST Service tutorial,
zfcampus/statuslib-example requires zendframework/zend-config ^2.6, while zendframework/zend-config is somehow locked at 3.2.0.

someMac:Git user$ composer create-project zfcampus/zf-apigility-skeleton rbp-api2
Installing zfcampus/zf-apigility-skeleton (1.5.0)
  - Installing zfcampus/zf-apigility-skeleton (1.5.0): Loading from cache
Created project in rbp-api2
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 90 installs, 0 updates, 0 removals
  - Installing zendframework/zend-component-installer (2.1.1): Loading from cache
  - Installing zfcampus/zf-asset-manager (1.2.0): Loading from cache
  - Installing bshaffer/oauth2-server-php (v1.10.0): Loading from cache
  - Installing psr/link (1.0.0): Loading from cache
  - Installing zendframework/zend-stdlib (3.2.0): Loading from cache
  - Installing zendframework/zend-authentication (2.6.0): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing zendframework/zend-config (3.2.0): Loading from cache
  - Installing paragonie/random_compat (v2.0.12): Loading from cache
  - Installing zendframework/zend-math (3.1.0): Loading from cache
  - Installing container-interop/container-interop (1.2.0): Loading from cache
  - Installing zendframework/zend-crypt (3.3.0): Loading from cache
  - Installing zendframework/zend-db (2.9.3): Loading from cache
  - Installing zendframework/zend-escaper (2.6.0): Loading from cache
  - Installing zendframework/zend-json (3.1.0): Loading from cache
  - Installing zendframework/zend-loader (2.6.0): Loading from cache
  - Installing zendframework/zend-paginator (2.8.1): Loading from cache
  - Installing zendframework/zend-permissions-acl (2.7.0): Loading from cache
  - Installing zendframework/zend-permissions-rbac (3.0.0): Loading from cache
  - Installing zendframework/zend-servicemanager (3.3.2): Loading from cache
  - Installing zendframework/zend-validator (2.10.2): Loading from cache
  - Installing zendframework/zend-uri (2.6.1): Loading from cache
  - Installing zendframework/zend-http (2.8.0): Loading from cache
  - Installing zendframework/zend-router (3.0.2): Loading from cache
  - Installing zendframework/zend-eventmanager (3.2.1): Loading from cache
  - Installing zendframework/zend-view (2.10.0): Loading from cache
  - Installing zendframework/zend-modulemanager (2.8.2): Loading from cache
  - Installing zendframework/zend-mvc (3.1.1): Loading from cache
  - Installing zfcampus/zf-api-problem (1.3.0): Loading from cache
  - Installing zendframework/zend-filter (2.8.0): Loading from cache
  - Installing zfcampus/zf-content-negotiation (1.4.0): Loading from cache
  - Installing zfcampus/zf-configuration (1.3.3): Loading from cache
  - Installing zfcampus/zf-apigility-provider (1.3.0): Loading from cache
  - Installing zendframework/zend-inputfilter (2.8.1): Loading from cache
  - Installing michelf/php-markdown (1.8.0): Loading from cache
  - Installing zfcampus/zf-apigility-documentation (1.3.0): Loading from cache
  - Installing zfcampus/zf-development-mode (3.2.0): Loading from cache
  - Installing seld/jsonlint (1.7.1): Loading from cache
  - Installing justinrainbow/json-schema (1.6.1): Loading from cache
  - Installing herrera-io/json (1.0.3): Loading from cache
  - Installing kherge/version (1.0.1): Loading from cache
  - Installing myclabs/deep-copy (1.7.0): Loading from cache
  - Installing phar-io/version (1.0.1): Loading from cache
  - Installing phar-io/manifest (1.0.1): Loading from cache
  - Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
  - Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
  - Installing sebastian/recursion-context (3.0.0): Loading from cache
  - Installing sebastian/exporter (3.1.0): Loading from cache
  - Installing sebastian/diff (3.0.0): Loading from cache
  - Installing sebastian/comparator (3.0.0): Loading from cache
  - Installing webmozart/assert (1.3.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (4.3.0): Loading from cache
  - Installing doctrine/instantiator (1.1.0): Loading from cache
  - Installing phpspec/prophecy (1.7.6): Loading from cache
  - Installing theseer/tokenizer (1.1.0): Loading from cache
  - Installing sebastian/version (2.0.1): Loading from cache
  - Installing sebastian/environment (3.1.0): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
  - Installing phpunit/php-token-stream (3.0.0): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/php-file-iterator (1.4.5): Loading from cache
  - Installing phpunit/php-code-coverage (6.0.4): Loading from cache
  - Installing phpunit/php-timer (2.0.0): Loading from cache
  - Installing phpunit/phpunit-mock-objects (6.1.1): Loading from cache
  - Installing sebastian/global-state (2.0.0): Loading from cache
  - Installing sebastian/object-reflector (1.1.1): Loading from cache
  - Installing sebastian/object-enumerator (3.0.3): Loading from cache
  - Installing sebastian/resource-operations (1.0.0): Loading from cache
  - Installing zendframework/zend-debug (2.6.0): Loading from cache
  - Installing zendframework/zend-developer-tools (1.2.1): Loading from cache
  - Installing zendframework/zend-dom (2.7.1): Loading from cache
  - Installing zendframework/zend-console (2.7.0): Loading from cache
  - Installing phpunit/phpunit (7.1.5): Loading from cache
  - Installing zendframework/zend-test (3.2.0): Loading from cache
  - Installing zfcampus/zf-versioning (1.3.0): Loading from cache
  - Installing zfcampus/zf-rpc (1.4.0): Loading from cache
  - Installing zfcampus/zf-oauth2 (1.5.0): Loading from cache
  - Installing zfcampus/zf-mvc-auth (1.5.0): Loading from cache
  - Installing zendframework/zend-hydrator (2.4.0): Loading from cache
  - Installing zfcampus/zf-hal (1.5.0): Loading from cache
  - Installing zfcampus/zf-rest (1.4.0): Loading from cache
  - Installing zfcampus/zf-content-validation (1.4.0): Loading from cache
  - Installing zfcampus/zf-apigility-admin-ui (1.3.9): Loading from cache
  - Installing zfcampus/zf-apigility (1.4.0): Loading from cache
  - Installing zendframework/zend-code (3.3.0): Loading from cache
  - Installing zfcampus/zf-apigility-admin (1.6.0): Loading from cache
  - Installing zfcampus/zf-composer-autoloading (2.1.0): Loading from cache
  - Installing zfcampus/zf-console (1.4.0): Loading from cache
  - Installing herrera-io/phar-update (1.0.3): Loading from cache
  - Installing zfcampus/zf-deploy (1.3.0): Loading from cache
zfcampus/zf-apigility-skeleton suggests installing zfcampus/zf-apigility-doctrine (zfcampus/zf-apigility-doctrine ^2.2 to create Doctrine-Connected REST services)
zfcampus/zf-apigility-skeleton suggests installing zfcampus/zf-http-cache (zfcampus/zf-http-cache ^1.4 to add HTTP caching to your API)
zfcampus/zf-apigility-skeleton suggests installing zfr/zfr-cors (zfr/zfr-cors ^1.5 to add CORS support to your API)
bshaffer/oauth2-server-php suggests installing aws/aws-sdk-php (~2.8 is required to use DynamoDB storage)
bshaffer/oauth2-server-php suggests installing firebase/php-jwt (~2.2 is required to use JWT features)
bshaffer/oauth2-server-php suggests installing mongodb/mongodb (^1.1 is required to use MongoDB storage)
bshaffer/oauth2-server-php suggests installing predis/predis (Required to use Redis storage)
bshaffer/oauth2-server-php suggests installing thobbs/phpcassa (Required to use Cassandra storage)
zendframework/zend-authentication suggests installing zendframework/zend-ldap (Zend\Ldap component)
zendframework/zend-authentication suggests installing zendframework/zend-session (Zend\Session component)
zendframework/zend-config suggests installing zendframework/zend-i18n (^2.7.4; install if you want to use the Translator processor)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
zendframework/zend-math suggests installing ext-gmp (If using the gmp functionality)
zendframework/zend-json suggests installing zendframework/zend-json-server (For implementing JSON-RPC servers)
zendframework/zend-json suggests installing zendframework/zend-xml2json (For converting XML documents to JSON)
zendframework/zend-paginator suggests installing zendframework/zend-cache (Zend\Cache component to support cache features)
zendframework/zend-servicemanager suggests installing ocramius/proxy-manager (ProxyManager 1.* to handle lazy initialization of services)
zendframework/zend-validator suggests installing zendframework/zend-i18n (Zend\I18n component to allow translation of validation error messages)
zendframework/zend-validator suggests installing zendframework/zend-i18n-resources (Translations of validator messages)
zendframework/zend-validator suggests installing zendframework/zend-session (Zend\Session component, ^2.8; required by the Csrf validator)
zendframework/zend-http suggests installing paragonie/certainty (For automated management of cacert.pem)
zendframework/zend-router suggests installing zendframework/zend-i18n (^2.6, if defining translatable HTTP path segments)
zendframework/zend-view suggests installing zendframework/zend-feed (Zend\Feed component)
zendframework/zend-view suggests installing zendframework/zend-i18n (Zend\I18n component)
zendframework/zend-view suggests installing zendframework/zend-navigation (Zend\Navigation component)
zendframework/zend-mvc suggests installing http-interop/http-middleware (^0.4.1 to be used together with zend-stratigility)
zendframework/zend-mvc suggests installing zendframework/zend-log (^2.9.1  To provide log functionality via LogFilterManager, LogFormatterManager, and LogProcessorManager)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-console (zend-mvc-console provides the ability to expose zend-mvc as a console application)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-i18n (zend-mvc-i18n provides integration with zend-i18n, including a translation bridge and translatable route segments)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-plugin-fileprg (To provide Post/Redirect/Get functionality around forms that container file uploads)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-plugin-flashmessenger (To provide flash messaging capabilities between requests)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-plugin-identity (To access the authenticated identity (per zend-authentication) in controllers)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-plugin-prg (To provide Post/Redirect/Get functionality within controllers)
zendframework/zend-mvc suggests installing zendframework/zend-psr7bridge ((^0.2) To consume PSR-7 middleware within the MVC workflow)
zendframework/zend-mvc suggests installing zendframework/zend-servicemanager-di (zend-servicemanager-di provides utilities for integrating zend-di and zend-servicemanager in your zend-mvc application)
zendframework/zend-mvc suggests installing zendframework/zend-stratigility (zend-stratigility is required to use middleware pipes in the MiddlewareListener)
zendframework/zend-filter suggests installing zendframework/zend-i18n (Zend\I18n component for filters depending on i18n functionality)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
sebastian/global-state suggests installing ext-uopz (*)
zendframework/zend-debug suggests installing ext-xdebug (XDebug, for better backtrace output)
zendframework/zend-developer-tools suggests installing aist/aist-git-tools (Show you informations about current GIT repository)
zendframework/zend-developer-tools suggests installing bjyoungblood/bjy-profiler (Version: dev-master, allows the usage of the (Zend) Db collector.)
zendframework/zend-developer-tools suggests installing doctrine/doctrine-orm-module (Profile DoctrineORM queries)
zendframework/zend-developer-tools suggests installing jhuet/zdt-logger-module (Show you log data from Zend\Log)
zendframework/zend-developer-tools suggests installing ocramius/ocra-service-manager (OcraServiceManager can help you track dependencies within your application.)
zendframework/zend-developer-tools suggests installing san/san-session-toolbar (SanSessionToolbar can help you see current Zend\Session data you're using within your application.)
zendframework/zend-developer-tools suggests installing snapshotpl/zf-snap-event-debugger (ZfSnapEventDebugger can help you debug events from Zend\EventManager)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
zendframework/zend-test suggests installing zendframework/zend-mvc-console (^1.1.8, to test MVC <-> console integration)
zfcampus/zf-oauth2 suggests installing alcaeus/mongo-php-adapter (^1.0.5, if you are using ext/mongodb and wish to use the MongoAdapter for OAuth2 credential storage.)
zendframework/zend-hydrator suggests installing zendframework/zend-serializer (^2.6.1, to use the SerializableStrategy)
zfcampus/zf-apigility-admin-ui suggests installing rwoverdijk/assetmanager (^1.7, to expose assets under the document root (may not yet be released))
zfcampus/zf-apigility suggests installing alcaeus/mongo-php-adapter (^1.0.5, if you are using ext/mongodb and wish to use the MongoConnectedListener.)
zfcampus/zf-apigility suggests installing rwoverdijk/assetmanager (^1.7, to install the assets used by zf-apigility-welcome and/or zf-apigility-admin-ui (may not yet be released))
zendframework/zend-code suggests installing doctrine/annotations (Doctrine\Common\Annotations >=1.0 for annotation features)
Package herrera-io/json is abandoned, you should avoid using it. Use kherge/json instead.
Package kherge/version is abandoned, you should avoid using it. No replacement was suggested.
Package herrera-io/phar-update is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
> zf-development-mode enable
You are now in development mode.
someMac:Git user$ cd rbp-api2
someMac:rbp-api2 user$ composer development-enable
> zf-development-mode enable
Already in development mode!
someMac:rbp-api2 user$ composer require zfcampus/statuslib-example
Using version ^1.1 for zfcampus/statuslib-example
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: zendframework/zend-config[2.6.0, 3.2.0].
    - Can only install one of: zendframework/zend-config[3.2.0, 2.6.0].
    - Can only install one of: zendframework/zend-config[2.6.0, 3.2.0].
    - zfcampus/statuslib-example 1.1.0 requires zendframework/zend-config ^2.6 -> satisfiable by zendframework/zend-config[2.6.0].
    - Installation request for zfcampus/statuslib-example ^1.1 -> satisfiable by zfcampus/statuslib-example[1.1.0].
    - Installation request for zendframework/zend-config (locked at 3.2.0) -> satisfiable by zendframework/zend-config[3.2.0].


Installation failed, reverting ./composer.json to its original content.
someMac:rbp-api2 user$ 

The HAL example is misleading / incorrect

In this doc https://www.apigility.org/documentation/api-primer/halprimer
there is this example:

{
    "_links": {
        "self": {
            "href": "http://example.org/api/user/matthew"
        }
    },
    "id": "matthew",
    "name": "Matthew Weier O'Phinney",
    "_embedded": {
        "contacts": [
            {
                "_links": {
                    "self": {
                        "href": "http://example.org/api/user/mac_nibblet"
                    }
                },
                "id": "mac_nibblet",
                "name": "Antoine Hedgecock"
            },
            {
                "_links": {
                    "self": {
                        "href": "http://example.org/api/user/spiffyjr"
                    }
                },
                "id": "spiffyjr",
                "name": "Kyle Spraggs"
            }
        ],
        "website": {
            "_links": {
                "self": {
                    "href": "http://example.org/api/locations/mwop"
                }
            },
            "id": "mwop",
            "url": "http://www.mwop.net"
        },
    }
}

The "contacts" property should actually be "contact". It should also be a URI or a CURIE but I'm not too concerned about RFC5988 purity. I'm more concerned about the conceptual confusion caused by using the plural. The properties contained within the _embedded objects are link relation names. When you embed more than one object with the same link relation then you can use an array under the link relation property to hold a set of embedded objects. However, each object in that array is has the "contact" relation with the context resource. For the property inside the _embedded object to be "contacts" the self link should point to a resource which is a list of contacts. and the array should be inside the embedded object.

Unfortunately, this same error was in the original HAL specification for a while and led to confusion.

OAuth Authorization Header

Might want to update the docs for this, but it seems that Apache 2.4+ strips out the Authorization header by default. I had to add the following to get OAuth working again:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

This was on an existing project that was working fine and reprovisioned vagrant to use Apache 2.4. Afterwards, all my API requests were returning 403. Adding the above to my site config solved the issue.

Advanced Content Validation - Forthcoming Topics

The documentation says something about very interesting topics like

  • Registering custom input filters with zf-content-validation.
  • Registering custom filters and validators.
  • Providing metadata for custom filters and validators so that they will display in the admin UI.

Is there any resource or entry point to get a glue how to manage custom input filters? Anyone who can help or has any experience?

REST tutorial no longer works

https://apigility.org/documentation/intro/first-rest-service

The step 1 suggests installing the following package:

$ php composer.phar require "zfcampus/statuslib-example:~1.0-dev"

But there are version compatibility issues:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove zendframework/zend-authentication 2.5.3
    - Conclusion: don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.0|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.1|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.2|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.3|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.4|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.5|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.6|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.7|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.8|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.9|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.0|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.1|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.10|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.2|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.3|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.4|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.5|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.6|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.7|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.8|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.9|don't install zendframework/zend-authentication 2.5.3
    - Installation request for zendframework/zend-authentication (locked at 2.5.3) -> satisfiable by zendframework/zend-authentication[2.5.3].
    - Conclusion: don't install zendframework/zend-hydrator 2.2.1|install zendframework/zendframework 2.3.0|install zendframework/zendframework 2.3.1|install zendframework/zendframework 2.3.2|install zendframework/zendframework 2.3.3|install zendframework/zendframework 2.3.4|install zendframework/zendframework 2.3.5|install zendframework/zendframework 2.3.6|install zendframework/zendframework 2.3.7|install zendframework/zendframework 2.3.8|install zendframework/zendframework 2.3.9|install zendframework/zendframework 2.4.0|install zendframework/zendframework 2.4.1|install zendframework/zendframework 2.4.10|install zendframework/zendframework 2.4.2|install zendframework/zendframework 2.4.3|install zendframework/zendframework 2.4.4|install zendframework/zendframework 2.4.5|install zendframework/zendframework 2.4.6|install zendframework/zendframework 2.4.7|install zendframework/zendframework 2.4.8|install zendframework/zendframework 2.4.9
    - Conclusion: remove zendframework/zend-hydrator 2.2.1|install zendframework/zendframework 2.3.0|install zendframework/zendframework 2.3.1|install zendframework/zendframework 2.3.2|install zendframework/zendframework 2.3.3|install zendframework/zendframework 2.3.4|install zendframework/zendframework 2.3.5|install zendframework/zendframework 2.3.6|install zendframework/zendframework 2.3.7|install zendframework/zendframework 2.3.8|install zendframework/zendframework 2.3.9|install zendframework/zendframework 2.4.0|install zendframework/zendframework 2.4.1|install zendframework/zendframework 2.4.10|install zendframework/zendframework 2.4.2|install zendframework/zendframework 2.4.3|install zendframework/zendframework 2.4.4|install zendframework/zendframework 2.4.5|install zendframework/zendframework 2.4.6|install zendframework/zendframework 2.4.7|install zendframework/zendframework 2.4.8|install zendframework/zendframework 2.4.9
    - zendframework/zend-stdlib 2.7.0 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.1 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.2 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.3 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.4 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.5 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.6 requires zendframework/zend-hydrator ~1.1 -> satisfiable by zendframework/zend-hydrator[1.1.0].
    - zendframework/zend-stdlib 2.7.7 requires zendframework/zend-hydrator ~1.1 -> satisfiable by zendframework/zend-hydrator[1.1.0].
    - Can only install one of: zendframework/zend-hydrator[1.0.0, 2.2.1].
    - Can only install one of: zendframework/zend-hydrator[1.1.0, 2.2.1].
    - Installation request for zendframework/zend-hydrator (locked at 2.2.1) -> satisfiable by zendframework/zend-hydrator[2.2.1].
    - Installation request for zfcampus/statuslib-example ~1.0-dev -> satisfiable by zfcampus/statuslib-example[1.0.x-dev].
    - Conclusion: don't install zendframework/zend-stdlib 3.0.1|install zendframework/zend-stdlib 2.7.0|install zendframework/zend-stdlib 2.7.1|install zendframework/zend-stdlib 2.7.2|install zendframework/zend-stdlib 2.7.3|install zendframework/zend-stdlib 2.7.4|install zendframework/zend-stdlib 2.7.5|install zendframework/zend-stdlib 2.7.6|install zendframework/zend-stdlib 2.7.7|install zendframework/zendframework 2.3.0|install zendframework/zendframework 2.3.1|install zendframework/zendframework 2.3.2|install zendframework/zendframework 2.3.3|install zendframework/zendframework 2.3.4|install zendframework/zendframework 2.3.5|install zendframework/zendframework 2.3.6|install zendframework/zendframework 2.3.7|install zendframework/zendframework 2.3.8|install zendframework/zendframework 2.3.9|install zendframework/zendframework 2.4.0|install zendframework/zendframework 2.4.1|install zendframework/zendframework 2.4.10|install zendframework/zendframework 2.4.2|install zendframework/zendframework 2.4.3|install zendframework/zendframework 2.4.4|install zendframework/zendframework 2.4.5|install zendframework/zendframework 2.4.6|install zendframework/zendframework 2.4.7|install zendframework/zendframework 2.4.8|install zendframework/zendframework 2.4.9
    - Conclusion: remove zendframework/zend-stdlib 3.0.1|install zendframework/zend-stdlib 2.7.0|install zendframework/zend-stdlib 2.7.1|install zendframework/zend-stdlib 2.7.2|install zendframework/zend-stdlib 2.7.3|install zendframework/zend-stdlib 2.7.4|install zendframework/zend-stdlib 2.7.5|install zendframework/zend-stdlib 2.7.6|install zendframework/zend-stdlib 2.7.7|install zendframework/zendframework 2.3.0|install zendframework/zendframework 2.3.1|install zendframework/zendframework 2.3.2|install zendframework/zendframework 2.3.3|install zendframework/zendframework 2.3.4|install zendframework/zendframework 2.3.5|install zendframework/zendframework 2.3.6|install zendframework/zendframework 2.3.7|install zendframework/zendframework 2.3.8|install zendframework/zendframework 2.3.9|install zendframework/zendframework 2.4.0|install zendframework/zendframework 2.4.1|install zendframework/zendframework 2.4.10|install zendframework/zendframework 2.4.2|install zendframework/zendframework 2.4.3|install zendframework/zendframework 2.4.4|install zendframework/zendframework 2.4.5|install zendframework/zendframework 2.4.6|install zendframework/zendframework 2.4.7|install zendframework/zendframework 2.4.8|install zendframework/zendframework 2.4.9
    - zfcampus/statuslib-example 1.0.x-dev requires zendframework/zend-stdlib ~2.3 -> satisfiable by zendframework/zend-stdlib[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.10, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9, 2.5.0, 2.5.1, 2.5.2, 2.6.0, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.7.5, 2.7.6, 2.7.7], zendframework/zendframework[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.10, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9].
    - Can only install one of: zendframework/zend-stdlib[2.3.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.3, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.4, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.5, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.6, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.7, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.8, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.9, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.10, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.3, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.4, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.5, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.6, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.7, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.8, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.9, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.5.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.5.1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.5.2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.6.0, 3.0.1].
    - Installation request for zendframework/zend-stdlib (locked at 3.0.1) -> satisfiable by zendframework/zend-stdlib[3.0.1].


Installation failed, reverting ./composer.json to its original content.

[question] can Apigility only be used with PHP?

I have some confusion about Apigility.

Is it a library or a gateway like Kong, tyk etc? If its a gateway then it shouldn't matter how proxied APIs are written perhaps in Python, Java etc.

However, on the website it says "You can use Apigility in any PHP application, using all the libraries and frameworks that you want."

Is it true?

New to Apigility. Unable to follow HybridAuth Integration. Help please.

After following the steps I am getting the following error when trying to access /hybridauth?provider=Facebook

Unable to resolve service "Doctrine\ORM\EntityManager" to a factory; are you certain you provided it during configuration?

Also, after copy and pasting the codes for the hybrid auth controller and factory, I can no longer access the RPC service from Apigility UI

screenshot 2018-02-06 07 14 24

The InputFilter dependency injection example is incorrect

The InputFilter dependency injection example is incorrect, at least when using Apigility in a ZF3 project

Input filters from the 'input_filter_specs' config are created by \Zend\InputFilter\InputFilterAbstractServiceFactory, which is registered in the InputFilter plugin manager, not the top-level application service manager. And the abstract service itself is configured by zfcampus/zf-content-validation, and not in zendframework/zend-inputfilter.

Since the InputFilterManager's services are not shared by default, the example also misses the call to setData(). And where to get the data. And doesn't mention skipping the 'zf-content-validation' http method mapping.

'ZF\\OAuth2' doesn't trigger when url /api/rest/status is opened in browser

Accordingly to this https://github.com/zfcampus/apigility-documentation/blob/master/auth/user-differentiation.md documentation when I set config:

'zf-mvc-auth' => [
        'authentication' => [
            'map' => [
                'DbApi\\V1'  => 'oauth2',
                'ZF\\OAuth2' => 'session',
            ],

neither 'ZF\OAuth2' nor SeesionAdapter doesn't trigger if I open rest (/api/rest/status) or rpc urls in browser. It seems, that bshaffer's OAuth2 methods triggered directly in this case. 'ZF\OAuth2' controller and SessionAdapter is triggered only when I open url /oauth in the browser.
Also, I have set 'deny_by_default' to 'true'.

Do I misunderstood something?

Error using zfdeploy

Hi,

I've tried to use the zfdeploy tool and it seams to be reaching the composer.par using a direct folder path. In my case it throws the following error:

Mufasa:pacotes erico$ sudo ./zfdeploy.phar build arch.zpk --target /Users/erico/Downloads/pacotes/archetypebasezf
Creating package "arch.zpk"...
Executing /var/tmp//ZFDeploy_55ae5350580ee/data/composer.phar install --no-dev --prefer-dist --optimize-autoloader 2>&1
Composer error during install command (exit code: 2)
Mufasa:pacotes erico$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.