Build API Endpoints
An API endpoint provides the actual business logic and data for your API. You need to develop and deploy APIs before integrating them with API7 Enterprise.
Develop API Endpoints
This section lists the workflow to develop an API endpoint.
- Scheduling: Scheduling is a key aspect of the API development process. People in your team should complete and report their work based on the scheduled timeline to ensure delivering the project timely.
- Development and Self-Testing: Typically, development involves coding and debugging, while self-testing involves testing and validating developed APIs to ensure their functionality.
- Integration Testing: Integration testing is a stage where APIs between different modules are debugged and tested to ensure correct and stable interactions and communications.
- QA Testing: QA testing (or quality assurance testing) aims to identify and eliminate defects or vulnerabilities in an API before it is released. It is critical for the API reliability and security.
- Product Acceptance: Product acceptance involves comprehensive testing, evaluation, and confirmation to determine whether an API meets the expected goals and standards. This stage is vital for ensuring that the API is ready for production and meets your requirements.
- Deployment: Once the API has passed all necessary tests and evaluations, it will be deployed to the production environment. Then, you can access and utilize the API.
Deploy API Backend
When deploying an API backend, you should consider API scalability, availability, portability, and so on.
- Virtual machines: Deploy service binaries/packages on VMs directly.
- Containers: Package services as Docker containers and deploy on orchestrators like Kubernetes.
- Serverless: Develop functions and deploy on platforms like AWS Lambda.
- On-premise: Host services on existing on-premise infrastructure.
Define API Endpoints
Once deployed, the API backend must be configured with network endpoints that the API7 Enterprise can route requests to.
- Virtual Machines: Assign public IP addresses and open ports on VM firewalls for service endpoints.
- Containers: Use Kubernetes Ingress or LoadBalancer services to expose endpoints.
- Serverless: Most serverless platforms automatically assign invoked URLs for functions.
- On-premise: Define URLs or IP addresses with ports for on-premise services, and the allowlist of IP addresses of API7 Enterprise.
Detect API Backends
You can use either of the following ways to detect API backends:
Implement Health Checks (Highly Recommended)
Configure health check endpoints for backend services to allow API7 Enterprise to detect availability and route traffic accordingly.
Use Service Discovery (Optional)
Service discovery mechanisms, such as Consul, Eureka, Nacos or Kubernetes Service Discovery, can be used to dynamically detect backend nodes.