Wiki articles tagged with "REST"

Showing 1-3 of 3 items.

UUID instead of an auto-increment integer for ID with Active Record

Created 4 years ago by grigori, updated 4 years ago by samdark.

I have an API. It's built with a RESTful extension over Active Record, and some endpoints provide PUT methods to upload files. By a REST design we create an entity with POST /video first, and then upload a video file with PUT /video/{id}/data.

5 0
4 followers
Viewed: 60 763 times
Version: 2.0
Category: How-tos

Yii2 RESTful API with OAuth 2.0

Created 7 years ago by sirin k, updated 6 years ago by sirin k.

https://cdn.pbrd.co/images/GMN5ROs.jpg

3 0
3 followers
Viewed: 69 727 times
Version: 2.0
Category: Tutorials

REST API and null values in XML

Created 8 years ago by marko60, updated 8 years ago by marko60.

I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...

0 0
0 follower
Viewed: 20 328 times
Version: 2.0
Category: Tips
Tags: null, REST, XML