Questions tagged [yii-rest]

Use for questions about any version of Yii Rest Api, an open-source MVC framework for writing Rest API's in PHP5+

Yii provides a whole set of tools to simplify the task of implementing RESTful Web Service APIs. In particular, Yii supports the following features about RESTful APIs:

Quick prototyping with support for common APIs for Active Record;

Response format negotiation (supporting JSON and XML by default);

Customizable object serialization with support for selectable output fields;

Proper formatting of collection data and validation errors;

Support for HATEOAS;

Efficient routing with proper HTTP verb check;

Built-in support for the OPTIONS and HEAD verbs;

Authentication and authorization;

Data caching and HTTP caching;

Rate limiting;

21 questions
0
votes
1 answer

why dont display relation data in Rest Yii2

why dont display relation data in Rest Yii2 i have two tables. sample: category , subcategory
user3770797
  • 374
  • 5
  • 24
0
votes
0 answers

Yii2 Rest Doesn't Update using JQUERY AJAX

! , I'm Working On An Application that using JQUERY AJAX to CRUD data , In the Server side I'm using Yii2 framework , so I'm working with its rest. But The Error Is That it doesn't update any data and it returns the same old data There the JS…
0
votes
2 answers

\yii\web\UploadedFile::getInstance not working File Update in REST API yii2

Hi Im using REST API in yii 2 \yii\web\UploadedFile::getInstance is not getting file in my function.for debugging purpose I tried with $_FILES['asset'] its printing with values.but not getting file instance using…
Jackhad
  • 411
  • 3
  • 8
  • 19
0
votes
2 answers

Error: API call in postman

I'm getting following error during api call in postman. This happens only first time during api call afterwards it work successfully. { "name": "PHP Core Warning", "message": "Module 'OAuth' already loaded", "code": 32, "type":…
0
votes
3 answers

Yii2 rest api update throws object conversion error

I am working with Yii2 REST api and using Authorisation : Bearer for authentication. I have a model Event and only 2 actions Create and Update but my Updateaction is not working fine and throws Object Class conversion error. I am using following…
Mike Ross
  • 2,942
  • 5
  • 49
  • 101
-1
votes
1 answer

Yii2 rest api not found

In advanced-app i create new module api (just copy backend). And fix route in OpenServer: Set RestApi Settings like this: https://www.yiiframework.com/doc/guide/2.0/en/rest-quick-start But for url http://api/users I get 404 How fix it? Git link:…
triest23
  • 1
  • 4
1
2