-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #334 from JarvusInnovations/develop
Release: v1.20.0
- Loading branch information
Showing
40 changed files
with
1,007 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
openapi: 3.0.1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Accept | ||
in: header | ||
description: Desired MIME type for response body | ||
schema: | ||
type: string | ||
enum: | ||
- text/html | ||
- application/json | ||
- text/csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: dir | ||
in: query | ||
description: Used with the `sort` parameter to set the direction to order | ||
schema: | ||
type: string | ||
enum: | ||
- ASC | ||
- DESC |
11 changes: 6 additions & 5 deletions
11
api-docs/parameters/format.yml → api-docs/components/parameters/format.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
name: format | ||
in: query | ||
description: Desired file format for response body | ||
type: string | ||
enum: | ||
- html | ||
- json | ||
- csv | ||
schema: | ||
type: string | ||
enum: | ||
- html | ||
- json | ||
- csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: identifier | ||
in: path | ||
description: Unique numeric `ID` or string `Handle` identifier for a record | ||
required: true | ||
schema: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: include | ||
in: query | ||
description: Name(s) of related objects to embed in response. Pass `*` to include | ||
all available related objects. Nested objects may be requested using dot notation, | ||
e.g. `include=Creator.Modifier` | ||
style: form | ||
explode: false | ||
schema: | ||
type: array | ||
items: | ||
type: string |
8 changes: 5 additions & 3 deletions
8
api-docs/parameters/limit.yml → api-docs/components/parameters/limit.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
name: limit | ||
in: query | ||
type: integer | ||
default: 48 | ||
description: Maximum number of records to return in each response. 0 to disable limiting | ||
description: Maximum number of records to return in each response. 0 to disable | ||
limiting | ||
schema: | ||
type: integer | ||
default: 48 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: offset | ||
in: query | ||
description: Number of records to skip for current page | ||
schema: | ||
type: integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: q | ||
in: query | ||
description: Keyword search query | ||
schema: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: relatedTable | ||
in: query | ||
description: Provide the names of one or more direct relationship of the requested records | ||
and a consolidated array of all unique related records will be returned on the side. Each | ||
array will be returned in a property matching the name of the relationship under the | ||
top-level property `related` | ||
style: form | ||
explode: false | ||
schema: | ||
type: array | ||
items: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: sort | ||
in: query | ||
description: The name of a `sorter` or field declared on the record model | ||
to order results with | ||
schema: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
x-activeRecord: Session |
3 changes: 2 additions & 1 deletion
3
api-docs/definitions/SessionResponse.yml → ...s/components/schemas/SessionResponse.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
type: object | ||
properties: | ||
success: | ||
type: boolean | ||
data: | ||
$ref: '#/definitions/Session' | ||
$ref: '#/components/schemas/Session' | ||
returnURL: | ||
type: string | ||
description: URL that user should be sent to after login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type: apiKey | ||
description: Session token prefixed with Token, e.g. `Token XXXXXXXXXXXXXXXXXXXXXX` | ||
name: Authorization | ||
in: header |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
x-recordsRequestHandler: Emergence\CMS\BlogRequestHandler | ||
get: | ||
parameters: | ||
- name: AuthorID | ||
in: query | ||
description: The `ID` of a person the match blog post authors to | ||
schema: | ||
type: integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
x-recordsRequestHandler: Emergence\Comments\CommentsRequestHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
x-recordsRequestHandler: Emergence\CMS\ContentBlocksRequestHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
x-recordsRequestHandler: Emergence\People\Groups\GroupsRequestHandler | ||
get: | ||
parameters: | ||
- name: parentGroup | ||
in: query | ||
description: The ID of a parent group to filter groups to, or nothing to get all | ||
top-level groups. To retrieve all groups regardless of hierarchy, pass `parentGroup=any` | ||
schema: | ||
oneOf: | ||
- type: string | ||
enum: | ||
- any | ||
- type: integer | ||
default: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
post: | ||
tags: | ||
- Session | ||
summary: Create a new session | ||
security: [] | ||
parameters: | ||
- $ref: '#/components/parameters/include' | ||
- $ref: '#/components/parameters/format' | ||
- $ref: '#/components/parameters/accept' | ||
requestBody: | ||
required: true | ||
content: | ||
application/x-www-form-urlencoded: | ||
schema: | ||
type: object | ||
required: | ||
- _LOGIN[password] | ||
- _LOGIN[username] | ||
properties: | ||
_LOGIN[username]: | ||
type: string | ||
_LOGIN[password]: | ||
type: string | ||
format: password | ||
_LOGIN[returnMethod]: | ||
type: string | ||
description: Set to `POST` to return session in response to POST | ||
request instead of redirecting to post-login URL | ||
default: POST | ||
enum: | ||
- GET | ||
- POST | ||
responses: | ||
200: | ||
description: Login credentials accepted, session created | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/SessionResponse' | ||
401: | ||
description: Username or password invalid | ||
get: | ||
tags: | ||
- Session | ||
summary: Get current Session | ||
parameters: | ||
- $ref: '#/components/parameters/include' | ||
- $ref: '#/components/parameters/format' | ||
- $ref: '#/components/parameters/accept' | ||
responses: | ||
200: | ||
description: Session found | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/SessionResponse' | ||
401: | ||
description: Sesson not provided, not valid, or expired |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
x-recordsRequestHandler: Emergence\CMS\PagesRequestHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
x-recordsRequestHandler: PeopleRequestHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
x-recordsRequestHandler: TagsRequestHandler | ||
get: | ||
parameters: | ||
- name: prefix | ||
in: query | ||
description: A handle prefix to match tags against, e.g. `tech` matches `tech.javascript` | ||
schema: | ||
type: string |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- SessionToken: [] |
Oops, something went wrong.