ngx-strapi v0.0.0
NgxStrapi
This project was generated with Angular CLI version 6.0.8.
Code scaffolding
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Running unit tests
Run ng test to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e to execute the end-to-end tests via Protractor.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
This module is created for help interact with Strapi https://strapi.io/
import { DefaultRestService } from ’ngx-strapi’; for import REST service
import { NgxStrapiLibService } from ’ngx-strapi’; for import Auth service
In module there exists 5 methods for interact with Strapi API and generate Json Web Token
viewis created for get information about contentlistis created for get all the contentcreateis created for create the contentupdateis created for update the contentdeleteis created for delete the contentjwtis for generate the Json Web Token
You can use this functionality for interact with Strapi API.
Just call the viev function like this.exapmleService.view('url').subscribe(res => console.log(res));.
Wiht this functionality you can work with all basic Strapi contents created by default and don't write services for each content separately for Strapi.
There is also functionality for authorization with Strapi
signinis for signin processsignupis for signup processforgotPasswordis for generate forgot password linkresetPasswordis for reset passwordlogoutis for logout functionalityjwtis for generate the Json Web Token
All the code is lies in scr/app directory where REST functionaliti is in default-rest.service.ts file
Authorization functionality is in ngx-strapi-lib.service.ts file
7 years ago