Questions tagged [laminas-api-tools]

Laminas API Tools provides both a builder and PHP runtime for HTTP APIs, using standards such as Problem Details for HTTP APIs, OAuth2, Hypertext Application Language, and others.

Laminas API Tools, formerly Apigility, provides both a builder and PHP runtime for HTTP APIs, using standards such as Problem Details for HTTP APIs, OAuth2, Hypertext Application Language, and others. It is built on top of , and is a subproject of the project.

251 questions
0
votes
1 answer

How to setup Authentication with ApiGility

I am attempting to setup Authentication with ApiGility. I have added a Login route, and when I access this route with no authentication in place I am expecting to receive: { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title":…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
1 answer

How to secure a local API URL, when using javascript

I am looking for the best way to secure my applications login api from third parties attempting to hijack it. I am using Apigility, ZF2, Jquery. I have a game server (Server G) and a cloud server (Server C). While Server C - holds usernames and…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
1 answer

How to activate authorization only for some of HTTP methods in Apigility?

On the configuration page {API name} -> {service name} -> Authorization single methods for the service can be put under authentication: In this page you can specify which HTTP methods to put under authentication, for your entity and collection…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
1 answer

How to get the Basic HTTP Authentication working for an Apigility application?

I set up the Basic Auth as in the Apigility docu described (the docu is not up to date anymore, but the main steps are staying the same). So, I created a users.htpasswd file and added an authentication adapter. My /config/autoload/local.php has been…
0
votes
1 answer

Password protecting Apigility admin UI without htpasswd

I was being searching to password protect apiglity admin ui without using htpasswd, but i did not got any information about. Can anybody help me out with this? Thanks in advance
Altaf Hussain
  • 5,166
  • 4
  • 30
  • 47
0
votes
1 answer

unwanted response text in rest apigility

use apigility to get json response in postman when i send post request in postman and return response like this { "\u0000*\u0000version": null, "\u0000*\u0000contentSent": false, "\u0000*\u0000recommendedReasonPhrases": { "100": "Continue", …
0
votes
0 answers

java.io.IOException: Mkdirs failed to create file:/pig/deidentifiedDir/

When I try store data using pig command STORE D into '/deidentifiedDir'; Getting this error 2015-05-06 20:17:14,587 [Thread-96] WARN org.apache.hadoop.mapred.LocalJobRunner - job_local_0009 java.io.IOException: Mkdirs failed to create…
jona
  • 21
  • 1
  • 6
0
votes
1 answer

OnDispatch event in Service Constructor

I have problem with attaching OnDispatch event in Apigility. I want to have value from custom header in constructor of my abstract Service Class. It works when I simply add it to on bootstrap in Module.php public function onBootstrap(MvcEvent $e) { …
Vini
  • 627
  • 5
  • 18
0
votes
1 answer

apigility db connected service with many_to_many relations

I'm new to ZF and apigility. I've tried to create DB-connected service with almost zero-configuration. Everything works well, I've got simple CRUD api, but there's one thing that I did not find solution for. I have two tables: venues and…
0
votes
1 answer

How to use validation_messages and display_exceptions in Apigility?

From the Apigility documentation (Error Reporting): The API Problem specification allows you to compose any other additional fields that you feel would help further clarify the problem and why it occurred. Apigility uses this fact to provide more…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
1 answer

Does Apiglity provide a buil-in error handling and logging?

I'm working on an API project and have to decide over the error handling and logging strategy/concept. So as first step I want to check, whether Apigility provides its own logging functionality. If I see it correctly, Apigility only provides a…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
2 answers

ZF2 - Formatting Routes

I typically format my routes in ZF2 like so: /name/to/route Now I have been doing the same thing with my api routes however I am finding that I am struggling to include data such as encoded urls or arrays. Here is an example of such a…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
1 answer

Integrating angular app into Zend Framework 2 or keep it separate?

I have built an angular front end that will be served by a Zend Framework 2 back end. Now I am wondering, do I integrate my angular project into ZF2 OR should I simply keep it as a stand alone entity outside of ZF2? Originally I was building this as…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
1 answer

ZF2: How to change Request object globally for all Controllers when using forward plugin?

I'm using forward plugin in testing and performance purposes. At first IndexController data passes through normal POST request. There I get this requst and POST data and I need add one more parameter to it. $this->getRequest()->getPost()->subsystem…
0
votes
1 answer

Apigility code-connected service - for POST method

I am a newbie to the apigility code-connected service & was able to create a RESTful service with fetch and fetchall class method on the mapper file. Can someone point me a good sample for insert (POST) data via REST service ? Thank you, Kevin