Questions tagged as 'rest'

0
answers

Hamcrest - Is there any way to ignore fields when we use a file as the basis for response body validation?

Hello, I'm starting in the automation world and I was left with a question, in case I'm validating the POST insertion in a REST API that returns information to me in the response body, but some of these fields in the response body change (ID and...
asked by 08.11.2018 / 01:34
0
answers

Slim Framework and doctrine, problem to generate json

I'm building a API where I register animals and colors and get animals in return, I'm using Doctrine to treat entities and I've created a many-to-many relationship between animals and colors. /** * @Entity @Table(name="Animais")...
asked by 27.11.2018 / 19:17
1
answer

NullPointer when using Cucumber and Rest-Assured

I am performing an API test using Cucumber and Rest-Assured, but in the call I use Rest-Assured a NullPointer is being returned. My Feature: Scenario: Parâmetros não foram informados Given A API de teste When A requisição for realiza...
asked by 22.10.2018 / 05:12
0
answers

Consume WooCommerce REST API with JavaScript

With the WordPress REST API I can simply consume posts or any data available with JavaScript using the Fetch API or something similar (as in the example code). As the WooCommerce REST API has authentication keys, the only way to consume somet...
asked by 17.10.2018 / 03:51
1
answer

Creation structure with transparent Checkout + Pagseguro + Woocommerce [pending]

I created a structure with form taking the woocommerce object to get the data of the cart, I make the sale to the pagseguro through a transparent and accurate checkout now send the return of the transaction to the woocommerce. Would you like to...
asked by 04.10.2018 / 13:47
1
answer

Error: java.lang.NullPointerException: Can not invoke method trim ()

I've tried using Port and the baseUri and does not run the rest, it always fails. Full error:    java.lang.NullPointerException: Can not invoke method trim () on null object at org.codehaus.groovy.runtime.NullObject.invokeMethod (NullObjec...
asked by 29.09.2018 / 20:38
0
answers

Send a file via a REST API to another project

I have spent days doing simple crud on codeigniter using libraries server: link Client: link and the content absorption was satisfactory. But I have a project available in github link (I'm glad if anyone comments on improvements,...
asked by 31.08.2018 / 00:30
0
answers

How to install plone.restapi?

I want to add the plone.restapi plugin to my plone, by downloading plone it simply crashes ... Plone: 5.1.2 plone.restapi: 3.4.1 OS: Ubuntu 18.04     
asked by 24.08.2018 / 17:42
0
answers

RESTful returns undefined in JS Class

I'm making changes to the HTML after taking data from the LastFm API, working with class in JS, making method calls within the class itself, where the date was called before, but this returns undefined: class Tidal{ constructor(ev)...
asked by 26.08.2018 / 14:46
0
answers

Error optJSONArray

I have this error, following an updated tutorial on the net I came across this error, but it was not supposed to be occurring, the error generated is 2 errors :app:compileDebugJavaWithJavac FAILED FAILURE: Build failed with an exception. * W...
asked by 26.08.2018 / 02:51