Monday, September 25, 2023

API Management

Few things to know

Once you done with development and publishing your APIs, then 

How to secure this APIs

How to analyze usage of these APIs

Scale your APIs

Configure 

to rate limit -> eg: 10 requests per minute


Internal(Private)  and Public (APIs visible to others)

--


Public APIs need more

---

Due to visibility and scrutiny they have

If you have few, you may not bother

you might build embedding them with

security, logging , configuration,  into actual API code


So when more and more requirements coming

Specially where micro service --> where APIs get broken

Note : Micro service are not APIs.


smaller APIs focus with specialized operations

Legacy APIs , what to do


API managment is a process of 

  1. Building
  2. Publishing
  3. Securing
  4. Versioning
  5. Observing
  6. Scaling
  7. Cataloging
  8. Retiring

There can be more in future.....

We need to make a system to manage the lifecycle of APIs, so company can focus on adding value to core business (coding,..)


1. API Gateway

Handles the routing and management of all the APIs 

through policies that apply to individual API or set of APIs

2. Developer portal

serves as self service hub - developers to access API documentation, sdks, and other resources needed for consuming APIs

3. API dashboard

Observe API usage

view key API metrics

manage variety of API analytics

4. Unified API central catalogue

organizing, cataloging, indexing and presenting all the public and Private APIs use in Organization

API management will add Flexibility and Power where

you are managing each API independently, to a Unified system where you are orchestrating a complete set of APIs as  a product.

Create a API strategy align with your Companies goals - will save lot of resources and work efficiently


Thursday, September 21, 2023

Mulesoft Training Public URLs are not working

http://mu.learn.mulesoft.com/delta?wsdl

http://mu.learn.mulesoft.com/united/flights/CLE 


Most of the time you find that, the URLs provided by the Mulesoft is not working or you are working in a company where you have restriction on access.

Solution to these issues is to set up those services running inside your machine.

Solution:

Open the jars folder fromStudents Files zip file where you have already downloaded from course resourses.

Locate "mulesoft-training-services-1.8.8.jar"

Just run this jar

java -jar mulesoft-training-services-1.8.8.jar


You will finally get an output on terminal as below

--------------------------------------------



┌───────────────────────────────────────────────────────────────────────────────────────┐

│ (\_/)          M U L E S O F T    T R A I N I N G   &   C E R T I F I C A T I O N     │

│ /   \          Anypoint Platform Development Fundamentals - Services & APIs           │

└───────────────────────────────────────────────────────────────────────────────────────┘


Starting resources:

- Database started.

- Database tables created.

- Database tables populated.

- JMS message broker started.

- United flights web service started.

- JMS service started.

- American flights RAML API started.

- Banking REST API started.

- Accounts REST API started.

- Delta flights web service started.


Published resources:

- Landing page                   : http://localhost:9090

- JMS message broker URL         : tcp://localhost:61616

- JMS default topic name         : apessentials

- JMS web form                   : http://localhost:9090/jmsform.html

- American flights database URL  : jdbc:derby://localhost:1527/memory:training

- Accounts API                   : http://localhost:9090/accounts/api

- Accounts web form              : http://localhost:9090/accounts/show.html

- American flights REST service  : http://localhost:9090/american/flights

- American flights REST API RAML : http://localhost:9090/american/american-flights-api.raml

- Banking API base URL           : http://localhost:9090/api/...

- Banking API RAML               : http://localhost:9090/api/banking-api.raml

- United flights REST service    : http://localhost:9090/united/flights

- Delta flights SOAP service     : http://localhost:9191/delta

- Delta flights SOAP WSDL        : http://localhost:9191/delta?wsdl


Press CTRL-C to terminate this application...