Posts Tagged ‘API’

image

Creates an Oracle Java Cloud Service instance. Optionally, you can:

  • Enable a load balancer
  • Enable Oracle Coherence (that is, add a Coherence data tier)

The heap sizes for the Managed Server processes are determined automatically by the compute shape you specify for the WebLogic component type. See About Default Heap Size Settings for Oracle Java Cloud Service Instances in Using Oracle Java Cloud Service. When creating a service instance, you can define your own JVM memory configuration if you don’t want to use the computed values, and you can customize the Managed Server JVM arguments configuration.

Note: Oracle Java Cloud Service uses Oracle Database Cloud – Database as a Service to host the Oracle Fusion Middleware component schemas required by Oracle Java Required Files (JRF). Before you create an Oracle Java Cloud Service instance, you must have already created a database deployment on Oracle Database Cloud – Database as a Service. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Advertisements
image

Oracle Mobile Cloud Service allows you to implement Custom API using node.js. This is a powerful feature as it allows you to use any of the existing node.js modules in your implementation.
In this post I am going to show you how to create and download a PDF file that will contain the weather information for the provided city, that we will get calling a REST Connector.
If you don’t know how to create a REST Connector check this post: Oracle Mobile Cloud Service: Create an API that calls a REST web service
First we need to create a connector. This is the URL we are going to use:

http://api.openweathermap.org/data/2.5/forecast/daily

Openweathermap is a free rest api where we can get the weather forecast.

We have to create some rules as we need to pass some parameters into the url. These are default values that we can override when calling the connector.

The next step is to create a Custom API. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

image

Introduction

To build functional and performant mobile apps, the back-end data services need to be optimized for mobile consumption. RESTful web services using JSON as payload format are widely considered as the best architectural choice for integration between mobile apps and back-end systems. At the same time, many existing enterprise back-end systems provide a SOAP-based web service application programming interface (API). In this article series we will discuss how Oracle Mobile Cloud Service (MCS) can be used to transform these enterprise system interfaces into a mobile-optimized REST-JSON API. This architecture layer is sometimes referred to as Mobile Backend as a Service (MBaaS). A-Team has been working on a number of projects using MCS to build this architecture layer. We will explain step-by-step how to build an MBaaS, and we will  share tips, lessons learned and best practices we discovered along the way. No prior knowledge of MCS is assumed. In part 1 we discussed the design of the REST API, in part 2 we covered the implementation of the “read” (GET) resources, in part 3 we discussed implementation of the “write” resources (POST,PUT and DELETE). In this fourth part, we will look at how we can use MCS Storage collections to cache payloads, and while doing so, we will use some more advanced concepts like chaining promises to execute multiple REST calls in sequence.

Main Article

In this article we will implement the GET /jobs endpoint which returns a list of jobs. This list is static, and as such can be cached within MCS to reduce the number of backend calls and speed up overall performance. Obviously, app developers can also choose to cache this list on the mobile device to further enhance performance, but that is beyond the scope of this article. We will use the MCS Storage API to store and retrieve the cached list of jobs. We will use a boolean query parameter refreshCache to force an update of the jobs list in storage.

Setting up the Storage Collection

To store files in MCS, a so-called storage collection must be created. Access to a storage collection is handled through roles. When creating a new storage collection, you assign roles that have read and/or write privileges. Users with the appropriate role(s) can then store files in the collection and/or retrieve them. So, we first create a role named HRManager, by clicking on the Mobile User Management menu option, select the Roles tab, and then click on New Role.

After creating the role, we select the Storage menu option and click on New Collection to create the collection. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

 

clip_image002In this article, I will describe how I took the Oracle JET Sample application that I deployed to Node.js – locally and in the Oracle Application Container Cloud-and extended it with a new tab containing a table component that is data bound to a collection populated from a REST API that also runs on Application Container Cloud and accesses a DBaaS instance.

The initial application was described in this previous article (Deploying an Oracle JET application to Application Container Cloud and running on Node.js); in that article I took the Oracle JET Starter Template Quickstart sample application, configured it to run on Node.js (locally) and then configured it for deployment on Application Container Cloud and subsequently ran it on the cloud. In this article, I will leverage the REST API exposed from a Node.js application Data API discussed in an earlier article: REST API on Node.js and Express for data retrieved from Oracle Database with node-oracledb Database Driver running on Application Container Cloud. This Data API connects to a DBaaS instance and retries data from the DEPARTMENTS table in the HR schema.

