Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 6eebfdf

Browse files
authored
1.6.0 (#248)
* #199 - move from rest to enterprise task-forms variables api (#234) * [ADF-684] added query parameter to retrieve related content for task and process (#235) * [ADF-684] Added optional parameter to filter proper related contents * Updated changelog, fixed documentation * [ADF-680] fixed default value parameter * [ADF-622] Complete TypeScript definitions for JS-API (#236) * new definition for core * move to node 8 * change log update * update typescript 2.4.0 * [ADF-793] The ability to retrieve a rendition's url from the content API (#238) * add getRenditionUrl method * [ADF-793] getRenditionUrl * CHANGELOG update * Update CHANGELOG.md * updating declarations (#239) * PathElementEntity md * fix constructor probpme d.ts * Fixing tslint error (#241) * add package-lock file * index.d.ts fix tslint (#242) * update typings * Added isRelatedContent option to create related content on process in… (#243) * Added isRelatedContent option to create related content on process instance * Fix error on createRelated content - added change to changelog * Update CHANGELOG.md * 1.6.0 (#247) * Update CHANGELOG.md
1 parent 4aa0876 commit 6eebfdf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+20169
-384
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "5.0.0"
3+
- "8.0.0"
44
before_install: npm install -g grunt-cli
55
install: npm install
66
sudo: false

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44

55
# Alfresco JS API
66

7+
<a name="1.6.0"></a>
8+
# [1.6.0](https://github.com/Alfresco/alfresco-js-api/releases/tag/1.6.0) (29-06-2017)
9+
## Fix
10+
- [Move /task-forms/{task-id}/variables from rest to enterprise](https://github.com/Alfresco/alfresco-js-api/issues/199)
11+
- [Added query param for get related contents](https://issues.alfresco.com/jira/browse/ADF-684)
12+
- [Added query param for create related contents on task and process instance](https://github.com/Alfresco/alfresco-js-api/issues/244)
13+
14+
## Features
15+
- [Complete TypeScript definitions for JS-API](https://github.com/Alfresco/alfresco-js-api/issues/228)
16+
- [Get rendition URL for a given nodeId from content API](https://github.com/Alfresco/alfresco-js-api/issues/237)
17+
718
<a name="1.5.0"></a>
819
# [1.5.0](https://github.com/Alfresco/alfresco-js-api/releases/tag/1.5.0) (25-05-2017)
920
## Features

definitions/alfresco-auth.yaml

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
swagger: '2.0'
2+
info:
3+
description: |
4+
**Authentication API**
5+
6+
Provides access to the authentication features of Alfresco Content Services.
7+
version: '1'
8+
title: Alfresco Content Services REST API
9+
basePath: /alfresco/api/-default-/public/authentication/versions/1
10+
securityDefinitions:
11+
basicAuth:
12+
type: basic
13+
description: HTTP Basic Authentication
14+
security:
15+
- basicAuth: []
16+
consumes:
17+
- application/json
18+
produces:
19+
- application/json
20+
paths:
21+
'/tickets':
22+
post:
23+
x-alfresco-since: "5.2"
24+
tags:
25+
- authentication
26+
summary: Create ticket (login)
27+
description: |
28+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions.
29+
30+
Logs in and returns the new authentication ticket.
31+
32+
The userId and password properties are mandatory in the request body. For example:
33+
```JSON
34+
{
35+
"userId": "jbloggs",
36+
"password": "password"
37+
}
38+
```
39+
To use the ticket in future requests you should pass it in the request header.
40+
For example using Javascript:
41+
```Javascript
42+
request.setRequestHeader ("Authorization", "Basic " + btoa(ticket));
43+
```
44+
operationId: createTicket
45+
parameters:
46+
- in: body
47+
name: ticketBodyCreate
48+
description: The user credential.
49+
required: true
50+
schema:
51+
$ref: '#/definitions/TicketBody'
52+
consumes:
53+
- application/json
54+
produces:
55+
- application/json
56+
responses:
57+
'201':
58+
description: Successful response
59+
schema:
60+
$ref: '#/definitions/TicketEntry'
61+
'400':
62+
description: |
63+
**userId** or **password** is not provided
64+
'403':
65+
description: Login failed
66+
default:
67+
description: Unexpected error
68+
schema:
69+
$ref: '#/definitions/Error'
70+
'/tickets/-me-':
71+
get:
72+
x-alfresco-since: "5.2"
73+
tags:
74+
- authentication
75+
summary: Validate ticket
76+
description: |
77+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions.
78+
79+
Validates the specified ticket (derived from Authorization header) is still valid.
80+
81+
For example, you can pass the Authorization request header using Javascript:
82+
```Javascript
83+
request.setRequestHeader ("Authorization", "Basic " + btoa(ticket));
84+
```
85+
operationId: validateTicket
86+
produces:
87+
- application/json
88+
responses:
89+
'200':
90+
description: Successful response
91+
schema:
92+
$ref: '#/definitions/ValidTicketEntry'
93+
'400':
94+
description: URL path does not include **-me-** or the ticket is not provided by the Authorization header
95+
'401':
96+
description: Authentication failed
97+
'404':
98+
description: The request is authorized correctly but the status of the user (of the supplied ticket) has
99+
changed (for example, the user is locked or the account is disabled) or the ticket has expired
100+
default:
101+
description: Unexpected error
102+
schema:
103+
$ref: '#/definitions/Error'
104+
delete:
105+
x-alfresco-since: "5.2"
106+
tags:
107+
- authentication
108+
summary: Delete ticket (logout)
109+
description: |
110+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions.
111+
112+
Deletes logged in ticket (logout).
113+
operationId: deleteTicket
114+
responses:
115+
'204':
116+
description: Successful response
117+
'400':
118+
description: URL path does not include **-me-** or the ticket is not provided by the Authorization header
119+
'404':
120+
description: Status of the user has changed (for example, the user is locked or the account is disabled) or the ticket has expired
121+
default:
122+
description: Unexpected error
123+
schema:
124+
$ref: '#/definitions/Error'
125+
definitions:
126+
Error:
127+
type: object
128+
required:
129+
- error
130+
properties:
131+
error:
132+
type: object
133+
required:
134+
- statusCode
135+
- briefSummary
136+
- stackTrace
137+
- descriptionURL
138+
properties:
139+
errorKey:
140+
type: string
141+
statusCode:
142+
type: integer
143+
format: int32
144+
briefSummary:
145+
type: string
146+
stackTrace:
147+
type: string
148+
descriptionURL:
149+
type: string
150+
logId:
151+
type: string
152+
TicketBody:
153+
type: object
154+
properties:
155+
userId:
156+
type: string
157+
password:
158+
type: string
159+
TicketEntry:
160+
type: object
161+
required:
162+
- entry
163+
properties:
164+
entry:
165+
$ref: '#/definitions/Ticket'
166+
Ticket:
167+
type: object
168+
properties:
169+
id:
170+
type: string
171+
userId:
172+
type: string
173+
ValidTicketEntry:
174+
type: object
175+
required:
176+
- entry
177+
properties:
178+
entry:
179+
$ref: '#/definitions/ValidTicket'
180+
ValidTicket:
181+
type: object
182+
properties:
183+
id:
184+
type: string

0 commit comments

Comments
 (0)