1.0.6 • Published 4 years ago

serendip-dashboard v1.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

MIT Licence Maintenance Website shields.io Open Source Love TypeScript

SF

Serendip Business API

It's the source code of our main business API. this web API is built on Serendip framework and is responsible for

  • Authorization and authentication of serendip users both SaaS and on-premises using serendip-framework authentication
  • Handling document entity INSERT/UPDATE/DELETE/QUERY operations.
  • Storing differentiate of document versions using serendip-framework json-patch.
  • Handling upload and download streams to GridFs ( through mongodb-provider or griddb-provider ) *this will be moved to separate micro-service
  • Handling business(team) authorization & management on BusinessService and BusinessController

    This web API provides data for other micro-services which are connected to the same database grid as this web API is. these include our input/output and trigger services, such as:

  • telegram agent

  • website backend ( serendip.agency runs on this )
  • sms agent
  • mail agent

Client

We have built a client package, which is configured to work with our API on http and websocket protocol. it will easily authenticate you with our API and it will let you:

  • use our real-time event system through web socket
  • use our file streams as input and output to your system. ( fs in the cloud )
  • sync your data encrypted and browse them or get analytics from them on our dashboard serendip.cloud
  • access to our event/trigger system ( using our dashboard ) that trigger sms/email/fax/push/http_request based on insert/delete/update events on your that in real-time.

Authentication

authenticating with this API is possible with any http client for password grant type or our SSO(single sign-on) for authorization_code grant type which needs your client and it's redirect URL defined and approved in your business setting on serendip.

Usage Notes

This Web API is accessible in domains below and you need account and business created to access routes

Request MethodURL PathController > Endpoint
POST/api/auth/registerAuthController > register
POST/api/auth/sendresetpasswordtokenAuthController > sendResetPasswordToken
POST/api/auth/addusertogroupAuthController > addUserToGroup
POST/api/auth/deleteuserfromgroupAuthController > deleteUserFromGroup
POST/api/auth/changepasswordAuthController > changePassword
POST/api/auth/resetpasswordAuthController > resetPassword
POST/api/auth/sendverifyemailAuthController > sendVerifyEmail
POST/api/auth/sendverifysmsAuthController > sendVerifySms
POST/api/auth/verifymobileAuthController > verifyMobile
POST/api/auth/verifyemailAuthController > verifyEmail
POST/api/auth/clienttokenAuthController > clientToken
POST/api/auth/refreshtokenAuthController > refreshToken
GET/api/auth/sessionsAuthController > sessions
POST/api/auth/checktokenAuthController > checkToken
POST/api/auth/onetimepasswordAuthController > oneTimePassword
POST/api/auth/newauthcodeAuthController > newAuthCode
POST/api/auth/tokenAuthController > token
GET/api/server/cluster-testingServerController > clusterTesting
GET/api/server/cluster-workersServerController > clusterWorkers
GET/api/server/routesServerController > routes
GET/api/server/throwServerController > throw
GET/api/server/nexterrorServerController > nextError
GET/api/server/doneerrorServerController > doneError
GET/api/server/servicesServerController > services
GET/api/business/listBusinessController > list
POST/api/business/gridBusinessController > grid
POST/api/business/savebusinessBusinessController > saveBusiness
POST/api/business/deletememberBusinessController > deleteMember
POST/api/business/addmemberBusinessController > addMember
POST/api/entity/:entity/zipEntityController > zip
POST/api/entity/exportEntityController > export
POST/api/entity/:entity/detailsEntityController > details
POST/api/entity/changesEntityController > changes
POST/api/entity/:entity/listEntityController > list
POST/api/entity/:entity/countEntityController > count
POST/api/entity/:entity/searchEntityController > search
POST/api/entity/:entity/insertEntityController > insert
POST/api/entity/:entity/updateEntityController > update
POST/api/entity/:entity/deleteEntityController > delete
GET/api/server/cluster-testingServerController > clusterTesting
GET/api/server/cluster-workersServerController > clusterWorkers
GET/api/server/routesServerController > routes
GET/api/server/throwServerController > throw
GET/api/server/nexterrorServerController > nextError
GET/api/server/doneerrorServerController > doneError
GET/api/server/servicesServerController > services
GET/api/storage/testStorageController > test
POST/api/storage/newfolderStorageController > newFolder
POST/api/storage/uploadStorageController > upload
GET/dl/:first/public/:lastStorageController > public
GET/api/storage/preview/:path*StorageController > preview
POST/api/storage/partsStorageController > parts
POST/api/storage/listStorageController > list
POST/api/storage/assembleStorageController > assemble

API Documentation

coming soon ...

Code Documentation

This documents are auto generated from typescript source using typedocpac

Contribution

We would love for you to contribute to Serendip and help making it better!

Related

_