I am making this website project where people can leave comments and the webpage will dynamically display the comments without reloading the page. My comments are stored in an array in my server in the format Allcomments=[ { username: ‘username’, info: ‘title’, commentinfo: ‘commentinfo ‘ }]. I am currently receiving this error when I try and run my code Uncaught
Tag: rest
Im getting an error in my react and rest api app where one of my variables is coming back undefined
thank you for your time if youre reading this, im making a full stack app with react and rest api and im encountering an error as such: the part where this error is throwing is right here: heres my createUser function code: heres the code handiling post / users Im really not sure whats going on with my errors variable
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
The post request works in Postman and in cURL but not in Angular
I have a remote server and a local client which sends a simple post request with one header Content-Type: application/json and with the body ‘{“text”: “hello”}’. The server code is here. It prints the request body and the header. The post request works fine from Postman and from curl. For both requests the server prints the following body and content-type
API called twice while useEffect triggered once. ReactJS/Javascript
i am building a project, in which when user click the buyNow button in Basket (child 2) it will pass the props back to parent where it further pass it to another child in Signin(child 3) where we call an API call(inside useEffect) to update the mysql database but it seems that the API call is called twice as in
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