Skip to content

Commit

Permalink
Add more resources
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Dec 19, 2023
1 parent 14a63b0 commit a3f0cef
Show file tree
Hide file tree
Showing 2 changed files with 320 additions and 20 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ Mockoon's playground is a ready-to-use mock API for all your prototyping needs:

The playground offers the following resources, populated with fake data (generated using [Faker.js](https://fakerjs.dev/)):

- `/photos`: a CRUD endpoint with fake photos.
- `/posts`: a CRUD endpoint with fake posts.
- `/todos`: a CRUD endpoint with fake todos.
- `/users`: a CRUD endpoint with fake users.
- [`/contacts`](https://playground.mockoon.com/contacts): a CRUD endpoint with fake contacts.
- [`/movies`](https://playground.mockoon.com/movies): a CRUD endpoint with fake movies.
- [`/photos`](https://playground.mockoon.com/photos): a CRUD endpoint with fake photos.
- [`/posts`](https://playground.mockoon.com/posts): a CRUD endpoint with fake posts.
- [`/todos`](https://playground.mockoon.com/todos): a CRUD endpoint with fake todos.
- [`/users`](https://playground.mockoon.com/users): a CRUD endpoint with fake users.

The following routes are available for each resource:

- `GET /resources`: Returns the entire array
- `GET /resources/:id`: Returns an object by its id property
- `POST /resources`: Inserts a new object in the array (autogenerate the id (UUID) if not provided)
- `PUT /resources/:id`: Performs a full object update by its id (replace)
- `PATCH /resources/:id`: Performs a partial object update by its id (merge)
- `DELETE /resources/:id`: Deletes an object by its id
- `GET /resources`: Returns the entire array.
- `GET /resources/:id`: Returns an object by its id property.
- `POST /resources`: Inserts a new object in the array (autogenerate the id (UUID) if not provided).
- `PUT /resources/:id`: Performs a full object update by its id (replace).
- `PATCH /resources/:id`: Performs a partial object update by its id (merge).
- `DELETE /resources/:id`: Deletes an object by its id.

You can also use the `sort`, `order`, `limit` and `page` query parameters. You will find more information about the CRUD routes behavior in our [documentation](https://mockoon.com/docs/latest/api-endpoints/crud-routes/).

Expand Down
318 changes: 308 additions & 10 deletions dist/playground-mock.json

Large diffs are not rendered by default.

0 comments on commit a3f0cef

Please sign in to comment.