OpenLiberty / guide-mongodb-intro

A guide on how to persist data in your microservices to MongoDB, a document-oriented NoSQL database.
https://openliberty.io/guides/mongodb-intro.html
Other
3 stars 4 forks source link

Content/ID review feedback #55

Closed Charlotte-Holt closed 3 years ago

Charlotte-Holt commented 3 years ago

Global changes

What you’ll learn

Additional Prerequisites

Try what you'll build

The TWYB section is nested under "Setting up MongoDB" because it is a pre-requisite to have the mongoDB running first in order to run the TWYB section. Should TWYB and "Setting up MongoDB" both be nested under "Getting started" or leave as is?

Setting up MongoDB

Configuring the server

The createDB() method returns an instance of MongoDatabase. This method injects the MongoClient in its parameters and passes the database name into the MongoClient.getDatabase() method to get a MongoDatabase instance. The close() method is a cleanup function for the MongoClient that closes the connection to the MongoDB instance." - In this paragraph, only hotspot "createDB()", "MongoClient.getDatabase()", and "close()". Then, add a sentence or two to each paragraph that explains  why these points that we're highlighting are important.

Performing CRUD operations

Go to the http://localhost:9080/openapi/ui/ URL to see the OpenAPI UI that provides API documentation and a client to test the API endpoints you'll create."

Implementing Create operation

Implementing Read operation

Implementing Update operation

Implementing Delete operation

Running the application

The application guide-mongodb-intro updated in 1.023 seconds.

Testing the application

Running the tests

Tearing down the environment

Nice work! Where to next?

meswan commented 3 years ago

@Charlotte-Holt , for section Implementing Create operation, you mentioned not to monospace "create". Should that apply to then entire guide and also for "update", "delete" and "read"?

Charlotte-Holt commented 3 years ago

@meswan Yes, that's right