Getting Started
Let's leverage Radical.sh to create our first API.
Requirements
- Build a student service that enables us to add, update, and delete student records
- API should be able to list students and should be filter based on date of birth and roll number
- API should be protected by basic authentication
Build Schema
- Create a New Project
- Click on Add Class. Enter 'Student' as the name.
- Use Add Property for adding "studentId" with data type Integer, "name" and "rollNumber" with data type String, and "dateOfBirth" with data type Date.
- Click on Audit Fields and choose the necessary audit fields.
Enable API
- Navigate to the API tab.
- Click on the "Make studentId as key & Enable CRUD" button.
- You should now be able to see all APIs in the sidebar.
Explore Code or Download
You have completed the API. Don't believe it? Click on the "Explore" button or the "Download" button in the top navigation.