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

Connecting To Mongo Replica Set With Doctrine MongoODM Module

We are in the process of updating our API's MongoDB hosting provider from mLab to MongoDB Atlas. I have updated our connection server to PHP 7.4 with MongoDB PHP extension 1.7.4. I have updated our API framework from Apigility to Laminas API Tools…
Jamie_D
  • 979
  • 6
  • 13
1
vote
1 answer

Apigility + Doctrine - ManyToMany fetch Eager not working from either side - data present

I have a setup with Country and Currency objects. A Country may have 0 or more Currency objects and vice versa there's the Currency that may be used by 0 or more Country objects. The problem is the data is not returned to the front-end (api…
rkeet
  • 3,406
  • 2
  • 23
  • 49
1
vote
1 answer

'Error getting Doctrine service(s)' when trying to create Doctrine service in Apagility Admin UI?

I'm trying to create Doctrine services for an API in Apigility (1.4.1). Doctrine is installed, along with the Apigility integration. My configuration (/config/autoload/local.php) is as follows. return [ 'doctrine' => [ 'connection' => [ …
Max Griffin
  • 439
  • 2
  • 5
  • 11
1
vote
1 answer

Unable to process entity but successful deletion in Doctrine using Apigility

I want to ask your ideas or solutions if why I came up with this response from my request. I've been using Zend framework 2 and Apigility for API Calls. This is the code I used to delete a certain id from the table Calendar Item. The id is the…
G. Curs
  • 181
  • 1
  • 12
1
vote
0 answers

Using custom serializer in Ember with hal json from Apigility

So I'm in the process of building out the front end of our site, and long story short, the location of our API call is through apigility. I'm fairly new to Ember, so I've been having to piece of a lot of info together on the best way to make this…
ELepolt
  • 373
  • 2
  • 4
  • 16
1
vote
1 answer

OAUTH2 Refresh Token

I am little confuse of Refresh Token in OAuth2. Like it says access token limit the time window of 1 hour that hacker can use the user credentials and refresh token is long live token which can be use to recreate the access token. I am confused if…
1
vote
3 answers

Zend Apigility : DELETE HTTP method Validation

I have recently explored Apigility I want to use HTTP DELETE method to delete some entity but before deleting I need to validate "entityId" must be given and must be Digit and trim. Problem is documentation mentions that: Content Validation…
1
vote
1 answer

Fatal error when injecting Apigility v1.4 into Zend Framework 3

I've juts included 4 new packages: zfcampus/zf-apigility, zfcampus/zf-apigility-admin, zfcampus/zf-development-mode and rwoverdijk/assetmanager (not sure why though but fair enough) into my ZF3 project in order to start to use Apigility. After that…
divix
  • 1,265
  • 13
  • 27
1
vote
1 answer

Apigility+Doctrine: custom response

I have a project running on Apigility + Doctrine. From a scratch (automatically without writing extra code), I can retrieve entities and collections with pagination, filtering, etc. This is perfect when retrieving DB rows, however, most services…
1
vote
1 answer

An Embedded Collection in an Entity Only Renders up to 10 Entities in Apigility

I have created a resource that when fetched GET /resource/{id} returns a response (on success/found) with the following template: Resource: { "name": "Name", "code" "Code", "_embedded" : { "foos" : [{ "name" :…
leonard.javiniar
  • 539
  • 8
  • 25
1
vote
2 answers

Apigility Admin UI Not Opening

so my apigility admin area was working just fine before they updated it to ZF3. No after composer update, I am getting this when I try to open /apigility/ui Does anyone know what might be the problem and how can we resolve this issue ?
Haris Mehmood
  • 854
  • 4
  • 15
  • 26
1
vote
1 answer

Apigility Resource class methods

I am using the Apigility to create Rest Web Services except that I have a doubt. Can I add methods in the class Resource? If so, how can I make a call to the method with php? Thanks
MANIAMAX
  • 146
  • 9
1
vote
1 answer

zfr-rest and apigilty difference

What is the difference between zfr-rest and apigilty. Which one should be used in which circumstances? AS far as I can see zfr-rest is simple and can be used to deliver any payload where as apigilty seems like bound to return only HAL. Which one…
varuog
  • 3,031
  • 5
  • 28
  • 56
1
vote
2 answers

how to properly set up child routes in apigility?

I am in the process of setting up my first apigility project and so far it is going well. I'm having some issues with the routing and how to set it up though. Suppose I have songs, albums and artist (fictitious example for this question only). I…
1
vote
1 answer

Apigility - POST to Entity - How do I get the ID value?

I am building an API with Apigility. I want to allow POST to a Collection (for creating a new unnamed entity) and also to an Entity (for creating a new named entity). Apigility's Resource class, 'create' method is invoked on POST to either the…
vanwinter
  • 153
  • 1
  • 8