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
1
vote
1 answer

"Invalid content-type specified" when uploading file to Apigility

I'm a building a RPC API using Zend Framework 2 and Apigility by Zend Framework. For testing, I use the chrome extension Postman REST-Client. I can do POST requests without problems when I use Postman. But my code doesn't work. $client = new…
watlf
  • 11
  • 4
1
vote
3 answers

Apigility - Invalid content type specified

I am attempting to post login credentials to an apigility login API: $response = ClientStatic::post( 'http://www.example.com/api/login', array('email' => 'test@eample.com','password' => 'test'), array('Accept' =>…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
1
vote
0 answers

Adding an attribute to an entity on fetch from a Doctrine-connected Resource

I'm using Apigility on ZF2 and I have a Doctrine-connected service and I want to send a custom field that doesn't exist in the table the service is connected to. For example, I'm uploading an image to the API, and storing the necessary data to the…
PC NV
  • 11
  • 2
1
vote
1 answer

how to customize receive-code and authorize page in Apigility

am request this url http://xxxxxx/mobileapi/public/oauthtest/authorize?response_type=token&client_id=userapi&redirect_uri=./receivecode&state=xyz and show this page image in that…
1
vote
1 answer

git ignore doesn't work

This might seem like a noob question but i couldn't find any solution to it. I have an apigility project cloned from the original repository. I have deleted the .git directory and kept the .gitignore file : nbproject ._* .~lock.* …
Susy11
  • 260
  • 1
  • 3
  • 15
1
vote
1 answer

(How) Can the data of a Zend Paginator object be manipulated?

In a Zend Framework & Apiglity driven application I'm using Zend\Paginator\Paginator for my collection objects. A Paginator object contains a ResultSet, so flat data structures like: { "project": [ { "id": "1", …
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
0 answers

Apigility DBconnected REST item not found on POST

I have just settled up a db connected service. I changed the Entity Identifier Name to match with my table, added three fields(one is the identifier) and put some length validation. No further changes, so far, so good, I can get/, get/:id with no…
Illiax
  • 1,002
  • 1
  • 8
  • 21
1
vote
1 answer

Architecture of Apigility

I have several Systems under different subdomains working. Every system serves some Restful APIs, which are used by mobile clients. Now I looked at apigility for managing those APIs. But the architecture is not completely clear to me. All of my…
user3460622
  • 165
  • 1
  • 11
1
vote
0 answers

Apigility with Doctrine 2 ODM MongoDB

When i get entity from my API i got error: PHP Fatal error: Call to a member function createQuery() on a non-object in /Sites/system.local/vendor/zfcampus/zf-apigility-doctrine/src/Server/Resource/DoctrineResource.php on line…
1
vote
3 answers

How to access and manipulate data in Apigility before it is sent to the client?

I'm developing an Apigility driven application based on the Zend Framework 2. Currently I'm sending the data retrieved in the database directly to the client: a request comes in, the MyResource#fetch(...) or MyResource#fetchAll(...) gets triggered…
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
1 answer

ZF2, Apigility with Doctrine and Embedded Atributes issue

I'm trying to fetch some data using two nested queries through two doctrine repos: $user = $this->_objectManager->getRepository('\Application\Entity\User')-> findOneBy(array("hash" => $data)); $id_user = $user->getId(); $user_credits =…
1
vote
1 answer

Enabling Zend Developer Tools toolbar causes database connection errors

I want to built Doctrine 2 into an Apigility Zend Framework 2 application. Following Marco Pivetta's Doctrine ORM ZF2 Tutorial, I installed not only Doctrine, but also the Zend Developer Tools, like in the tutorial shown: $ composer require…
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
1 answer

apigility via vagrant is not reachable from outside the vagrantbox

I use a Ubuntu-Vagrant to make a API by Apigility. Apigility is installed and works very well: $ sudo php -S 10.10.10.30:8888 -t public public/index.php PHP 5.6.4-1+deb.sury.org~trusty+1 Development Server started at Tue Jan 27 13:40:23…
Aerypton
  • 51
  • 4
1
vote
1 answer

ApiGility - Getting validation errors with PUT

I am new to ApiGility and am attempting to update my shopping cart via an API call as apposed to a route. I am using Zend Framework 2 with a code connected api. The problem I am currently facing is that no matter what I try, I am unable to put the…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
1
vote
2 answers

How to build nested responses in an Apigility driven application with a ZfcBase-DbMapper based model?

I'm developing a RESTful web application -- Apigility driven and based on the Zend Framework 2. For the model layer I'm using the ZfcBase DbMapper. The model essentially consists of two entities: Project and Image (1:n) and is currently implemented…
automatix
  • 14,018
  • 26
  • 105
  • 230