Creating APIs

API creation is far more than providing a simple interface. The API is only the tip of the iceberg. The following image illustrates how API Creator provides a fully functional application backend:
lac32
API creation is far more than providing a simple interface. The API is only the tip of the iceberg. The following image illustrates how API Creator provides a fully functional application backend:
CA Technologies.png
  • API creation.
     Instant schema-based default APIs are complemented by point-and-click custom resources. Custom resources provide projections, aliases, and joins across databases. Default and custom APIs provide enterprise pattern automation, including optimistic locking, pagination, and generated key support.
  • Logic.
     Powerful spreadsheet-like reactive logic enforces your business rules and systems integration. Reactive logic enforces the rules and integration in response to RESTful updates with a 40:1 improvement in conciseness. You can also specify data content security, securing data access down to the row and column levels based on users' roles.
  • Extensibility.
     You can enhance and extend reactive logic with server-side JavaScript. 
    CA Live API Creator
     creates a JavaScript object model giving you easy access to attributes and related objects, read/write persistence services, and logic enforcement. Your JavaScript operates on this model and can invoke shared Java/JavaScript logic in reusable libraries.
You can create your default API using one of the following methodologies:
  How Creating APIs.png  
  • Data-first.
     Connect to an existing data source and create a set of default APIs, which you can then extend.
  • App-first.
     Create tables, fields, and data using Data Explorer. API Creator creates your application, your schema, and your default API.
  • Model-first.
     Convert a model, such as Swagger, to schema format and then use the POST request method to submit the data. API Creator creates the database and the default API.
  • Code-first.
     Create an endpoint and then start writing code in JavaScript. Use code completion, helper libraries, and the debugger. You can add database connectivity as required.
After your default API is created, you can customize your API with resources and you can define your logic and security.
Separation of concerns provides important parallelization of development activities:
  • Proper client/server partitioning: Your business logic is properly partitioned to the server, where you can share it and can develop it in parallel with client application development.
  • Service logic is independent of internal business logic: You can define resources in parallel with logic development.
For more information about how to create your default API, watch the following 
Approaches to Creating APIs
 video:

Whatever methodology you use, you can iterate quickly. You can receive immediate feedback from business users while continuing to refine application logic and develop custom client interfaces (applications).