diff --git a/frontend/proxy.conf.json b/frontend/proxy.conf.json
index 4e6c6e197..9e99f4b27 100644
--- a/frontend/proxy.conf.json
+++ b/frontend/proxy.conf.json
@@ -8,11 +8,11 @@
"secure": false,
"ws": true
},
- "/api": {
+ "/api/": {
"target": "http://localhost:50001/",
"secure": false,
"pathRewrite": {
- "^/api": ""
+ "^/api/": ""
}
},
"/testnet/api/v1": {
@@ -30,7 +30,7 @@
"^/testnet/api": "/api/v1/ws"
}
},
- "/testnet/api": {
+ "/testnet/api/": {
"target": "http://localhost:50001/",
"secure": false,
"pathRewrite": {
@@ -45,18 +45,18 @@
"^/liquid/api": "/api/v1/ws"
}
},
- "/liquid/api": {
+ "/liquid/api/": {
"target": "http://localhost:50001/",
"secure": false,
"pathRewrite": {
- "^/liquid/api": ""
+ "^/liquid/api/": ""
}
},
- "/bisq/api": {
+ "/bisq/api/": {
"target": "http://localhost:8999/",
"secure": false,
"pathRewrite": {
- "^/bisq/api": "/api/v1/bisq"
+ "^/bisq/api/": "/api/v1/bisq"
}
},
"/bisq/api/v1/ws": {
@@ -64,7 +64,7 @@
"secure": false,
"ws": true,
"pathRewrite": {
- "^/testnet/api": "/api/v1/ws"
+ "^/bisq/api": "/api/v1/ws"
}
}
}
\ No newline at end of file
diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts
index 4daffcaa8..662a96179 100644
--- a/frontend/src/app/app-routing.module.ts
+++ b/frontend/src/app/app-routing.module.ts
@@ -14,6 +14,7 @@ import { AssetsComponent } from './assets/assets.component';
import { StatusViewComponent } from './components/status-view/status-view.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { LatestBlocksComponent } from './components/latest-blocks/latest-blocks.component';
+import { ApiDocsComponent } from './components/api-docs/api-docs.component';
const routes: Routes = [
{
@@ -54,6 +55,10 @@ const routes: Routes = [
path: 'about',
component: AboutComponent,
},
+ {
+ path: 'api',
+ component: ApiDocsComponent,
+ },
{
path: 'address/:id',
children: [],
@@ -110,6 +115,10 @@ const routes: Routes = [
path: 'assets',
component: AssetsComponent,
},
+ {
+ path: 'api',
+ component: ApiDocsComponent,
+ },
],
},
{
@@ -168,6 +177,10 @@ const routes: Routes = [
children: [],
component: AddressComponent
},
+ {
+ path: 'api',
+ component: ApiDocsComponent,
+ },
],
},
{
diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts
index 8482e8df1..9997ff97e 100644
--- a/frontend/src/app/app.module.ts
+++ b/frontend/src/app/app.module.ts
@@ -43,7 +43,8 @@ import { NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
import { FeesBoxComponent } from './components/fees-box/fees-box.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
-import { faChartArea, faCube, faCubes, faDatabase, faInfo, faInfoCircle, faList, faQuestion, faQuestionCircle, faSearch, faTachometerAlt, faThList, faTv } from '@fortawesome/free-solid-svg-icons';
+import { faChartArea, faCogs, faCubes, faDatabase, faInfoCircle, faList, faSearch, faTachometerAlt, faThList, faTv } from '@fortawesome/free-solid-svg-icons';
+import { ApiDocsComponent } from './components/api-docs/api-docs.component';
@NgModule({
declarations: [
@@ -76,6 +77,7 @@ import { faChartArea, faCube, faCubes, faDatabase, faInfo, faInfoCircle, faList,
StatusViewComponent,
FeesBoxComponent,
DashboardComponent,
+ ApiDocsComponent,
],
imports: [
BrowserModule,
@@ -103,6 +105,7 @@ export class AppModule {
library.addIcons(faTv);
library.addIcons(faTachometerAlt);
library.addIcons(faCubes);
+ library.addIcons(faCogs);
library.addIcons(faThList);
library.addIcons(faList);
library.addIcons(faTachometerAlt);
diff --git a/frontend/src/app/bisq/bisq.routing.module.ts b/frontend/src/app/bisq/bisq.routing.module.ts
index da0c490c6..90bec63ce 100644
--- a/frontend/src/app/bisq/bisq.routing.module.ts
+++ b/frontend/src/app/bisq/bisq.routing.module.ts
@@ -8,6 +8,7 @@ import { BisqBlocksComponent } from './bisq-blocks/bisq-blocks.component';
import { BisqExplorerComponent } from './bisq-explorer/bisq-explorer.component';
import { BisqAddressComponent } from './bisq-address/bisq-address.component';
import { BisqStatsComponent } from './bisq-stats/bisq-stats.component';
+import { ApiDocsComponent } from '../components/api-docs/api-docs.component';
const routes: Routes = [
{
@@ -43,6 +44,10 @@ const routes: Routes = [
path: 'about',
component: AboutComponent,
},
+ {
+ path: 'api',
+ component: ApiDocsComponent,
+ },
{
path: '**',
redirectTo: ''
diff --git a/frontend/src/app/components/about/about.component.html b/frontend/src/app/components/about/about.component.html
index 5ebd35307..c31534ac8 100644
--- a/frontend/src/app/components/about/about.component.html
+++ b/frontend/src/app/components/about/about.component.html
@@ -56,7 +56,7 @@
-