Skip to content
Advertisement

Tag: rest

Yii2: Rest POST Request Parameters not arriving

Good morning, I dont get any further in this Topic so i am writing a Question here. First of all i created a DB Table with Data from the Tutorial: https://www.yiiframework.com/doc/guide/2.0/en/start-databases Then i created a Rest Controller from that Tutorial with the Data above: https://www.yiiframework.com/doc/guide/2.0/en/rest-quick-start The first example GET Request from the Tutorial works fine and gives me all of

How to call a PHP cURL function in a WordPress website

I have a need to call the REST API with GET request in my wordpress website. The requirement is whenever we search any product from the search form, the PHP curl function should give the response. The PHP function I have already implemented as below: I’m new to PHP and all this web development. I’m doing this stuff because I

Docusign error: “unable to get local issuer certificate”

We’re using the Docusign RestAPI (PHP SDK) from our app and it works great. Authentication mode is JWT. I want to use all the code I’ve written on a different subdomain, but I get this error: API call to https://account.docusign.com/oauth/token failed: SSL certificate problem: unable to get local issuer certificate Both domains, my-domain.com and new.my-domain.com have SSL certs installed. What

REST Server-Client Communication

I’m developing an Android app in Java and I need to add a REST Server-Client Communication feature to it. I assume that the following code should post data to a .php file and will be thankful if someone explains to me what does it do and how to use it properly: Answer My answer is in as comments in your

REST convention when transforming data

I use Laravel as a REST API service for uploading and storing books. The book service follows the standard REST convention: GET: /api/books and /api/books/<book_id> for retrieving book(s) PUT: /api/books/<book_id> for updating a book POST: /api/books for adding a new book DELETE: /api/books/<book_id> for deleting a book So far so good. Now I need another endpoint which should be used

Perfexcrm api return 419 status code, how solve it?

I use perfexcrm api in my web application. As its document I pass the URL in postman and also pass authentication token in headers of postman and company name in params in postman. I try to fetch all customers so I use api/customers as a URL and as a method I use POST for this. But as a output postman

Laravel PUT relationship

Fiddling with Laravel and coming from Symfony, I’m trying to replicate some code. I’m trying to PUT a Suggestion model (overwritting anything, even relationships) and wanted to know the proper way to overwrite the model. Since tags attribute in fillable doesn’t exist, I certainly get an error (Undefined column: 7 ERROR: column “tags” of relation “suggestions” does not exist). Suggestions

Custom Endpoint API based on attribute gutenberg block

Viewed 4 times 0 I need to return all posts that have the value of a specific attribute that is saved in the custom block attributes gutenberg. This value in the query will be according to the endpoint below. http://idinheiro.local/wp-json/idinheiro/v1/blocks-posts/id-here-attribute-gutenberg-block below my callback function. In short, how do I look for this attribute and put it there in get_posts? Register

Advertisement