Platform Api to communicate with frontend and backend services.
Use your editor and install the relevant plugging/extension to edit and to see the APIs.
-
Install extension OpenAPI (Swagger) Editor
Helpful to check if your API is corrected created and no error exist.
- Create an account in 42Crunch
- Generate Editor Token
- Go to User Setting after logging
- Go to Token > Create new token
- Copy the token and go to you Editor
- Open one of the API files, for example: api_module_about.yml
- Go to Path, for example
/team:
- Click "Audit" Link above the path you want to test
- Provide IDE Token and proceed further
- The Audit Problem view page will show all the problem exist or no error will show in case of everything correct.
- Open one of the API files you want to see, for example: api_about.yml
- Open the OpenAPI View from your IDE
- You will be able to see all paths and can start to edit
- There are 2 servers on the swagger UI - default is set to
localhost
- Choose the correct server if you want to test the api
- For more details check the plugging webpage
Follow the steps in listed in 42Crunch setup
- Install jq on mac:
$ brew install jq
$ curl https://wcc-cms.fly.dev/api/cms/v1/team | jq .
The output should be like this:
{
"data": {
"title": "Meet our team",
"subtitle": "Core Team",
"description": "The core team of our community is composed of visionary directors and dynamic leaders, who bring a wealth of experience and dedication to empowering women in technology.",
"membersByType": {
"directors": [
{
"fullName": "Irina Kamalova",
"position": "Senior Software Engineer",
"image": {
"path": "https://womencodingcommunity.com/assets/images/team/8.jpeg",
"alt": "Director profile picture"
},
"network": [
{
"type": "Linkedin",
"link": "https://www.linkedin.com/in/irina-kamalova/"
},
{
"type": "Medium",
"link": "https://iren-kamalova.medium.com/"
}
]
}
],
"leads": [
{
"fullName": "Eleonora Belova",
"position": "Test Automation Engineer",
"image": {
"path": "https://womencodingcommunity.com/assets/images/team/7.jpeg",
"alt": "Leader profile picture"
},
"network": [
{
"type": "Linkedin",
"link": "https://www.linkedin.com/in/eleonora-belova-7069baa5/"
},
{
"type": "Github",
"link": "https://github.com/nora-weisser"
}
]
}
],
"evangelists": []
}
},
"metadata": {
"pagination": {
"totalItems": 50,
"totalPages": 2,
"currentPage": 1,
"pageSize": 25
}
}
}