Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

REST services allow you to safely access features and services outside the platform, using the authentication protocols OAuth 1, OAuth 2, and Basic authentication. This feature allows you to register, configure and test these services. For more technical and detailed information, see  REST services client authorization.

 

Estado
subtletrue
titleLearn more

HTML
<a id="toggleAll" href="#" >Expand/hide additional information. </a>
 <script type="text/javascript">
 
 var abertos = 0;
 var fechados = 0;
 function contador() {
    abertos = 0;
    fechados = 0;
    jQuery(".expand-control").each( function() {
		if (document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded") {
           	fechados++;
        } else {
        	abertos++;
        }
    });
 }
 AJS.toInit(function() {
 
    contador();
	var soma = abertos + fechados;
	$("#toggleAll").html('Expand/hide ' + soma  + ' additional information.');

    AJS.$('#toggleAll').click(function() {
        contador();
        if (abertos >= fechados) {
            jQuery(".expand-control").each(
                function() {
                    if (document.getElementById(this.id).children[0].className == "expand-control-icon icon expanded") {
                        jQuery(this).trigger("click");
                    }
                }
            )
        } else {
            jQuery(".expand-control").each(
                function() {
                    if (document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded") {
                        jQuery(this).trigger("click");
                    }
                }
            )
        }
    });
});
 </script>

Basic path

 

01. From the main menu, click on Control panel

...

02. Enter the required information.

Expandirpanel
titleLearn more

The fields highlighted with an asterisk (*) are mandatory.

Code
Service identification code. 

Domain
 
Address corresponding to the service domain. Example: http://127.0.0.1:8080

Authentication type
Authentication protocol that will be used by the service. The available options are:
- OAuth 1;
- OAuth 2;
- Basic.

Consumer key
 Key to access the service. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 1".

Consumer secret
 Secrete key to access the service. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 1".

Access token
 Token to access the service. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 1" or "Rest OAuth 2".

Secret token
 
Secrete token to access the service. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 1".

Access token URL
URL for the token used to access the provider. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 1".

Token request URL
URL for the token used to request the provider. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 1".

User authorization URL
URL for the user's access authorization to the provider. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 1".

Client Id.
Unique client key. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 2". 

Client secret
Secret client key. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 2".  

Refresh token
Key to refresh token. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 2".  

Refresh token URL
URL to refresh token. This field is only displayed when the selected option in the Authentication type field is "Rest OAuth 2".

User
User sent in the request header.

Password
Password sent in the request header. 

Password confirmation
Confirmation of password sent in the request header.

URL for service test
Endpoint GET to test authentication of access to the provider.

...

03. Change the information of your choice.

Learn more
Expandir
title
Painel

For more details about the fields displayed, see Add REST service.

04 . Click on Save.


Remove REST service 

...