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

Implementation of a RESTful API with access control mechanism using Apigility

I want to create a RESTful API using the Zend Framework 2. Even though I'm pretty unexperienced with ZF2 I've choosen this framework because of it's loose coupeling and the fact that the code is audited on a regular basis. I found the tool Apigility…
Noir
  • 474
  • 9
  • 21
0
votes
1 answer

Can not retrieve the object manager in the input_filter config

I want to reuse a Fieldset that implements InputFilterProviderInterface o it has the method getInputFilterSpecification where I can declare the specifications for all the elements in the fieldset. public function getInputFilterSpecification() { …
0
votes
1 answer

Zf2 - Using sessions / logged in status across multiple web sites

I am using Zend Framework 2 with ApiGility. I have the following scenario: A website where users login and manage their accounts: www.website.com Apps hosted separately: app.website.com (that users want to use) The sub-domain is not necessarily…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
2 answers

Call a function on each http request

In my Apigility project I have different Rest resources, all of them extends my class ResourseAbstract and in there I extend the AbstractResourceListener as Apigility needs. So for example my resource User:
DomingoSL
  • 14,920
  • 24
  • 99
  • 173
0
votes
1 answer

How to get serviceManager to work on a class zf2

I have some services defined on my module.php that works as intended declared as: public function getServiceConfig() { return array( 'factories' => array( 'Marketplace\V1\Rest\Service\ServiceCollection' => function($sm) { …
DomingoSL
  • 14,920
  • 24
  • 99
  • 173
0
votes
2 answers

How to create data and return properly formatted json using ApiGility and RPC

I am using the RPC service of ApiGilty to return some data. I would like to double check whether or not this is the correct way of formatting and returning the data as I am not 100% sure of the correct process. EDIT: To clarify The data is being…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
1 answer

How to access URI query parameters from a Resource class using Apigility?

I'm developing an Apigility driven application based on the Zend Framework 2. I want my application to provide nested responses for both -- single items and lists: /projects/1 { "id": "1", "title": "...", ... "_embedded": { …
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
2 answers

How to expand error codes in documentation in Apigility?

I didn't find the way how to describe all my response codes, and I see only default ones. I have a lot of responses, and want to describe them. Also I'm interested in describing different requests which cause 400 response error(for example that…
Grokking
  • 665
  • 8
  • 16
0
votes
1 answer

How to access two similar but located in different API in a single Apigility project?

Suppose we do have an Apigility URL like localhost:8888/user. But I do have two API's in a single Apigility project, ApiOne and ApiTwo. Doing a GET request from localhost:8888/user always returns resources generated by ApiTwo. But when I want to get…
leonard.javiniar
  • 539
  • 8
  • 25
0
votes
1 answer

ApiGiltiy: Unable to fetch API filesystem writability status

I recently started to get this error while using ApiGility. I am unaware of any particular change that may have caused it: Unable to fetch API filesystem writability status; you may need to refresh the page. In addition to this error, I also get…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
1 answer

How to set up different databases / database adapters for multiple versions in Apigility?

In Apigility DB-Connected services allow [...] to specify a database adapter [...] (see the REST Service Tutorial in the documentation). "DB-Connected" services provide Database Settings, where the adapter can be assigned. And every adapter…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
2 answers

How to include the 'id' (field) of an entity in the response after a POST (create) event in Apigility?

Given a json string: POST localhost:8080/person { f_name : 'Juan', l_name : 'Dela Cruz' } we would usually return a boolean true value upon success so that apigility would return/render something like this: 200 Ok { f_name :…
leonard.javiniar
  • 539
  • 8
  • 25
0
votes
0 answers

Zend framework not recognize classes

I am relatively new to Zend as I am working with Apigility. When I try to include classes from external files, which are part of another MVC project, files are read, but creating instances returns an error. If I use an include/require function…
ZiaBoby
  • 11
  • 3
0
votes
1 answer

Trigger REST request in RPC Controller in apigility

Taking the difference between REST and RPC calls into account and applying them to apigility I want to implement the register action as a RPC call, which adds a user via POST /user, trigger an actication email submission and separate the data to add…
ChrJantz
  • 919
  • 1
  • 11
  • 23
0
votes
0 answers

Configuring roll'n api

I jumped onto this tutorial: installing roll'n api link for installing roll'n api (extended framework based from apigility framework with doctrine 2 orm) However I had a problem on steps 4 and 5. C:\www\api>php public\index.php build api…
1 2 3
16
17