Create a REST API for Blog App with Oracle Autonomous Database's REST Data Services


## Background

Around one month ago, REST Services get available for Oracle Autonomous Databases (ATP/ADW), that means you can develop and deploy REST Services for your Autonomous Database with native Oracle REST Data Services (ORDS) support. 

We already know that Oracle Autonomous Database is super easy to use, you just need to click several buttons and you will get a fully-featured, robust and performant database for your business.

Is it still the same for the ORDS in ADB? Let's build a typical blog application (REST APIs) to check it out.

## Get ready to start (Environment preparation)

### Create an ATP Instance

As I mentioned above, it's super easy, just several clicks and minutes. You will get an ATP Instance and ready to go. Don't forget that if your business increases very fast, you can scale up the OCPU and storage at any time without downtime. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/0f25c9e9-a4fb-5701-de43-ba43e54399c7.png)

Now we get an ATP Instance.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/08f7eb10-5592-fce1-a160-b2d39ecafa79.png)

### Create application schema and enable REST Services

On the ATP instance web console, click the DB Connection button and download the credentials(Wallet) file. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/4d2df2f8-d67c-0b24-1377-76b26d00a889.png)

After download the wallet file, create a new connection with the default user(admin) in SQL Developer

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/4751c8ac-8bf8-9c2b-c3d0-5a36633c6d9f.png)

In the worksheet, create a database user and grant necessary privileges. This user(schema) will be used for our blog application.

```sql

-- Create DB user
CREATE USER ORDSBLOG IDENTIFIED BY <PASSWORD>;

-- Grant privileges
GRANT CREATE SESSION TO ORDSBLOG;
GRANT DWROLE TO ORDSBLOG;
GRANT UNLIMITED TABLESPACE TO ORDSBLOG;
```

After the user is created, create a new connection for this user in SQL Developer. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/3c044882-93bf-1e8c-b480-e063465aa51d.png)

After you connect to the new connection, right-click on the connection name and click the "Enable REST Services..." to enable REST service for this schema. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/c33f8f4a-1d34-73fc-db7d-56ad0ea91cfa.png)

Select the checkbox "Enable schema". 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/c7423e8f-4eaf-fb05-8c2a-15cda2e41a6f.png)

Click Next and Finish to make it done. 

In the worksheet of the DB user connection we just created, execute the following SQL commands to create two tables, they will be used for the blog application.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/be798fe4-420c-27e2-bd20-42615a61e5ba.png)

```
-- Create tables 
CREATE TABLE USERS (
    ID      NUMBER GENERATED ALWAYS AS IDENTITY,
    NAME    VARCHAR2(200)  NOT NULL,
    CONSTRAINT USER_ID_PK PRIMARY KEY (ID)
);

CREATE TABLE BLOGS (
    ID          NUMBER GENERATED ALWAYS AS IDENTITY,
    AUTHOR_ID   NUMBER  NOT NULL CONSTRAINT USER_ID_FK
                REFERENCES USERS(ID),
    TITLE       VARCHAR2(200),
    CONTENT     VARCHAR2(32767),
    CONSTRAINT BLOG_ID_PK PRIMARY KEY (ID)
);

```
Until now, we have completed all the preparation work. Next, we will start to build REST API for some specific resources(tables).

## The easiest way to start using ORDS in ADB (not recommended)

We can just enable REST Service on a table, then you will get REST APIs for this table. But I highly recommend you to use the "REST Data Services" to create Modules/Templates/Handlers to get better fine graded control of the REST Services. We will talk more about how to use the "REST Data Services" later. Here let's have a quick look of the table content through REST API.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/1519d348-ef72-a236-19b7-7f3d669a5c20.png)

For simplicity, we don't require authorization here. Un-select the "Authorization required" checkbox. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/12191f77-6af2-7402-8a22-3d275f71f7dd.png)

Review what we are going to create and click Finish.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/7e0b2929-9b1d-d88c-ca91-692367fba5f3.png)

Now, the REST API for the table users is ready to use. But what URI endpoint we should use to access the API? We could get this information from the Service Console of the ATP Instance we just created. 

Visit the OCI we console and go the page of your ATP Instance, click Service Console 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/73e9dbd5-b921-b766-dca2-87f490210cf2.png)

then click Developer and right click the SQL Developer Web tile and copy the link of it. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/9f0e4c83-e6c8-ec38-3e40-d2b4eab6939d.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/66d93219-b438-53af-d167-fba0630cc9db.png)

We should get a link as below. Replace the `admin/_sdw/?nav=worksheet` part with the schema name you created and the table name you just enabled REST service on.

Old: `https://<DB_NAME>.adb.<REGION>.oraclecloudapps.com/ords/admin/_sdw/?nav=worksheet`
New: `https://<DB_NAME>.adb.<REGION>.oraclecloudapps.com/ords/ordsblog/users/`

