These are the docs about how to test & code our API.
If you need to use our API, you should use previous API (we can send you docs through email arasaac@gmail.com)
- Server language
- nodeJSJavaScript for the server Side
- Web Server
- Express: Fast, unopinionated, minimalist web framework for Node.js
- API Framework
- Swagger: World’s largest framework of API developer tools for the OpenAPI Specification(OAS)
- Database
- MongoDB: a document database (no relational)
- Authentication
- JWT, user/password and social logins
- We use Swagger to generate our API docs
- JSON config file: https://api.arasaac.org/arasaac.json
- You can test our API using swagger-ui:
- Testing locally using Arasaac frontend: http://localhost:3000/developers/api
- Testing from our server: https://beta.arasaac.org/developers/api
- Through the swagger editor, using the command line:
cd newarasaac/api
npm run edit
- We use yarn debug in docker-compose.yml instead of yarn start
- We open port 9229, both in API docker and in HOST (see docker-compose.yml)
- Launch Debugger from vscode with this configuration:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Docker: Attach to Node",
"port": 9229,
"address": "localhost",
"sourceMaps": true,
"localRoot": "${workspaceFolder}/app",
"remoteRoot": "/app",
"protocol": "inspector"
}
]
}