diff --git a/src/components/api-guide/ApiGuide/ApiGuide.jsx b/src/components/api-guide/ApiGuide/ApiGuide.jsx index 79c29adf..87082b1c 100644 --- a/src/components/api-guide/ApiGuide/ApiGuide.jsx +++ b/src/components/api-guide/ApiGuide/ApiGuide.jsx @@ -18,7 +18,7 @@ export default function ApiGuide() {

API guide

{isMobile && }
-

What is API?

+

What is an API?

API stands for Application Programming Interface - a software that allows 2 or more computer programs to communicate with each other. These 2 programs are usually referred to as server and @@ -70,7 +70,7 @@ export default function ApiGuide() {

How API works
-

Client libraries

+

Client libraries

{' '} Client libraries are pre-written pieces of code that can be used to send API calls instead of diff --git a/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss b/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss index 674ed99f..bb54b077 100644 --- a/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss +++ b/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss @@ -10,7 +10,7 @@ } td { padding: 2.4rem 3.2rem; - box-shadow: inset 0 -1px 0 var(--gray-15); + box-shadow: inset 0 -0.1rem 0 var(--gray-15); } } diff --git a/src/components/api-guide/ApiGuide/DerivGuideContent/DerivGuideContent.tsx b/src/components/api-guide/ApiGuide/DerivGuideContent/DerivGuideContent.tsx index 4f624a5f..d399d6a7 100644 --- a/src/components/api-guide/ApiGuide/DerivGuideContent/DerivGuideContent.tsx +++ b/src/components/api-guide/ApiGuide/DerivGuideContent/DerivGuideContent.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Link } from 'react-router-dom'; +import { InlineCode } from '../../../global/InlineCode/InlineCode'; import ApiGuideTable from '../ApiGuideTable/ApiGuideTable'; import CodeBlockSingleLanguage from '../../../global/CodeBlock/CodeBlockSingleLanguage'; import styles from '../ApiGuide.module.scss'; @@ -79,7 +80,7 @@ export const DerivGuideContent = () => { Client's stake with the markup = 1.07 USD + (2 USD x 2%) = 1.11 USD -

Conditions of using the Deriv API

+

Conditions of using the Deriv API

The Deriv API is free of charge and is subject to our{' '} terms and conditions and{' '} @@ -120,7 +121,7 @@ export const DerivGuideContent = () => { For more information on how to write a client using WebSockets, visit this{' '} guide.

-

JSON

+

JSON

JavaScript Object Notation (JSON) is a data format based on JavaScript. However, it is completely language-independent, and can be used by any modern programming language. JSON has a good balance @@ -156,7 +157,7 @@ export const DerivGuideContent = () => {

-

JSON Schemas

+

JSON Schemas

JSON Schema is a defined format for the JSON messages used to describe their structure to Deriv API users. In a nutshell, it’s a standardised way of explaining what a JSON request should look like using @@ -186,12 +187,12 @@ export const DerivGuideContent = () => { API Guide

The JSON Schema also forms the documentation for the API Explorer.

-

Authorisation

+

Authorisation

Third-party developers can authorise calls to the API in two different ways: via API token or via OAuth2.

-

API token

+

API token

An API token is a unique identifier of a client that requests access from a server. It's the simplest way of authorisation. @@ -223,7 +224,7 @@ export const DerivGuideContent = () => { Please bear in mind that the API token can be used with any app, so both your app and your clients need to keep it secure.

-

OAuth2

+

OAuth2

OAuth stands for Open Authorisation - a protocol that allows a client access resources hosted on a server on behalf of the user without revealing the credentials. @@ -245,7 +246,7 @@ export const DerivGuideContent = () => {

API Guide
-

What do you need to do to use OAuth authorisation for Deriv API?

+

What do you need to do to use OAuth authorisation for Deriv API?