Since we did not enable authorization check when we enable the REST service, we should be able to access the new link (REST API endpoint) and get a JSON format response directly, as shown in below screenshot.

We use the convenient tool [postman](https://www.getpostman.com/downloads/) to test our REST APIs here. You could also use CURL or any other tools to do so.

No record in the table users, so items is `[]`. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/2541017d-0681-2186-7ac5-b9370c0fb6d8.png)

We could even click the `describedby` link to check the metadata of the table users.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/9f470131-e97b-b098-775f-4ca89a7ac570.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/65f1e361-ed0f-ea18-2543-a78d243b187b.png)

As you can see, as long as we have an ADB Instance, we just need to enable REST service, then we can have REST API access to our tables. So easy, isn't it? 

## A better way to use ORDS in ADB (fine graded control)

The way introduced above is easy and simple, but we lose control of access to our resources. To have a fine graded control to your resources(tables), I suggest using the "Modules" and "Services" under REST Data Services which is listed in the connection navigator bar. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/1d8c5ec1-60ad-1744-7cfd-6108c4bdb342.png)

Before we move forward, let's disable the REST service we just enabled on the table users. No one wants their data to get exposed without control.

Un-check the "Enable object" checkbox would be fine. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/e23cb582-7294-679b-f514-9ef070f1ef36.png)

Once the REST service of the table users is disabled, we would get "404 Not Found" error when we access the same link. That's what we expected. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/5f2b940f-0163-b7b5-66ae-4743aaf04503.png)

### First module/template/handler to retrieve the users

Right click the Modules under REST Data Services and click New Module to create a new module. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/cbbff977-9652-f26a-140e-cc5b0c3d59bd.png)

Input the Module Name and URI Prefix, select the checkbox "Publish – Make this RESTful Service available for use". That's what we want.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/04c9b940-0d21-82a0-743d-cd8c527eec7e.png)

Click Next and specify a template. We are going to use this URI to provide the registration function of new user. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/7d20cb6c-220e-0e18-97a6-0b844cfc0d7d.png)

Review the summary and click Finish. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/fdd91955-fad2-17d9-8f3c-e850cf4f2fb1.png)

Now, we should see a Module called users and a template called new is created. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/51db266e-9e7b-245d-a0e1-77e0be54fa15.png)

This means we just created a REST API endpoint as below. 

`https://<DB_NAME>.adb.<REGION>.oraclecloudapps.com/ords/ordsblog/users/new`

If you try to access this link you will still get "404 Not Found" error because we have not added any handler for this endpoint. 

Although we planned to use this endpoint to provide registration function, for test purpose, we add a GET handler for this endpoint for now.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/e1c9d6c8-314e-2611-93bb-58d71d0c5159.png)

Input a simple query "select * from users" to the table users in the handler worksheet and save it. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/f029fc9b-1fa6-97c2-f78f-3b90651a1cc3.png)

Then try to access the endpoint again. 

`https://<DB_NAME>.adb.<REGION>.oraclecloudapps.com/ords/ordsblog/users/new`

Yeah! The API works!

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/7a1a91fd-2c36-4a06-a2c5-1bffdf13aa90.png)

### Register a new user (POST)

Our target is to use this endpoint to register new user, so let's add a POST handler to it. 

Right click the template new and add a new POST handler. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/61c74260-7538-c692-f5c5-327016280908.png)

Just click Apply

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/ea5cafe2-571e-2737-0b9d-087c2faf3e30.png)

To handle the POST request is a little bit complex, we need to take care of the input parameters and the output response contents. We use a procedure to handle the creating of a new user as below. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/325885cb-2554-bdaa-2e2a-a374bd1cc146.png)

```sql
create or replace PROCEDURE ADD_USER (
    P_USER_NAME    IN  USERS.name%TYPE,
    P_OUT_ID      OUT USERS.id%TYPE,
    P_OUT_TOTAL   OUT INTEGER
)
AS
BEGIN
    INSERT INTO USERS (name)
    VALUES (P_USER_NAME)
    RETURN id INTO P_OUT_ID;

    SELECT COUNT(id) INTO P_OUT_TOTAL FROM USERS;

EXCEPTION
    WHEN OTHERS
    THEN HTP.print(SQLERRM);
END;
```

In the POST handler, we call the procedure we just created and pass in the parameters we get from the request. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/c7464ba3-0aae-2bde-3edd-06c652894602.png)

```sql
BEGIN
    ADD_USER(P_USER_NAME   => :USER_NAME,
            P_OUT_ID       => :NEW_USER_ID,
            P_OUT_TOTAL    => :TOTAL);
commit;
END;
```

For the response, we want to return the newly created user id so that the client could decide what is the next move, and we also return the total number of all users. Set the Parameters as shown below. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/d7396a8f-9e1b-11f9-f39f-695a467d60d2.png)

