Skip to content
Advertisement

Tag: rest

What is a good way to pass many parameters to controller?

I have an application on Java (Spring framework) and Javascript (AngularJs framework). There are list of objects in the table and two text fields for filtering this objects. Filtering happens on the server side so I pass these values from text fields to @RestController’s method as params and then to the repository method. Client side: Server side: It’s pretty easy

postman: You need to enable JavaScript to run this app

I’ve got a new API from the backend team in a new project, when I call the api it returns “you need to enable java…”, whereas I had used Postman for another project before… is it related to api, server or something else? Answer I spent some times pondering on this trepidation.. and then suddenly i realized what was going

Cypress: Re-use auth token across multiple API tests

I have a Rest API which generates a token. This session token is used across multiple REST API’s as an authorization Bearer token. I used this as reference: https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/logging-in__jwt/cypress/integration/spec.js However, in that example, the function to generate token is embedded in the test. I tried to create a custom command for which should store locally but it is not being

extend existing API with custom endpoints

I’m creating an API for multiple customers. The core endpoints like /users are used by every customer but some endpoints rely on individual customization. So it might be that User A wants a special endpoint /groups and no other customer will have that feature. Just as a sidenote, each customer would also use his own database schema because of those

Returning data from Axios API [duplicate]

This question already has answers here: How do I return the response from an asynchronous call? (41 answers) Closed 3 months ago. I am trying to use a Node.JS application to make and receive API requests. It does a get request to another server using Axios with data it receives from an API call it receives. The second snippet is

VueJS pass all props to child component

I am quite new to VueJS. In react you can easily use rest params for passing props to children. Is there a similar pattern in Vue? Consider this parent component that has a few children components: What I don’t like is that the props are named-spaced with the key config, or any other arbitrary key. The text-input component ( not

Advertisement