Extending the sample application with an additional tab that can be selected and shown, containing a table component with data binding to a newly defined viewmodel did not prove trivial at first. This was my first encounter with some of the frameworks included in JET – Require and especially Knock Out – and I ran into many small typos and fairly large misunderstandings. Now I believe I nailed it – and this article is the proof. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

 

Introduction

clip_image002CERN WebLogic CLI tool[1] is written in Python. A project is being realized in an object oriented way to contribute towards flexibility, modularity and legibility of a solution and the modules of the system are designed to maximize end-user productivity. It is a comprehensive solution using WebLogic RESTful management services and providing a simple way of interacting with a user and possibility of integration with third party systems. The goal of the system is to provide a set of standardized functionality for managing resources shared in a distributed environment composed of hundreds WebLogic servers. Among them there are significant and business-critical applications. The product hides administration mechanisms by removing the complexity of the REST interface and shares user friendly abstraction layer. The system together with Oracle WebLogic Server follows the client- server architectural style.

The power of the REST

REST is an architecture style for designing Web services that focus on a server’s resources. It is a lightweight alternative to Web Services (SOAP, WSDL) or RPC. REST interfaces can be used by any programming language. One of the key characteristics of a RESTful service is that communication is stateless. It means that a complete request doesn’t require the server to retrieve any kind of application context or state. Each request from any client contains just essential information necessary to service the request, and session state should be held in the client side. Regarding managing Oracle WebLogic Server, REST management API is faster than WebLogic Scripting Tool.

Abstractions in a RESTful system:

  • Server resources
  • Resource representations
  • Actions on server resources

What is a RESTful resource? It is anything that can be accessed within the scope of designed REST service over the Web. Representation of a resource is sent back from server to client as a result of the request. Server resource cannot be sent or received, only its representation can be sent. Representations can be of a various forms, such as JSON, XML or even plain text. Actions are used to operate on server resources. RESTful clients use HTTP requests for all four CRUD (Create / Read / Update / Delete) operations. The key features[2] are presented below.

The Good, the Bad, and the Ugly – WebLogic API

Although REST is very simple, lightweight and fast, there are some requests that might make a tremendous burden on WebLogic Server. For instance, if the domain is full of logs, queries for all of them may take longer. Likewise, starting a laden server can put the user’s patience to the test. REST lightness needs to be separated from the operation weight. REST requests are hitting the target very quickly, but demanded action may take much more time.

Another downside is an impression that WebLogic REST API[3] is not complete. The API does not address yet full management functionality for WebLogic Server. Let me give an example. It is still impossible to create a domain, a cluster or even a server with the API – here it is still necessary to use a more traditional way, for example Administration Console. Read the complete article here

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Technorati Tags: WebLogic,WebLogic Community,Oracle,OPN,Jürgen Kress

clip_image002

Designing Custom APIs for Oracle Mobile Cloud Service (MCS) right from the Browser

One of the powerful and cool new features in Oracle Mobile Cloud Service is the hub for Custom APIs. From the architectural perspective Custom APIs are consisting of two parts: The „Design“ and „Implementation“ Part. In this post I am going to focus on the first part.

Within MCS it is possible to create the API interface right in the browser or by uploading a so called RAML document that describes the API resources. Having done this you can provide some sample data being able to test and implement against the newly created API.

Focus of this post is to show how to design an API right in MCS UI and test it.

How to do it

Goto Development > APIs

Click „New API"

If you have a RAML document at this point in time you can upload it to define the Resources for your API. If not it is possible to create it on the fly (as shown in this post).

Next: Click „Create“. It will take you to the „Designer“ View. You will see the general configuration of your Custom API. Read the complete article here.

 

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

clip_image002

New to APIs, or to the API Designer?  Watch this video to find out how to sketch out an API, then supply mock data you can code against — WITHOUT having to wait for the API to be implemented in Javascript.

Watch the video here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki