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

ZF2 Getting Autoloaded config info in a custom class

I have been racking my brain now for the better part of two days. I'm using Zend Apigility to create a RESTful web API application. Apigility builds its application using ZF2. I created a custom class that I use throughout my API. I would like to…
user1551869
  • 115
  • 4
1
vote
1 answer

How / Why does the dummy Apigility REST application wotk without end points?

The video tutorial "Apigility Integration in Zend Studio" shows an example of Apigility application building in Zend Studio. It's an example for RPC. Now I created a project based on the "Simple Services" template (New -> Project... -> Apigility…
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
0 answers

Correct method to post from ajax to apigility rest-connected module

I am using Zend Studio with Apigility, Zend Framework 2. I have created a user service which works fine. If I use the Test Service, then I am able to POST to my module and generate a new user. When trying to post from a page with AJAX, I receive…
1
vote
1 answer

Can't enable OAuth2 authentication with Mongo in Apigility?

I have created a new Apigility project in Zend Studio 12. I want to enable authentication using OAuth2 and a Mongo database. The form for doing this is very straightforward, asking for a hostname, database name and route for OAuth2. I provided these…
1
vote
1 answer

Apigility as OAuth2 Resource Server with remote Authorization Server

I need to add OAuth2 support to an existing REST API built with Apigility. As Apigility includes an OAuth2 module, it seems the easiest approach would be to simply use that. However, the documentation states "In Apigility, the Resource Server and…
vanwinter
  • 153
  • 1
  • 8
1
vote
0 answers

Cannot respond with 404 in HEAD request

I'm unable to respond with a 404 not found when implementing a HEAD request in apigility. Apigility handles HEAD request with the same resource method as GET requests by default. This is the fetch($id) method. My resource looks like this: class…
Bram Gerritsen
  • 7,178
  • 4
  • 35
  • 45
1
vote
2 answers

ZF2 - Apigility not creating new api

I have Apigility running successfully on an app and have decided to use it for a new one. The problem I am stumped with is that it refuses to create a new api and appears to "hang" on the "create new api" screen. Here is a screenshot of where it…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
1
vote
0 answers

How to create a rest API to upload a image file using Apigility?

I have try to create rest api for table event in database. This entity has a property is thumb image. So that when user post a new event then user have to attach a photo to server via api. I use api POST /event with parameter is multipart/form-data…
Ronn
  • 11
  • 3
1
vote
0 answers

How to use zf-apigility-admin-ui instead of zf-apigility-admin to enable/show Doctrine menu

i want to use the Doctrine menu in apigility but it is not yet available using the zf-apigility-admin as provided in the skeleton. i tried asking in the github page https://github.com/zfcampus/zf-apigility-admin-ui/issues/5, and got this: This is…
chaz
  • 11
  • 2
1
vote
1 answer

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…
ufk
  • 30,912
  • 70
  • 235
  • 386
1
vote
2 answers

Making Apigility usable for logged in users only, with Zend Framework 2

How can I use the authentication of the Apigility API to make it secure for logged in users only? Right now all I do when user logs in, is create session (common). I need to do more, I need to somehow authorize him to the API as well and block…
Dalai Lama
  • 404
  • 4
  • 20
1
vote
1 answer

ZF2 aka Apigility updating SQL database entry

I am attempting to update a row in a database, using the ZF2 based framework Apigility. I'm seeing that the row exists, retrieve it's contents, and update the object.. but when I try to do $table->update($arrayOfRowData); I get an…
Erik
  • 2,782
  • 3
  • 34
  • 64
1
vote
1 answer

How to handle a case in a Zend Framework 2 application, when one of multiple input items must be set?

The ZF2 application I'm currently developing is Apigility driven, but I hade to move some InputFilter settings from the module.config.php to separate InputFilter files/classes. Now I have (amongst others) the fields CompanyId and UserId. One (one…
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
1 answer

How to handle context specific fields and fieldsets / context specific input validation in an Apigility driven Zend Framework 2 application?

In the Zend Framework 2 application I'm currently developing with Apigility there is a resource address, that provides following access points: GET /address id <-- required PATCH /address id <-- required street zip city …
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
1 answer

(Why) Does Apigility only work in the development mode?

In the Apigility docu is described, how to "install" Apigility. There are several methods to do this, but the last step should alway be: cd path/to/install php public/index.php development enable # put the skeleton in development mode Without it…
automatix
  • 14,018
  • 26
  • 105
  • 230