Now, our POST handler is ready to go. We will post an user information in JSON format to create a new user. Please note that the keys in JSON must be the same as the definition in your handler procedure. 

In postman client, select the request method as POST, input the endpoint URI, and input the user info in JSON format in the Body/Raw section. (You can also use an json file and select binary instead of raw)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/38ebd80f-01fb-bf65-5587-770deeb5ba45.png)

```json
{
    "USER_NAME":"user01"
}
```

We also need to set the "Content-Type" as "application/json" in Headers. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/c6c551de-99d3-6a3d-04df-79611af54093.png)

After we click the Send button we will see the response status is 200 OK and the new user id and the total number of users in the response. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/240f8369-5f2e-a9b0-cc26-e9267bc7c518.png)

In SQL Developer we could also verify the newly created user record. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/c4478d78-8dd3-4e1a-8675-d49306d38d03.png)

Do you remember that we have a GET handler to retrieve all users? Let's try with it.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/9c5cd659-7032-ee30-d68e-4a788c60bd86.png)

Cool, we can see the users, although there is only one yet. 

### Check the user profile (GET)

Once the user is registered, it is an obvious thing that we should provide the user info to show the user's profile.
Let's create a show endpoint to do this. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/50e1f5f4-c759-880e-1cb6-6b7561a72ddb.png)

Add a GET handler to provide the user info.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/fb3e2db4-d607-ec78-773d-5fe4b8089e68.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/d82807cc-a149-9e3c-184c-af05c68f3bbc.png)

Query in the handler is quite simple, we just need to provide the user id as a query parameter to complete the query. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/f8bb38bb-695f-c389-e38a-e336564a7a7c.png)

Initiate a query as below, we will get the user info as expected.

`https://<DB_NAME>.adb.<REGION>.oraclecloudapps.com/ords/ordsblog/users/show?id=6`

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/8205ce51-1271-2a3e-e67f-0ebfc1cd6aa0.png)

## Handle the blogs

You already see how easy it is to enable the REST Data Services for the users table. Let’s move forward to enable all the CRUD behaviors through REST API to the table blogs.

### Post the first blog (POST)

I believe you already get familiar with this, similar to the new user handler. Create a procedure to handle the data insert and call the procedure in the POST handler. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/20b50e73-59e4-5387-ec7f-d3a877db328d.png)

You should not encounter any problem to see expected response. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/0117b3f8-d1dc-ee36-11b9-4fc30e80d9b6.png)

### List all my own blogs (GET)

It's still a GET request, the only difference is that pass in the user id so that the SQL query can retrieve the blogs belong to this guy. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/4936a52b-a311-7281-7c8a-b0d0bc02fc7d.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/a4ef46b6-64a3-3ee1-c154-d63d9ee881cb.png)

### Update my blog (PUT)

What if we want to update a blog we posted previously? Use the PUT method to do so.

Create a update template 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/073392ba-ffbd-47cf-322e-31380e9322aa.png)

Add a PUT handler to do the update work, although POST also works, but according to the REST API best practices, we should use PUT to indicate our intention, that's update here. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/c3b3b6a4-0824-9e34-00b0-ed56c35eec94.png)

Procedure to handle the update of a blog is similar to the creating.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/ffc7eb08-5144-fc8c-1e5c-98928f46c897.png)

Call the update blog procedure in PUT handler. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/46456772-430f-be56-a32f-2c18b97895dc.png)

In postman client, set the request method as PUT, input the new blog info in the Body section. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/10b70a96-4296-aa0d-1051-3e0229dcbb48.png)

Verify the updated blog. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/1d747960-8a32-8252-adc2-48496ef148b5.png)

What? You don't have the show blog endpoint? Implement of such a GET handler is quite easy for you now I believe. 

### Remove a blog (DELETE)

If something in your blog is out of date and you don't want to remain it anymore, you can implement a DELETE handler to remove the blog any time. 

Add a delete template 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/3cbcc915-d365-3b9b-22a0-854ff65f78b2.png)

Create DELETE handler

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/cc98a181-02ec-e175-7058-b3e41c8e3b33.png)

Don't forget to pass in the blog id you want to remove.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/cb5dbdb6-f0f9-a6ab-75dc-9b5b8cfe909a.png)

In postman client, select request method as DELETE and send request the endpoint you just implemented. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/51f96f02-f06f-0cb4-6684-e93d3a2cdb93.png)

You can only see the #2 blog now.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/a3f90623-174c-6228-c640-60a8475c192a.png)

## Secure the resources 

### Basic Auth

Until now, anyone can do anything to our resources (users, blogs). Obviously, we got to protect the resources and we can do so by leveraging the privileges in ORDS. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/5d0ec208-07e3-fafa-e61b-21088c97515e.png)

