This project was generated with Angular CLI version 6.0.8.
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
.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
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 content -
list
is created for get all the content -
create
is created for create the content -
update
is created for update the content -
delete
is created for delete the content -
jwt
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 process -
signup
is for signup process -
forgotPassword
is for generate forgot password link -
resetPassword
is for reset password -
logout
is for logout functionality -
jwt
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