問題タブ [laminas-api-tools]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
angularjs - 敏捷性と https
敏捷性と https に問題がありました。AngularJs フロントエンドと Apigility バックエンド間の https 通信を有効にするために、次のチュートリアルを使用しました: http://robsnotebook.com/xampp-ssl-encrypt-passwords。ほとんどすべてが正常に機能しますが、REST Web サービスは https 経由で応答しません。高度なRESTクライアントを使用して、リクエストを送信している場合など
NO RESPONSE が表示されます。どこに問題があるのか 知っている人はいますか?
php - Zend Framework 2 を使用して、ログイン ユーザーのみが Apigility を使用できるようにする
Apigility APIの認証を使用して 、ログインしているユーザーのみを保護するにはどうすればよいですか?
現在、ユーザーがログインしたときに行うことは、セッションを作成することだけです(共通)。
もっとやる必要があります。どうにかして彼にも API を許可し、他のすべての人をブロックする必要があります (誰もログに記録されません)。
ZF2 と Apigility は初めてなので、ダミートークをお願いします。
私はApigility Auth2について読みましたが、これは使用しませんでした。
たとえば、Facebookにログインすると、他のアプリが再ログインせずにFacebookアカウントを使用することを「許可」できます.APIについても同様です。
zend-framework2 - Resque はジョブ クラス ZF2 名前空間を見つけられませんでした
Redis でサポートされている PHP-Resque プロジェクトhttps://github.com/chrisboulton/php-resqueを ZF2 プロジェクト内から使用しようとしています。(具体的には敏捷性)
私が問題を抱えているのは、ZF2名前空間とクラスを組み合わせることです
例えば :
コントローラ
MyResqueJob クラス
resque によって表示されるエラー メッセージ:
php - filters are not being executed
I'm writing a PHP 5.6 application using apigility 1.0.4 and zend framework 2.3.3
with apigility I created a new reset service called drink and created a filed called "drink_flavor".
I used the following filters:
now I use postman to test it.
so i configured the url to http://url/drink
I'm sending post data with raw json with the following text:
as you can see i have a space at the beginning and the letters are capital.
now if my controller code i have the following:
so i'm just printing the data.
if I understood everything correctly instead of getting ' AAA' i should have gotten 'aaa' because of my filters but I still got the unmodified data which is " AAA".
any ideas what's missing?
php - zf-apigility-admin の代わりに zf-apigility-admin-ui を使用して Doctrine メニューを有効化/表示する方法
apigility で Doctrine メニューを使用したいのですが、スケルトンで提供されている zf-apigility-admin を使用してまだ利用できません。
私はgithubページで尋ねてみましたhttps://github.com/zfcampus/zf-apigility-admin-ui/issues/5、そしてこれを得ました:
これは、Doctrine UI がまだ準備できていないためです。UI で Doctrine を使用する場合は、https://github.com/fwahlqvist/zf-apigility-admin-uiを使用する必要があります。
zf-apigility-admin-ui をインストールし、構成にいくつかの変更を加えました。
composer.json
development.config.php
しかし、アクセスすると404エラーが発生しますhttp://localhost:8888/apigility/ui#/
「要求された URL は、ルーティングによって一致できませんでした。」
apigility-admin-ui ビューを使用するにはどうすればよいですか?
doctrine-orm - ロールン API の設定
私はこのチュートリアルにジャンプしました: roll'n apiをインストールするためのroll'n apiリンク
のインストール( doctrine 2 orm を使用したapigilityフレームワークに基づく拡張フレームワーク)
ただし、手順 4 と 5 で問題が発生しました。
C:\www\api>php public\index.php ビルド API モジュール
C:\www\api>php public\index.php ビルド API
上記のコマンドを発行すると、失敗します。
これは、私の Windows コマンド ラインでプロンプトが表示されたものです。
失敗の理由: 引数が無効であるか、引数が指定されていません
また、
roll'n apiのホームページ にも直接アクセスしまし
た。インストールと再構築の .php ファイルを含む /bin フォルダーがないためです。
ありがとう!