Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use markdown links format #2552

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ test('I can create a movie', async function(assert) {
});
```

You can view the rest of the Database APIs in the <a href="https://miragejs.com/api/classes/db/">Db</a> and <a href="https://miragejs.com/api/classes/db-collection/">DbCollection</a> API reference.
You can view the rest of the Database APIs in the [Db](https://miragejs.com/api/classes/db/) and [DbCollection](https://miragejs.com/api/classes/db-collection/) API reference.

Next, we'll learn about Mirage's ORM.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ schema.blogPosts.where({ isPublished: true });
schema.blogPosts.findBy({ title: 'Introduction' });
```

Check out the <a href="https://miragejs.com/api/classes/schema/">Schema API docs</a> to see all available query methods.
Check out the [Schema API docs](https://miragejs.com/api/classes/schema/) to see all available query methods.


## Updating and deleting models
Expand All @@ -102,7 +102,7 @@ let post = schema.blogPosts.find(2);
post.destroy();
```

View the <a href="https://miragejs.com/api/classes/model/">Model API docs</a> to see all the available fields and methods for model instances.
View the [Model API docs](https://miragejs.com/api/classes/model/) to see all the available fields and methods for model instances.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ user.thingIds = [ { id: 2, type: 'watch' }, ... ];

---

Be sure to check out the <a href="https://miragejs.com/api/classes/schema/">Schema</a>, <a href="https://miragejs.com/api/classes/model/">Model</a> and <a href="https://miragejs.com/api/classes/collection/">Collection</a> API docs to learn about all the available ORM methods.
Be sure to check out the [Schema](https://miragejs.com/api/classes/schema/), [Model](https://miragejs.com/api/classes/model/) and [Collection](https://miragejs.com/api/classes/collection/) API docs to learn about all the available ORM methods.

We'll also cover Serializers in these guides, where you'll learn how to customize the serialized forms of your models and collections to match your production API.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,6 @@ In general, you should not need to write much code dealing with Mirage serialize

The more conventional your backend API is, the less code you'll need to write – not only in Mirage, but also in other parts of your Ember application!

Be sure to check out the <a href="https://miragejs.com/api/classes/serializer/#key-for-attribute">Serializer</a> and <a href="https://miragejs.com/api/classes/jsonapi-serializer/">JSONAPISerializer</a> docs to learn about all the hooks available to customize your serializer layer.
Be sure to check out the [Serializer](https://miragejs.com/api/classes/serializer/#key-for-attribute) and [JSONAPISerializer](https://miragejs.com/api/classes/jsonapi-serializer/) docs to learn about all the hooks available to customize your serializer layer.

Now that we've covered the ins and outs of Mirage's data layer, we're ready to see how we can use Mirage to effectively test our Ember application.