From d434f98624f678f21035d43c16500f8c245f76c6 Mon Sep 17 00:00:00 2001 From: Sergey Astapov Date: Wed, 4 Oct 2023 23:45:30 -0400 Subject: [PATCH] Use markdown links format --- .../app/templates/docs/data-layer/database.md | 2 +- .../app/templates/docs/data-layer/models.md | 4 ++-- .../app/templates/docs/data-layer/relationships.md | 2 +- .../app/templates/docs/data-layer/serializers/index.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/database.md b/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/database.md index 6f1078c03..c5ff292aa 100644 --- a/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/database.md +++ b/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/database.md @@ -57,6 +57,6 @@ test('I can create a movie', async function(assert) { }); ``` -You can view the rest of the Database APIs in the Db and DbCollection 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. diff --git a/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/models.md b/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/models.md index 59769bd81..4424eda4f 100644 --- a/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/models.md +++ b/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/models.md @@ -79,7 +79,7 @@ schema.blogPosts.where({ isPublished: true }); schema.blogPosts.findBy({ title: 'Introduction' }); ``` -Check out the Schema API docs 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 @@ -102,7 +102,7 @@ let post = schema.blogPosts.find(2); post.destroy(); ``` -View the Model API docs 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. --- diff --git a/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/relationships.md b/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/relationships.md index a9710542e..75b2ceef0 100644 --- a/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/relationships.md +++ b/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/relationships.md @@ -206,7 +206,7 @@ user.thingIds = [ { id: 2, type: 'watch' }, ... ]; --- -Be sure to check out the Schema, Model and Collection 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. diff --git a/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/serializers/index.md b/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/serializers/index.md index 5c1092241..8c671dc38 100644 --- a/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/serializers/index.md +++ b/packages/ember-cli-mirage-docs/app/templates/docs/data-layer/serializers/index.md @@ -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 Serializer and JSONAPISerializer 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.