Skip to content

Commit

Permalink
docs(api): atualiza links das apis no portal
Browse files Browse the repository at this point in the history
alteração de endereço
> de *.fly.dev
> para *.onrender.com

Fixes DTHFUI-7899
  • Loading branch information
Rafael Lourenço Marques authored and alinelariguet committed Nov 9, 2023
1 parent 0f635b4 commit ebcdfbb
Show file tree
Hide file tree
Showing 57 changed files with 94 additions and 91 deletions.
14 changes: 7 additions & 7 deletions docs/guides/sync-fundamentals.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ import { PoSyncSchema } from '@po-ui/ng-sync';

const conferenceSchema: PoSyncSchema = {
// Endpoint para o método GET
getUrlApi: 'https://po-sample-conference.fly.dev/conferences',
diffUrlApi: 'https://po-sample-conference.fly.dev/conferences/diff',
getUrlApi: 'https://po-sample-conference.onrender.com/conferences',
diffUrlApi: 'https://po-sample-conference.onrender.com/conferences/diff',
deletedField: 'isDeleted',
fields: [ 'id', 'title', 'date', 'location', 'description' ],
idField: 'id',
Expand Down Expand Up @@ -190,8 +190,8 @@ propriedade `deletedField` na interface [PoSyncSchema](/documentation/po-sync),
import { PoSyncSchema } from '@po-ui/ng-sync';

const conferenceSchema: PoSyncSchema = {
getUrlApi: 'https://po-sample-conference.fly.dev/conferences',
diffUrlApi: 'https://po-sample-conference.fly.dev/conferences/diff',
getUrlApi: 'https://po-sample-conference.onrender.com/conferences',
diffUrlApi: 'https://po-sample-conference.onrender.com/conferences/diff',
// Definição do nome do campo
deletedField: 'isDeleted',
fields: [ 'id', 'title', 'date', 'location', 'description' ],
Expand All @@ -218,7 +218,7 @@ tiveram a última atualização maior ou igual a data que foi recebida como par
sincronizados serão retornados. Para cada um dos *schemas* é necessário ter um *endpoint* de sincronização.

Abra o seu navegador e acesse a URL
https://po-sample-conference.fly.dev/conferences/diff/2018-10-08T13:23:31.893Z.
https://po-sample-conference.onrender.com/conferences/diff/2018-10-08T13:23:31.893Z.

O *endpoint* de sincronização deve retornar uma resposta com a estrutura como a da URL acima, por exemplo:

Expand Down Expand Up @@ -251,9 +251,9 @@ abaixo:
import { PoSyncSchema } from '@po-ui/ng-sync';

const conferenceSchema: PoSyncSchema = {
getUrlApi: 'https://po-sample-conference.fly.dev/conferences',
getUrlApi: 'https://po-sample-conference.onrender.com/conferences',
// Definição da URL de sincronização
diffUrlApi: 'https://po-sample-conference.fly.dev/conferences/diff',
diffUrlApi: 'https://po-sample-conference.onrender.com/conferences/diff',
deletedField: 'isDeleted',
fields: [ 'id', 'title', 'date', 'location', 'description' ],
idField: 'id',
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/sync-get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ Crie o arquivo `src/app/home/conference-schema.constants.ts` e adicione o conte
import { PoSyncSchema } from '@po-ui/ng-sync';
export const conferenceSchema: PoSyncSchema = {
getUrlApi: 'https://po-sample-conference.fly.dev/conferences',
diffUrlApi: 'https://po-sample-conference.fly.dev/conferences/diff',
getUrlApi: 'https://po-sample-conference.onrender.com/conferences',
diffUrlApi: 'https://po-sample-conference.onrender.com/conferences/diff',
deletedField: 'deleted',
fields: [ 'id', 'title', 'location', 'description' ],
idField: 'id',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { Component, ViewChild } from '@angular/core';
import { NgForm } from '@angular/forms';
import { trigger, state, style, transition, animate } from '@angular/animations';

import {
PoDynamicFormField,
PoTableColumn,
PoTableAction,
PoNotificationService,
PoToasterOrientation,
PoModalAction,
PoModalComponent,
PoPageAction
PoNotificationService,
PoPageAction,
PoTableAction,
PoTableColumn,
PoToasterOrientation
} from '@po-ui/ng-components';

@Component({
Expand Down Expand Up @@ -99,15 +98,15 @@ export class ToolsDynamicFormComponent {
readonly serviceFields: Array<PoDynamicFormField> = [
{
property: 'searchService',
help: 'https://po-sample-api.fly.dev/v1/heroes',
help: 'https://po-sample-api.onrender.com/v1/heroes',
label: 'SearchService',
gridColumns: 12,
gridLgColumns: 6,
gridXlColumns: 6
},
{
property: 'optionsService',
help: 'https://po-sample-api.fly.dev/v1/heroes',
help: 'https://po-sample-api.onrender.com/v1/heroes',
label: 'OptionsService',
gridColumns: 12,
gridLgColumns: 6,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class SamplePoModalPasswordRecoveryRequestComponent {
@ViewChild(PoModalPasswordRecoveryComponent) poModalPasswordRecovery: PoModalPasswordRecoveryComponent;

type: PoModalPasswordRecoveryType = PoModalPasswordRecoveryType.All;
urlRecovery: string = 'https://po-sample-api.fly.dev/v1/users';
urlRecovery: string = 'https://po-sample-api.onrender.com/v1/users';

openPasswordRecoveryModal() {
this.poModalPasswordRecovery.open();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
p-secondary-logo="https://via.placeholder.com/80x24?text=SECONDARY+LOGO"
p-token="rzDsQiSYoq"
p-url-new-password="https://thf.totvs.com.br/sample/api/new-password"
[p-recovery]="{ url: 'https://po-sample-api.fly.dev/v1/users', type: 'all', contactMail: '[email protected]' }"
[p-recovery]="{ url: 'https://po-sample-api.onrender.com/v1/users', type: 'all', contactMail: '[email protected]' }"
>
</po-page-change-password>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { PoPageDynamicDetailActions, PoPageDynamicDetailField } from '@po-ui/ng-
templateUrl: './sample-po-page-dynamic-detail-user.component.html'
})
export class SamplePoPageDynamicDetailUserComponent {
public readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people';
public readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people';

public readonly actions: PoPageDynamicDetailActions = {
back: '/documentation/po-page-dynamic-table'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<po-page-dynamic-edit
p-title="Po Page Dynamic Edit"
[p-fields]="[{ property: 'id', label: 'User ID' }]"
p-service-api="https://po-sample-api.fly.dev/v1/people"
p-service-api="https://po-sample-api.onrender.com/v1/people"
>
</po-page-dynamic-edit>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { PoPageDynamicEditActions, PoPageDynamicEditLiterals } from '@po-ui/ng-t
templateUrl: './sample-po-page-dynamic-edit-user.component.html'
})
export class SamplePoPageDynamicEditUserComponent {
public readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people';
public readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people';

public readonly actions: PoPageDynamicEditActions = {
save: '/documentation/po-page-dynamic-detail',
Expand Down Expand Up @@ -63,7 +63,7 @@ export class SamplePoPageDynamicEditUserComponent {
},
{
property: 'city',
optionsService: 'https://po-sample-api.fly.dev/v1/cities?transform=true',
optionsService: 'https://po-sample-api.onrender.com/v1/cities?transform=true',
offsetColumns: 4,
gridColumns: 4
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<po-page-dynamic-table p-title="Po Page Dynamic Table" p-service-api="https://po-sample-api.fly.dev/v1/people">
<po-page-dynamic-table p-title="Po Page Dynamic Table" p-service-api="https://po-sample-api.onrender.com/v1/people">
</po-page-dynamic-table>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Component } from '@angular/core';
templateUrl: './sample-po-page-dynamic-table-drag-and-drop.component.html'
})
export class SamplePoPageDynamicTableDragAndDropComponent {
readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people';
readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people';

readonly fields: Array<any> = [
{ property: 'id', key: true, visible: false },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
export class SamplePoPageDynamicTableHotelsComponent {
@ViewChild('hotelDetailModal') hotelDetailModal!: PoModalComponent;

readonly serviceApi = 'https://po-sample-api.fly.dev/v1/hotels';
readonly serviceApi = 'https://po-sample-api.onrender.com/v1/hotels';

actionsRight = true;
detailedHotel: any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Component } from '@angular/core';
templateUrl: './sample-po-page-dynamic-table-people.component.html'
})
export class SamplePoPageDynamicTablePeopleComponent {
readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people';
readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people';

readonly fields: Array<any> = [
{ property: 'id', key: true, visible: false },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, ViewChild, OnInit } from '@angular/core';
import { Component, OnInit, ViewChild } from '@angular/core';

import { PoBreadcrumb, PoDynamicViewField, PoModalComponent } from '@po-ui/ng-components';

Expand All @@ -20,7 +20,7 @@ export class SamplePoPageDynamicTableUsersComponent implements OnInit {
@ViewChild('userDetailModal') userDetailModal!: PoModalComponent;
@ViewChild('dependentsModal') dependentsModal!: PoModalComponent;

readonly serviceApi = 'https://po-sample-api.fly.dev/v1/people';
readonly serviceApi = 'https://po-sample-api.onrender.com/v1/people';

actionsRight = false;
detailedUser: any;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<po-page-job-scheduler
p-service-api="https://po-sample-api.fly.dev/v1/scheduler"
p-service-api="https://po-sample-api.onrender.com/v1/scheduler"
p-title="Background Process Scheduler"
[p-breadcrumb]="breadcrumb"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</div>
</po-container>
<po-page-login
p-authentication-url="https://po-sample-api.fly.dev/v1/users/authentication"
p-authentication-url="https://po-sample-api.onrender.com/v1/users/authentication"
p-blocked-url="/documentation/po-page-blocked-user"
p-authentication-type="Bearer"
p-logo="https://via.placeholder.com/160x64?text=MAIN+LOGO"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class SamplePoPageLoginHumanResourcesComponent implements OnDestroy, OnIn
passwordErrors = [];
params: PoPageBlockedUserReasonParams = { attempts: 3, hours: 24 };
passwordRecovery: PoPageLoginRecovery = {
url: 'https://po-sample-api.fly.dev/v1/users',
url: 'https://po-sample-api.onrender.com/v1/users',
type: PoModalPasswordRecoveryType.All,
contactMail: '[email protected]'
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
name="customFieldComboUrl"
[(ngModel)]="customField.url"
p-clean
p-help="Ex.: https://po-sample-api.fly.dev/v1/heroes"
p-help="Ex.: https://po-sample-api.onrender.com/v1/heroes"
p-label="Custom Field URL"
(p-change-model)="onChangeCustomProperties()"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
name="favoriteService"
[(ngModel)]="favoriteService"
p-clean
p-help="Ex.: https://po-sample-api.fly.dev/v1/favorite"
p-help="Ex.: https://po-sample-api.onrender.com/v1/favorite"
p-label="Favorite service"
[p-disabled]="!breadcrumbItems?.length"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class SamplePoDynamicFormRegisterComponent implements OnInit {
gridSmColumns: 12,
label: 'Favorite hero',
optional: true,
searchService: 'https://po-sample-api.fly.dev/v1/heroes',
searchService: 'https://po-sample-api.onrender.com/v1/heroes',
columns: [
{ property: 'nickname', label: 'Hero' },
{ property: 'label', label: 'Name' }
Expand All @@ -155,7 +155,7 @@ export class SamplePoDynamicFormRegisterComponent implements OnInit {
property: 'partner',
gridColumns: 6,
gridSmColumns: 12,
optionsService: 'https://po-sample-api.fly.dev/v1/people',
optionsService: 'https://po-sample-api.onrender.com/v1/people',
fieldLabel: 'name',
fieldValue: 'id',
optional: true
Expand Down Expand Up @@ -185,7 +185,7 @@ export class SamplePoDynamicFormRegisterComponent implements OnInit {
gridSmColumns: 12,
label: 'Upload your background',
optional: true,
url: 'https://po-sample-api.fly.dev/v1/uploads/addFile'
url: 'https://po-sample-api.onrender.com/v1/uploads/addFile'
}
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class SamplePoDynamicViewEmployeeOnLoadComponent implements OnInit {
private _newService = inject(SamplePoDynamicViewEmployeeOnLoadService);

ngOnInit(): void {
this._newService.setConfig('https://po-sample-api.fly.dev/v1/hotels', { id: 1485976673002 });
this._newService.setConfig('https://po-sample-api.onrender.com/v1/hotels', { id: 1485976673002 });
}

customEmployeeData() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
formControlName="hero"
p-field-label="nickname"
p-field-value="name"
p-filter-service="https://po-sample-api.fly.dev/v1/heroes"
p-filter-service="https://po-sample-api.onrender.com/v1/heroes"
p-label="Search a Hero"
p-sort
(p-change)="onChangeHero($event)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { HttpClient } from '@angular/common/http';

import { Observable } from 'rxjs';

Expand Down Expand Up @@ -35,6 +35,6 @@ export class SamplePoComboHeroesReactiveFormComponent implements OnInit {
}

private getHero(heroName: string) {
return this.http.get(`https://po-sample-api.fly.dev/v1/heroes/${heroName}`);
return this.http.get(`https://po-sample-api.onrender.com/v1/heroes/${heroName}`);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[(ngModel)]="heroName"
p-field-label="nickname"
p-field-value="name"
p-filter-service="https://po-sample-api.fly.dev/v1/heroes"
p-filter-service="https://po-sample-api.onrender.com/v1/heroes"
p-label="Search a Hero"
p-sort
(p-change)="onChangeHero($event)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Component } from '@angular/core';

import { Observable } from 'rxjs';

Expand All @@ -26,6 +26,6 @@ export class SamplePoComboHeroesComponent {
}

private getHero(heroName: string) {
return this.http.get(`https://po-sample-api.fly.dev/v1/heroes/${heroName}`);
return this.http.get(`https://po-sample-api.onrender.com/v1/heroes/${heroName}`);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
p-field-value="value"
p-label="Search a hotel"
p-sort
p-filter-service="https://po-sample-api.fly.dev/v1/hotels"
p-filter-service="https://po-sample-api.onrender.com/v1/hotels"
[p-filter-params]="filterParams"
>
</po-combo>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="po-row">
<po-widget class="po-lg-6">
<po-combo
p-filter-service="https://po-sample-api.fly.dev/v1/people"
p-filter-service="https://po-sample-api.onrender.com/v1/people"
p-label="People"
name="people"
[(ngModel)]="peopleName"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export class SamplePoComboInfinityScrollComponent {
}

private getPeople(peopleId: string) {
return this.http.get(`https://po-sample-api.fly.dev/v1/people/${peopleId}`);
return this.http.get(`https://po-sample-api.onrender.com/v1/people/${peopleId}`);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
name="filterService"
[(ngModel)]="filterService"
p-clean
p-help="https://po-sample-api.fly.dev/v1/heroes"
p-help="https://po-sample-api.onrender.com/v1/heroes"
p-label="Filter Service"
>
</po-input>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[(ngModel)]="contact"
p-field-value="id"
p-field-label="name"
p-filter-service="https://po-sample-api.fly.dev/v1/people"
p-filter-service="https://po-sample-api.onrender.com/v1/people"
p-icon="po-icon-user"
p-label="To contact"
p-placeholder="Select a contact"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name="lookup"
p-field-label="label"
p-field-value="value"
p-filter-service="https://po-sample-api.fly.dev/v1/heroes"
p-filter-service="https://po-sample-api.onrender.com/v1/heroes"
p-label="PO Lookup"
>
</po-lookup>
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
name="filterService"
[(ngModel)]="filterService"
p-clean
p-help="https://po-sample-api.fly.dev/v1/people"
p-help="https://po-sample-api.onrender.com/v1/people"
p-label="Filter Service"
>
</po-input>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[(ngModel)]="multiLookup"
p-field-label="label"
p-field-value="value"
p-filter-service="https://po-sample-api.fly.dev/v1/heroes"
p-filter-service="https://po-sample-api.onrender.com/v1/heroes"
p-label="Search a Hero"
[p-multiple]="true"
(p-change)="changeOptions($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export class SamplePoLookupMultipleService {

getHeroes(data): Observable<any> {
const values = data?.length ? data.toString() : data;
return this.http.get(`https://po-sample-api.fly.dev/v1/heroes?value=${values}`).pipe(pluck('items'));
return this.http.get(`https://po-sample-api.onrender.com/v1/heroes?value=${values}`).pipe(pluck('items'));
}
}
Loading

0 comments on commit ebcdfbb

Please sign in to comment.