right click the Privileges under REST Data Services and create a new privilege. Input the Name, Title and Description. For simplicity, we protect all the modules by one privilege. Add all the modules(users, blogs) to the Protected Modules section. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/33a7f14b-aa68-5a0d-257d-f131bbe58810.png)

We can see the newly created privilege Demo.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/d1b4803f-555d-6963-1c77-574b0d46bd96.png)

If we try to request for a user's info again, we would get 401 Unauthorized error as below.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/af360ff0-521c-bc4f-3e22-16640558c228.png)

If you are using a web browser to test the API, you could click the sign in and get pass by inputting the DB user credential. 

In postman client, under Authorization tab, select TYPE as Basic Auth and input the DB user credential. Send the request you will get the user info. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/287ba517-729e-1fb5-f749-a694c205a4e5.png)

### Register an OAuth Client Application

Our target of building this REST API is to provide data access capability to the frontend or any other authorized third-party applications, Basic Auth is not the proper way to do so obviously.

OAuth 2.0 is a standard Internet protocol that provides a means for HTTP servers providing REST APIs to give limited access to third party applications on behalf of an end user. 

- The author of the third-party application must register the application to gain client credentials.
- Using the client credentials the third party application starts a web flow that prompts the end-user to approve access.

As mentioned above, by using OAuth the client application can get access to the REST API by registering and getting approval. And the lucky thing is that this flow is embedded in ORDS by default. 

To register a client application, we need to access the following URL:

`https://<DB_NAME>.adb.<REGION>.oraclecloudapps.com/ords/ordsblog/oauth/clients/`

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/d3dc4511-7d0e-1779-2ad0-db350959101d.png)

Sign in with the DB user credential and we can see that there is no client registered yet.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/891361d2-20ab-a4c5-b363-90947435d030.png)

Click the New Client, input the necessary information and click the Create New Client. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/66ace32f-1fe8-916f-6ab9-06981596a31e.png)

The client is registered but not approved yet. Click the Edit icon to show the details of this registered client. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/e3cd62cd-0cd5-72b7-58e1-4842d74016d2.png)

We can see the generated Client identifier, Unique Value, and Authorization URI. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/931868dc-cbbd-6949-2227-066a9d5bb613.png)

Click the Authorization URI and sign in with the DB user credential. You will see the client approval page. Click the Approve button to approve this request. Deny is also available for you. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/503b44c2-3bcb-ea8f-cb5c-5dfbf8ebdc04.png)

Once you approved the request, the web page will be redirected to the URL you specified when you register the client. The key points are the following items in the redirected URL.

`http://example.org/redirect#token_type=bearer&access_token=XErqh-jlHNSoXGe9JX5m7Q&expires_in=3600&state=f084f3c8-d567-e1c8-fb83-81aabacc9b54`

- Token_type: bearer
- Access_token: XErqh-jlHNSoXGe9JX5m7Q
- Expires_in: 3600
- State:f084f3c8-d567-e1c8-fb83-81aabacc9b54

Token_type and access_token is the key information when your client application tries to access the REST API. You need to include them in every request to the REST API.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/0e45d40c-fe40-f897-a947-9b32326587e4.png)

Now we have everything we need to access a protected REST API, let's try to get a user's profile with the access token. 

In postman client, select Authorization Type as Bearer Token and input the access token. Then send your request, you should not see the 401 Unauthorized error anymore. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/8fbedf45-dfaa-fc3d-cc77-74923bf0ad54.png)

Not only the GET handler, as long as you provide the correct access token, you can access all the handlers, such as update blog. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/6ed26049-f61f-bf75-472a-51ddeff6651d.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/b8329e4c-359f-239e-7a37-acc1afa3d63a.png)

In contrast, if the client application cannot provide the correct access token, it will be blocked out of our resources. 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/100411/85a730cc-248e-b77c-a351-e679d665ca0b.png)

Now we have a secured and fully featured (sample) REST API for our blog application. And I believe you already get familiar with the basic usage of ORDS in Autonomous Database. If you want to know more about ORDS and Oracle Autonomous Database, please refer to the references below. 

## References

- [Developing RESTful Services in Autonomous Database](https://docs.oracle.com/en/cloud/paas/autonomous-data-warehouse-cloud/user/ords-autonomous-database.html#GUID-E2E921FF-2D80-4E32-9660-28506D10BADB)
- [Oracle REST Data Services](https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/19.1/index.html)
- [Getting Started with Oracle REST Data Services](https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/19.1/qsord/get-started-with-oracle-rest-data-services.html#GUID-14BE2F08-842E-4D2F-86B9-EA245B8487F9)

## Other language versions

- [English]()
- [Chinese](https://qiita.com/teiketu/items/6e145d025f501a558efe)
- [Japanese](https://qiita.com/tnagakub/items/36d4b04f2161cf1085e0)