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
2
votes
2 answers

ApiGility - JSON decoding error: Syntax error, malformed JSON in PostMan

I am using ApiGility to update a shopping basket products and quantities and am testing with Chromes Postman. I am using the PUT method to send my form data to the api and keep getting the following error: JSON decoding error: Syntax error,…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
2
votes
0 answers

zend framework 2 apigility assets not loading

I'm new to Zend Framework, and having spent a couple of days getting to grips with some basics, I decided to add Apigility. Apigility and apigility-admin installed as expected using composer, but when i go to /apigility/ui, the page loads, but…
Nathan
  • 65
  • 10
2
votes
1 answer

ApiGility - Returning custom collections

My goal is to return a custom collection for a findAll() query and to deliver this to HAL in order to ensure that its _links are formatted correctly. I originally thought I would simply do this programmatically however this seems to be the wrong way…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
2
votes
0 answers

Code to Db-Connected Apigility - How Extend Collection Class and get only necessary fields

I follow this tutorial http://techportal.inviqa.com/2013/12/03/create-a-restful-api-with-apigility/ and create a db-connected API from code-connected. And have for Entity the above methods that get me the possibility to choice what field are…
Artur Mamedov
  • 597
  • 1
  • 7
  • 17
2
votes
1 answer

Apigility rest service - how to filter by a non unique column using db connected

I have a db-connected rest service, and I only managed to so far get the full collection from the database or a single entity by its ID. I can't find a proper guide to explain how to use the GET url parameters to filter by other fields, and how do I…
Dalai Lama
  • 404
  • 4
  • 20
2
votes
1 answer

Resque could not find job class ZF2 namespaces

Attempting to use the Redis backed PHP-Resque project https://github.com/chrisboulton/php-resque from within a ZF2 project. (Apigility to be specific) What I'm having trouble with, is combining the ZF2 namespaces and the classes for instance…
Erik
  • 2,782
  • 3
  • 34
  • 64
2
votes
2 answers

Apigility: ApiProblem alternative?

been playing with Apigility a bit and there is something i do not like. My delete method in an entity mapper looks like: public function delete($id) { $affectedRows = $this->table->delete( array('userId' => $id) ); if (0 ===…
Illiax
  • 1,002
  • 1
  • 8
  • 21
2
votes
1 answer

Apigility and https

I got a problem with apigility and https. To enable https communication between AngularJs frontend and Apigility backend, I used this tutorial: http://robsnotebook.com/xampp-ssl-encrypt-passwords. Almost everything works fine, but REST webservices…
lwi
  • 21
  • 2
2
votes
1 answer

Apigility content validator - enable to fetch service validator

I was following the tutorials on https://apigility.org/documentation/content-validation/basic-usage. But, when I tried to inject the input filter service AddressBook\V1\Rest\Contact\Validator in the ContactResource, I get the following…
Nekapps
  • 53
  • 4
2
votes
1 answer

Apigility - How to use Doctrine ORM Module from ZF2 command line

Hi i'm new with Apigility. Im trying to configure doctrine-orm-module. When i tried to run the command below and getting this error $ cd /var/www/apigility/zf-apigility-skeleton/vendor/doctrine/doctrine-module/bin $ php doctrine-module.php Error…
2
votes
2 answers

How can I make apigility display exception trace in ApiProblem responses?

In the module.config.php files for zf-api-problem and zf-rest it says you can override 'display_exceptions' in the application config to get exception stack traces in the response. 'view_manager' => array( // Enable this in your application…
pdizz
  • 4,100
  • 4
  • 28
  • 42
1
vote
2 answers

Check if my GET request has Header: Token

I want to send a request with or without 'Token' as a header. If request has 'Token' as a header: if the user already has that item, it will return the item with the proper item_id of a specific user (based on its token), otherwise it will return…
Ani
  • 788
  • 3
  • 7
  • 21
1
vote
1 answer

Custom validators with params in Laminas API Tools

How can I add custom validators with parameters in API Tools GUI? I wrote a custom validator + factory. I have some setters+getters there. How can I configure this validator the way it would: show up in the list of available validators in the GUI…
Sfisioza
  • 3,830
  • 6
  • 42
  • 57
1
vote
0 answers

Using Zend Framework 1 library in Laminas API tools - auto loading vendor prefix class

I am working on a Laminas API tools (version 1.4) project. There is ZF1 library which I need in my code. the structure of library is: DirectoryA .DirectoryB file1.php =====> DirectoryA_DirectoryA_className as shown above class…
Akhtar
  • 11
  • 2
1
vote
1 answer

Problem with $oQueryBuilder->getQuery()->getResult()

I created a table using Doctrine, Zend abigility and php. I have created the Entitiy, Repositry, Resource, Resource Factory, and the dispature. However, when I do the CRUD functions . I am not able to get the result…