Comments (7)
What's your db.json?
from json-server.
{
"posts": [
{ "id": "1", "title": "a title" },
{ "id": "2", "title": "another title" }
],
"comments": [
{ "id": "1", "text": "a comment about post 1", "postId": "1" },
{ "id": "2", "text": "another comment about post 1", "postId": "1" }
],
"profile": {
"name": "typicode"
}
}
from json-server.
I understand the confusion, there's no view
field in each post.
from json-server.
so how can i fix this ?
from json-server.
I've updated the README. Use the new db.json.
from json-server.
thank you
from json-server.
You're welcome
from json-server.
Related Issues (20)
- q is not work HOT 2
- how to post and delete in thunderclient of vscode HOT 1
- In version v1, you broke the middleware function, right? HOT 1
- per_page (paginate) It works fine only on the first page HOT 6
- File db.json not found HOT 3
- SyntaxError : Unexpected token '?' on Ubuntu 22.04 HOT 1
- Descending sort is not working HOT 1
- logger disabled by default in v1+; add option to enable logger? HOT 1
- Descending order not working HOT 3
- Again "json-server module not found" HOT 16
- ζ₯ιitem['id'] = randomId();TypeError: Cannot create property 'id' on string 'a' HOT 1
- Pagination is not working as expected HOT 2
- Any way to filter data based on whether a field's value is in specified array? HOT 1
- How can I configure CORS. I see that @tinyhttp/cors is a dependency of JSON-Server HOT 7
- How do I encrypt json-server HTTP requests? HOT 1
- problem in pagination HOT 1
- Why doesn't the "name_like" parameter work in the latest version of the JSON server? HOT 1
- error/bug in the json server showing INT value as a STRING HOT 2
- Running "json-server --watch ./data/db.json --port 8000 --routes ./data/routes.json" results in the error "Unknown option '--routes'" HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-server.