0% found this document useful (0 votes)
371 views3 pages

MUStart4.1 Snippets

This document provides information and resources for getting started with the Anypoint Platform, including URLs and examples for the American Flights API and databases. It outlines modules on ProgrammableWeb, the American Flights API, API methods and responses, MySQL and Derby databases, and authentication.

Uploaded by

gene
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
371 views3 pages

MUStart4.1 Snippets

This document provides information and resources for getting started with the Anypoint Platform, including URLs and examples for the American Flights API and databases. It outlines modules on ProgrammableWeb, the American Flights API, API methods and responses, MySQL and Derby databases, and authentication.

Uploaded by

gene
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

MuleSoft.U Getting Started with Anypoint Platform 4.

1 - Snippets

MODULE 1 **********************************************************

* ProgrammableWeb
http://www.programmableweb.com/

* MuleSoft Training API portal:


https://anypoint.mulesoft.com/exchange/portals/muletraining/

* American Flights web service


http://training4-american-ws.cloudhub.io/api/flights

* American Flights API post body


{
"code": "GQ574",
"price": 399,
"departureDate": "2016/12/20",
"origin": "ORD",
"destination": "SFO",
"emptySeats": 200,
"plane": {"type": "Boeing 747", "totalSeats": 400}
}

* American Flights API


http://training4-american-api.cloudhub.io/flights

* American Flights API client_id for APDev fictitious application


d1374b15c6864c3682ddbed2a247a826

* American Flights API client_secret for APDev fictitious application


4a87fe7e2e43488c927372AEF981F066

* MODULE 3 **********************************************************

* American Flights API description text


The American Flights API is a system API for operations on the american table in
the training database.
Supported operations
Get all flights
Get a flight with a specific ID
Add a flight
* American Flights API - /{ID} DELETE and PUT methods
delete:
responses:
200:
body:
application/json:
example:
message: Flight deleted (but not really)
put:
body:
application/json:
type: AmericanFlight
example: !include examples/AmericanFlightExample.raml
responses:
200:
body:
application/json:
example:
message: Flight updated (but not really)

* MODULE 4 **********************************************************

* MySQL database
db:
host: "mudb.learn.mulesoft.com"
port: "3306"
user: "mule"
password: "mule"
database: "training"

American table: american


Account table: accounts
Account list URL: http://mu.learn.mulesoft.com/accounts/show
or if using mulesoft-training-services.jar application:
http://localhost:9090/accounts/show.html

* MySQL database as URL and driver name


URL: jdbc:mysql://mudb.learn.mulesoft.com:3306/training?user=mule&password=mule
Driver class name: com.mysql.jdbc.Driver

* Derby database
URL: jdbc:derby://localhost:1527/memory:training
Driver class name: org.apache.derby.jdbc.ClientDriver

* SQL input parameter


#[{'ID' : attributes.uriParams.ID}]

* American Flights API - /flights POST response example


{"message": "Flight added (but not really)"}
* MODULE 5 **********************************************************

* Your client ID

* Your client secret

You might also like