add basic mock server for api testing
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"$schema": [
|
||||
"./node_modules/json-server/schema.json"
|
||||
],
|
||||
"posts": [
|
||||
{
|
||||
"id": "1",
|
||||
"title": "a title",
|
||||
"views": 100
|
||||
},
|
||||
{
|
||||
"id": "2",
|
||||
"title": "another title",
|
||||
"views": 200
|
||||
}
|
||||
],
|
||||
"comments": [
|
||||
{
|
||||
"id": "1",
|
||||
"text": "a comment about post 1",
|
||||
"postId": "1"
|
||||
},
|
||||
{
|
||||
"id": "2",
|
||||
"text": "another comment about post 1",
|
||||
"postId": "1"
|
||||
}
|
||||
],
|
||||
"contratti": [
|
||||
{
|
||||
"idContratto": "ID_CONTRATTO_1",
|
||||
"idDomanda": "12345",
|
||||
"idRicevuta": "ABCDE"
|
||||
},
|
||||
{
|
||||
"idContratto": "ID_CONTRATTO_2",
|
||||
"idDomanda": "67890",
|
||||
"idRicevuta": "FGHIJ"
|
||||
},
|
||||
{
|
||||
"idContratto": "ID_CONTRATTO_3",
|
||||
"idDomanda": "13579",
|
||||
"idRicevuta": "KLMNO"
|
||||
}
|
||||
],
|
||||
"profile": {
|
||||
"name": "typicode"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user