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

magneto 2 installtion error on composer install

While installing magento 2.4.4 i got an issue like Install of laminas/laminas-dependency-plugin failed …
2
votes
1 answer

How to fix a problem with a nested onetomany relationship not showing in Apigility route

I have a problem using Apigility and Doctrine at their latest versions. I have 2 entities: Advert and Application on a one to many bidirectional relationship. Many applications can be associated with an Advert and an Advert has many applications. My…
2
votes
1 answer

how can i render template in a variable with zend framework 3?

I'm writing API. Trying to render some templates, for example index/index config: 'index/index' => __DIR__ . '/../view/layout/index.phtml', index.phtml: var ?> I need a string as result send it to dompdf to create a pdf…
Dimas
  • 79
  • 9
2
votes
2 answers

Zend 2 conditional validator

I am struggling with performing a validation problem, based on a field entity called published I must apply validation rules: Validate entity when it is set to true Do nothing when it is set to false (draft feature) I managed to add a callback…
ka_lin
  • 9,329
  • 6
  • 35
  • 56
2
votes
1 answer

Apgigility OAuth2, link between User and Client/AuthorizationCode

I'm struggling with OAuth2 authorization, authentication and user linking. What I've done so far: I've created a client and it's secret. All redirects and so on are working. Grant type password works for own native app (e.g. Android and iOS) But for…
2
votes
0 answers

Zend Framework: Transforming post data before reaching Resource

I have a Zend Framework 2 project using Apigility, and I want to be able to send an array of objects via POST to create multiple entities at once. However, ZF/Rest/Resource automatically converts arrays to objects when making a POST. To make the…
petroica
  • 139
  • 1
  • 3
  • 14
2
votes
3 answers

Apigility GET collection returns only 10 results when content negotiation is set to JSON

This issue is bugging me for some time now. To test it I just installed a fresh Apigility, set the db (PDO:mysql) and added a DB-Connected service. In the table I have 40+ records. When I make a GET collection request the response looks OK (with…
Zsolt
  • 31
  • 3
2
votes
1 answer

How do I convert HAL JSON data into JSON array for jQuery DataTables

I need output data in JSON array format to use with jQuery DataTables but my API from Apigility gives HAL+JSON. How can I convert it so that I can pass it from fetchAll method of API to AJAX URL of Datatables? Here is what the HAL+JSON looks…
Prateek
  • 95
  • 2
  • 13
2
votes
1 answer

Apigility code connected service across two tables / entities

I have been having trouble finding any up to date tutorials on Apigility - and nothing when it comes to writing a code connected service across multiple tables. Say I have two tables, one to manage blog categories, the other to manage blog…
2
votes
1 answer

Apigility test returns page not found error

I'm following the apigility getting started tutorial to setup a simple RPC API. My apigility dashboard is at: http://localhost:8888/apigility/ui#//module/apiname/1 When I add a simple service called ping that returns just a timestamp to acknowledge…
Vasilis
  • 2,721
  • 7
  • 33
  • 54
2
votes
2 answers

Basic auth in Apigility when using Postman

I have a very simple REST service using Apigility, exposing GET and POST methods. I test it using Postman. Everything works fine. I then try to add an authentication layer. To do so, I create a htpasswd file, I create a Basic Auth adapter pointing…
gael
  • 55
  • 1
  • 1
  • 8
2
votes
2 answers

How to validate nested data following Apigility way?

I have one small question about validating nested json data. For example, I have similar PATCH request as this: { "awesome": "yes", "myObject": { "some_property": "Text Example value", "another_property": "1965" } } What…
Myroslav
  • 443
  • 1
  • 5
  • 11
2
votes
1 answer

OAuth2 grant-type for my web app API

I am working on an API for my web application that can provide raw JSON data for my users in to use as they wish. I am using Apigility which comes with an OAuth2 implementation. I'd like my users to visit a screen in my app to get their assigned…
Joel
  • 111
  • 8
2
votes
2 answers

Add custom route to Apigility

I am new to Zend Framework 2 - Apigility, i created the basic API with the Apigility UI and connected the api with a remote database. Now i want to create a custom POST route for user login something like: /users/login. What are the steps to create…
Papauha
  • 169
  • 1
  • 1
  • 8
2
votes
2 answers

apigility - What alternatives I can use for Zend\Paginator\Paginator in Collections?

In several endpoints I'm doing with Apigility, I want retrieve all the possible results without pagination. Is there a class to replace Paginator in Collection?
Manuel Rubio
  • 114
  • 2
  • 9
1 2
3
16 17