Questions tagged [jsonplaceholder]

39 questions
1
vote
1 answer

Can't get the specific user information to be displayed on the page in Angular

I have come across the problem, namely I cannot get the program to display the info of the specific user when clicking on it. The best I could manage is the displaying of every user together. Can you help me with this problem? Here is the…
Nicik
  • 60
  • 6
1
vote
1 answer

post detail doesn't show by click in react hooks

when I click on each post item the details doesn't show on the browser(post.js component for showing detail of each post item). only thing that shows on the browser is white page! . these are my components: thank you for your help. this is my App.js…
1
vote
3 answers

String manipulation JavaScript - replace placeholders

I have a long string, which I have to manipulate in a specific way. The string can include other substrings which causes problems with my code. For that reason, before doing anything to the string, I replace all the substrings (anything introduced…
1
vote
2 answers

Not able to perform PUT request in my react js application

I'm working on the CRUD operations that are to be performed in an application using JSON placeholder API. I want to update the data of the API using the PUT request and display it back on my front end. I'm actually fetching the data from the users…
1
vote
4 answers

Using fetched API to create multiple elements

JS newbie here! I'm trying to make a todo list with fake ToDos from jsonplaceholder using Fetch. I' want to fetch five different ToDos and place them into different list items in my list. but somehow, only one of the five ToDos shows up. HTML:
1
vote
1 answer

Handle Related Records with JSONPlaceholder and MVC 5

I'm trying to display a paged table of "Albums" data in an MVC 5 application, with the data values coming from different records using the JSONPlaceholder REST API: https://jsonplaceholder.typicode.com/ Users: (10 records) { "id": 1, "name":…
IrishChieftain
  • 15,108
  • 7
  • 50
  • 91
1
vote
1 answer

Sending a post request to jsonplaceholder fails in React Redux

I made a simple React Redux application that fetches a list of posts from jsonplaceholder and within it is a form that allows users to send a POST request. When I send a post request according to Redux DevTools extension it is added successfully…
Mir Stephen
  • 1,758
  • 4
  • 23
  • 54
1
vote
1 answer

API data not being copied and stored into the state in react, how would I do this?

So I'm new to react and I have this predicament. I'm firstly using axios to get a "database" from JSONPlaceholder which I can then store in the state and then I want to call an API to fill in missing data that was not in the database. Just a quick…
1
vote
0 answers

Delete data from API(jsonplaceholder) on ReactNative

I’m trying to delete user from jsonplaceholder, because I want to delete item with helping click> /This is official docs/ Delete a resource fetch('https://jsonplaceholder.typicode.com/posts/1', { method: 'DELETE' }) Important: the resource will…
Ostap
  • 75
  • 8
1
vote
2 answers

Why can't I "PUT" data on JSONPlaceholder through Postman?

I am trying to put data on JSONPlaceholder through Postman, as seen in the screenshot: But I could not find that data on JSONPlaceholder.. Did I do anything wrong or did the website just ignored my PUT request silently?
leo
  • 357
  • 2
  • 15
0
votes
0 answers

How can i edit the state of a post in the client?

I am creating a front end app with NextJS 13 and fetching data from JSON placeholder. As the API docs say, data does not persists on the server. My issue is that i am "creating" a new post which is being faked by the api so i cannot update it with a…
tukitooo1998
  • 337
  • 10
0
votes
0 answers

using data placeholders in Social Bu

I'm using Social Bu to monitoring my Social Media Accounts And I want to setting automation recipe That send slack immediately If there's any facebook post via social bu. So I set http request (POST) to my slack channel. I wrote a code like below to…
Jenny
  • 49
  • 7
0
votes
0 answers

A public reactive MockAPI like jsonplaceholder.typicode to return Flux

Is there a Mock public Api website that returns a reactive response. Like a Stream of Items instead of a List of items. like we have jsonplaceholder.typicode.com which is non reactive version
0
votes
1 answer