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

Apigility and index.phtml template

I am trying to create a index.phtml page to my RESTful Apigility API. Steps i have taken is 1) Create a DB connected API any given it route "account" 2) Access the account API on /account with postman and got HAL and JSON to response to work 3)…
Fred
  • 11
  • 2
0
votes
1 answer

Namespaces are not recognized when testing apigility with phpunit

I am writing unit tests for a project that use apigility but for some reason the tests classes do not recognize que namespace of the real classes. here is a test class : namespace Testzfnewsite\V1\Rest\SendEmail\Entity\DAO; use…
0
votes
2 answers

Why am I getting error when I use Postman and oauth2 for login access case in apiagility?

I am new to Zend Framework 2. I am trying to get the login access scenario working with Postman (chrome extension). I have gone through the forum but I'm not sure if I'm missing something or not. So here are the steps that I have taken so far: In…
Ash
  • 336
  • 4
  • 19
0
votes
1 answer

Apigility GET doesn't work

I'm getting another problem in Apigility. I made a simple service using "db-connected" and it was created nicely. But when I make a simple GET request to list all of my users, the response is 200 and anything appear in response. But when I make a…
Alessandro Garcez
  • 728
  • 2
  • 6
  • 25
0
votes
1 answer

Prevent Apigility from conflicting with routes from existing Zend Framework 2 projects

I have an existing Zend Framework 2 project. Now I've been experimenting and considering rebuilding the front end to be entirely AngularJS, as opposed to the now with Zend Framework 2 MvC coupled layouts and views. But for that reason, the models…
0
votes
1 answer

Working with related/embedded entities

Original Github Issue: https://github.com/zfcampus/zf-apigility-doctrine/issues/215 In a Code connected API with three entities with their respective services: Venue, Product and Location. Venue has a ManyToOne relation with Location /** *…
0
votes
1 answer

Correct Way to use returned ApiGility Implicit Token

My app receives an access token by virtue of an implicit grant. Now I am attempting to use this token to access the content servers RPC service. I am not 100% sure if this is the correct way to do it as I am unable to get it to work. $code =…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
1 answer

Apigility how to make images available via public folder

I'm currently creating a mobile app with Apigility as the API. All is working well and life is heaven on my laptop. However, when releasing onto OpenShift we can't access images under the public folder. I'm calling the images with the full URL…
Rodrigo Rubio
  • 1,686
  • 2
  • 16
  • 26
0
votes
1 answer

How to update Apigility from 1.0.3 to 1.1.1?

I'm using Apigility in version 1.0.3: $ composer show -i ... zfcampus/zf-apigility 1.0.3 Apigility module for ZF2 zfcampus/zf-apigility-admin 1.1.2 Apigility Admin module zfcampus/zf-apigility-admin-ui…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
0 answers

APIGility - Multi DB at run time

I am writing API for my application which has one fix database information, where based on user we decide the second database at run time. How I can implement this in APIGility. Thanks in advance!
0
votes
1 answer

Apigility API structure

I want to replace our in house REST system with Apigility and have some questions. We have large number of resources (about 1500) that are hierarchically structured. Apigility works with flat list of resource. This is ok when there are about 100 -…
Peter
  • 904
  • 1
  • 13
  • 26
0
votes
1 answer

ZF2 & Apigility - Correct way to setup GET and POST RPC services

What is the correct way to setup GET and POST services in ApiGility? Currently, if I am setting up a GET service, I will include the variable I require in my route: /api/verify/merchant[/:merchant_code] And if I wish to setup a POST service, my…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
1 answer

How to define an alternative database adapter config file in Apigility?

In an Apigility driven Zend Framework 2 application wenn a database adapter is created (over the Apigility Admin UI), its settings by default get saved in /config/autoload/global.php return array( 'db' => array( 'adapters' => array( …
0
votes
2 answers

How to retrieve data from Jquery POST in Zend Framework

I am trying to use the data sent cia the following JQuery POST: $.ajax({ type: 'POST', data : JSON.stringify({ 'email' : 'test@example.com', 'password' : 'mypassword' }), url: …
HappyCoder
  • 5,985
  • 6
  • 42
  • 73
0
votes
1 answer

Jquery and ApiGility login strategy

I would like to use Apigility and Jquery as a login strategy into my application. I am struggling to understand how to do this. My setup is as follows: The client and the Login api are trusted as they are both part of my application. What I am…
HappyCoder
  • 5,985
  • 6
  • 42
  • 73