typicode / demo Goto Github PK
View Code? Open in Web Editor NEWA demo repository for My JSON Server (Alpha)
Home Page: https://my-json-server.typicode.com/typicode/demo
License: MIT License
A demo repository for My JSON Server (Alpha)
Home Page: https://my-json-server.typicode.com/typicode/demo
License: MIT License
I made a db.json file and put a values there, but when I type the site link with my Github, and clicked db to see the data there and copy the link, it writes "Internal Server Error", and doesn't display my values! Why this is happening?
I created db.json and try to check whether it works but i am getting error as -> "GET https://my-json-server.typicode.com/mallia-pk/alpha/db.json 404"
my db.json file is in: https://github.com/mallia-pk/alpha
Its throwing 404 for me I have created .https://jsonplaceholder.typicode.com/bhoomika27/todoData
Please suggest what to do with this?
share and fork button should change their color when it is hovered
First
you have mentioned like we can post new data how to do it if i try to post new data it is not saving into db
dark background is much better
login error not showing anything help required
Trying to delete an item from my repo : https://my-json-server.typicode.com/yeasin90/my-json-db-server/users/2
Getting 200, but nothing is getting deleted.
for me not working
https://my-json-server.typicode.com/vivek-cd/json-server
I have created my fork and updated my db.json.
but its not reflecting the updated db.json from my forked server
https://github.com/seetpalsingh/json_erver/blob/master/db.json
My delete and put requests are not working but get and post are working fine
This is my Repository: https://github.com/Harshh-singh/Ecommerce-demo/blob/master/db.json
This is the API: https://my-json-server.typicode.com/Harshh-singh/Ecommerce-demo/blob/master/products/
This is my delete request: const res = await axios.delete("https://my-json-server.typicode.com/Harshh-singh/Ecommerce-demo/blob/master/products/5");
This is my get request: const res = await axios.get("https://my-json-server.typicode.com/Harshh-singh/dummy-ecommerce-api/blob/main/products/";
);
found some minor cases. though these issues can be ignored by changing my code but still it'll be great if you look into these. specially 'case 2'
case 1: post request with body {"id":1,"name":"raihan"}
throws below mentioned error! of
course my id shouldn't be 1 but throwing error from server isn't convenient either.
case 2: post request with body {"id":"0","name":"raihan"}
returns id as it is, "0". i think it
should return new random id even if my id is string type.
case 3: post request with body {"id":0,"name":"raihan"}
works fine though
Error: Insert failed, duplicate id
at Function.insert (/app/node_modules/lodash-id/src/index.js:49:18)
at /app/node_modules/lodash/lodash.js:4374:28
at arrayReduce (/app/node_modules/lodash/lodash.js:683:21)
at baseWrapperValue (/app/node_modules/lodash/lodash.js:4373:14)
at LodashWrapper.wrapperValue (/app/node_modules/lodash/lodash.js:9052:14)
at create (/app/node_modules/json-server/lib/server/router/plural.js:235:48)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at next (/app/node_modules/express/lib/router/route.js:137:13)
at next (/app/node_modules/express/lib/router/route.js:131:14)
at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
Hi,
I try deleting my JSON file using Axios delete and it is not working I can post and get but deleting gives me a Hard time any body care to help? here is my post request.
axios.delete(`http://localhost:3000/items/demo/posts`, {
})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.