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
view
is created for get information about contentlist
is created for get all the contentcreate
is created for create the contentupdate
is created for update the contentdelete
is created for delete the contentjwt
is 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
signin
is for signin processsignup
is for signup processforgotPassword
is for generate forgot password linkresetPassword
is for reset passwordlogout
is for logout functionalityjwt
is 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
5 years ago