You are on page 1of 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