aboutsummaryrefslogtreecommitdiff
path: root/src/app/rest-apis
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/rest-apis')
-rw-r--r--src/app/rest-apis/rest-apis.component.html14
-rw-r--r--src/app/rest-apis/rest-apis.component.ts15
2 files changed, 17 insertions, 12 deletions
diff --git a/src/app/rest-apis/rest-apis.component.html b/src/app/rest-apis/rest-apis.component.html
index 6081599..e9c99e5 100644
--- a/src/app/rest-apis/rest-apis.component.html
+++ b/src/app/rest-apis/rest-apis.component.html
@@ -1,9 +1,15 @@
1<div class="o-grid u-pt-x2 "> 1<div class="o-grid u-pt-x2 ">
2 <div class="o-grid__col u-1/4" *ngFor="let api of apis"> 2 <div class="o-grid__col o-grid--gutter-x2 u-mv-x1 u-1/1" *ngFor="let api of apis">
3 <div class="c-card"> 3 <div routerLink="{{api.link}}" class="c-card c-card--clickable">
4 <h1 class="o-type-28">{{api.name}}</h1> 4 <h1 class="u-color-primary-light o-type-28">{{api.name}}</h1>
5 <br> 5 <br>
6 {{api.desc}} ...<a routerLink="{{api.link}}">Read more</a> 6 <div class="o-media">
7 <div class="o-media__fluid u-align-middle">
8 <p class=" o-type-20">{{api.desc}}</p>
9 </div>
10 <div class="o-media__fixed u-text-right u-align-middle">
11 </div>
12 </div>
7 </div> 13 </div>
8 </div> 14 </div>
9 </div> 15 </div>
diff --git a/src/app/rest-apis/rest-apis.component.ts b/src/app/rest-apis/rest-apis.component.ts
index 8c95b23..72ff3bf 100644
--- a/src/app/rest-apis/rest-apis.component.ts
+++ b/src/app/rest-apis/rest-apis.component.ts
@@ -11,14 +11,14 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18/** 18/**
19 * @author Philippe Buschmann 19 * @author Philippe Buschmann
20 * @file src/app/rest-apis/rest-apis.component.ts 20 * @file src/app/rest-apis/rest-apis.component.ts
21 * @brief 21 * @brief
22 * 22 *
23 */ 23 */
24 24
@@ -31,16 +31,15 @@ import { ApiService } from '../api.service';
31}) 31})
32export class RestApisComponent implements OnInit { 32export class RestApisComponent implements OnInit {
33 33
34 apis: RestAPI[]; 34 apis: RestAPI[] = [
35 {name: 'Manage Identities', desc: 'Create new identities, edit their names and delete them!', link: 'identity'},
36 {name: 'Maintain Names', desc: 'Do things!', link: 'namestore'},
37 {name: 'Handle Peers', desc: 'Do things!', link: 'peerstore'},
38 ];
35 39
36 constructor(private apiService: ApiService) { } 40 constructor(private apiService: ApiService) { }
37 41
38 getAPIs(): void {
39 this.apiService.getAPIs().subscribe(apis => this.apis = apis);
40 }
41
42 ngOnInit() { 42 ngOnInit() {
43 this.getAPIs();
44 } 43 }
45 44
46} 45}