Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main branch into staging #407

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
17c46fc
fix: Add `integer` value to metadata template response (#344)
bszwarc Aug 10, 2023
2eb4b35
fix: DDOC-871: add info on params for mappings (#343)
bszwarc Aug 11, 2023
739416b
feat: DDOC-855 add iframeable_embed_url param to box sign request (#340)
bszwarc Aug 17, 2023
e2b4e45
docs: Storage policies: endpoints only accessible by admin (#330)
superojla Aug 21, 2023
370834b
feat: DDOC-880 Modify readme and add tags descriptions (#349)
bszwarc Aug 31, 2023
d897215
feat: update webpack-dev-server and node scripts
wsocha Sep 1, 2023
9309c62
feat: add compiled openapi.json to main root directory
wsocha Sep 4, 2023
ab7a106
revert: update webpack-dev-server and node scripts
wsocha Sep 4, 2023
eeb9803
fix: collaboration_allowlist_exempt_target definition (#352)
mhagmajer Sep 5, 2023
3992dcf
Set correct response type on folder_metadata__get_folders_id_metadata…
mhagmajer Sep 5, 2023
e5aff8e
Make id required in user--base.yml (#348)
mhagmajer Sep 5, 2023
d1763b5
feat: update webpack-dev-server and node scripts (#354)
wsocha Sep 6, 2023
36a3df4
feat: Add type field to sign template (#355)
congminh1254 Sep 6, 2023
670b89d
feat: Update sign template signer input (#356)
congminh1254 Sep 6, 2023
33a46e0
fix: mark type as required in search results (#357)
mhagmajer Sep 14, 2023
a74343f
feat: add docs issue template (#358)
wsocha Sep 15, 2023
1a75442
fix: change description of two fields in docs issue template (#360)
wsocha Sep 18, 2023
0613fdd
fix: change docs issue template name (#362)
wsocha Sep 18, 2023
bdbd7cd
fix: change marker from long to string (#359)
mwwoda Sep 19, 2023
c32796a
feat: add issue config (#363)
wsocha Sep 21, 2023
4df721b
fix: change `accessible_by` in Collaboration to allow setting `Group-…
arjankowski Sep 22, 2023
99a5aae
feat: pull specification from public api (#367)
box-apimgmt Sep 29, 2023
572f1b7
fix: Revert "feat: pull specification from public api (#367)" (#368)
wsocha Sep 29, 2023
a214b7f
DDOC-909: add additional_info param (#369)
bszwarc Oct 5, 2023
45198b0
DDOC-508: add is_access_only param for collabs (#370)
bszwarc Oct 6, 2023
ae1eb99
feat: run codegen generate command to validate API spec (#372)
wsocha Oct 13, 2023
563b6f7
feat: pull api specification from public-api (#373)
box-apimgmt Oct 16, 2023
b3f3969
feat: remove references to content folder (#365)
wsocha Oct 16, 2023
e128587
fix: Fix zip download enum (#376)
box-apimgmt Oct 27, 2023
11c9935
fix: Update file request required fields (#377)
box-apimgmt Oct 31, 2023
e8f8f57
fix: Fix classification schemas (#378)
box-apimgmt Nov 16, 2023
4a05323
fix: Update invites required fields (#379)
box-apimgmt Nov 17, 2023
80102bd
fix: Remove Classification Deletion API, update `additionalProperties…
box-apimgmt Nov 21, 2023
c674d86
fix: change metadata cascade policy scope to string (#381)
box-apimgmt Nov 23, 2023
6492931
fix: Update type to string in next_marker and prev_marker fields (#383)
box-apimgmt Nov 27, 2023
987d0be
fix: Update FolderLocks response (#384)
box-apimgmt Nov 28, 2023
98f5191
fix: Remove recipient groups param from spec (#385)
box-apimgmt Nov 28, 2023
8496c0a
fix: Update required field RetentionPolicyAssignment (#387)
box-apimgmt Dec 5, 2023
6807299
fix: Fix schemas for updating classification on a file and folder (#388)
box-apimgmt Dec 7, 2023
49e65bc
feat: add recipient groups api (#389)
box-apimgmt Jan 3, 2024
7aa13db
fix: Update terms of services response (#391)
box-apimgmt Jan 3, 2024
0a29c66
fix: Update storage policy assignments (#394)
box-apimgmt Jan 17, 2024
3092847
Revert "fix: Update storage policy assignments (#394)" (#395)
wsocha Jan 17, 2024
541057a
fix: Update storage policy assignments (#396)
box-apimgmt Jan 17, 2024
054c0c3
fix: Update terms of service user statuses required fields (#397)
box-apimgmt Feb 2, 2024
bedbbd8
fix: remove EOL'd metadata indices endpoint, update public docs (#398)
box-apimgmt Feb 20, 2024
a41a4d3
feat: add read-only params to sign templates (#400)
box-apimgmt Feb 23, 2024
fa28e27
feat: add a Generic Event Resource (#401)
box-apimgmt Feb 27, 2024
b292856
chore: add missing items to .alexrc.json (#406)
wsocha Mar 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file removed -
Empty file.
4 changes: 3 additions & 1 deletion .alexrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"allow": [
"color",
"colors"
"colors",
"stroke",
"strokes"
]
}
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Box Developer Community
url: https://forum.box.com
about: Before creating an issue, I have searched the Box Developer Community and my issue isn't already reported there.
- name: Issues
url: https://github.com/box/box-openapi/issues
about: Before creating an issue, I have searched Issues in this repository and my issue isn't already reported there.
- name: API Reference
url: https://developer.box.com/reference
about: Before creating an issue, I have checked that the API documentation doesn't solve my issue.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: API documentation feedback
description: Provide feedback on API documentation
labels: ["documentation"]
body:
- type: textarea
attributes:
label: Description of the issue
description: Describe what you discovered and explain why it is an issue.
validations:
required: true
- type: textarea
attributes:
label: Current content
description: What does the specification currently say?
validations:
required: false
- type: textarea
attributes:
label: Expected content
description: What should the specification say instead?
validations:
required: false
- type: input
id: url
attributes:
label: Link to the documentation page
validations:
required: false
- type: markdown
attributes:
value: "Thanks for completing our form!"
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/mistake.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Description

Please include a summary of the change and which issue is fixed.
Please include a summary of the change and which issue is fixed.

If you are a Boxer, please also reference the related `DDOC` or `APIWG` tickets.
If you do not have a related `Jira` ticket and this is more than a bug fix, then
Expand Down
43 changes: 19 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
run: |
yarn install

- name: Lint the content
- name: Lint API specification and markdown
run: |
yarn lint

Expand All @@ -73,36 +73,37 @@ jobs:
needs:
- lint

# The following steps are performed for each lint job
# The following steps are performed for each job
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Compile the content
- name: Build content
run: |
yarn install
yarn build
yarn build:spec
yarn build:content
yarn build:swagger

- name: Push compiled content
- name: Push API specification
uses: s0/[email protected]
env:
REPO: self
BRANCH: en
FOLDER: compiled/openapi
FOLDER: compiled/spec
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push GH pages for redundancy
uses: s0/[email protected]
env:
REPO: self
BRANCH: gh-pages
FOLDER: compiled/openapi
FOLDER: compiled/content
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push Swagger 2.0 backport
Expand Down Expand Up @@ -168,7 +169,7 @@ jobs:
needs:
- lint

# The following steps are performed for each lint job
# The following steps are performed for each job
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand All @@ -178,17 +179,17 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Compile the content
- name: Build content
run: |
yarn install
yarn build
yarn build:spec

- name: Push compiled content
- name: Push API specification
uses: s0/[email protected]
env:
REPO: self
BRANCH: en-staging
FOLDER: compiled/openapi
FOLDER: compiled/spec
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Trigger Netlify deployment"
Expand All @@ -215,31 +216,25 @@ jobs:
SLACK_AVATAR: "https://avatars3.githubusercontent.com/u/8659759?s=200&v=4"
with:
args: "Error running `deploy-staging` job in OpenAPI CI"

# Build the OpenAPI spec and validate using Codegen
validate-spec:
name: Validate OpenAPI spec using Codegen
# We run this on the latest ubuntu
runs-on: ubuntu-latest

# The following steps are performed for each lint job
# The following steps are performed for each job
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
path: box-openapi

- name: Set up Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Compile the content
run: |
cd $GITHUB_WORKSPACE/box-openapi
yarn install
yarn build

- name: Check out the Codegen repo
uses: actions/checkout@v3
with:
Expand All @@ -254,5 +249,5 @@ jobs:
npm install
cd scripts
npm install
cp $GITHUB_WORKSPACE/box-openapi/compiled/openapi/openapi.json .
npm run validate ./openapi.json
cp $GITHUB_WORKSPACE/box-openapi/openapi.json .
npm run generate ./openapi.json output typescript,swift,python,c#
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ src/dev/scripts/objects/*
src/dev/index.build.js
migrate.js
compiled
yarn-error.log

#Intelij Idea
*.iml
Expand Down
4 changes: 3 additions & 1 deletion .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ period
uri
url
dropdown
special
special
org
GitHub
31 changes: 12 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Box OpenAPI 3.0 Specification

<!-- markdownlint-disable line-length -->
![CI](https://github.com/box/box-openapi/workflows/CI/badge.svg) [![Project Status](https://opensource.box.com/badges/active.svg)](http://opensource.box.com/badges)

This repository contains the build system for the Box OpenAPI 3.0 Specification
(OAS3) of the
[Box Platform API](https://developers.box.com/).
This repository contains the build system for the Box OpenAPI 3.0 Specification (OAS3) of the [Box Platform API](https://developers.box.com/).

> **Note**: Due to changes in API schema development process, this repository is currently frozen. This means we are not actively contributing to the repository, apart from necessary fixes and improvements that help us to put the new process in place even faster.
You can still use the raw sources for specification available in the **Download** section.

## Downloads

Expand All @@ -13,30 +15,20 @@ specification. For a combined, resolved version please have a look at the
following builds.

[![OpenAPI (en)](https://img.shields.io/static/v1.svg?label=OpenAPI%203&message=Download&color=grey&labelColor=0361D4&style=for-the-badge&logoColor=white)](https://raw.githubusercontent.com/box/box-openapi/en/openapi.json)
[![OpenAPI (en)](https://img.shields.io/static/v1.svg?label=OpenAPI%203&message=ダウンロード&color=grey&labelColor=0361D4&style=for-the-badge&logoColor=white)](https://raw.githubusercontent.com/box/box-openapi/jp/openapi.json)
[![OpenAPI (jp)](https://img.shields.io/static/v1.svg?label=OpenAPI%203&message=ダウンロード&color=grey&labelColor=0361D4&style=for-the-badge&logoColor=white)](https://raw.githubusercontent.com/box/box-openapi/jp/openapi.json)

[![Swagger (en)](https://img.shields.io/static/v1.svg?label=Swagger%202&message=Backported&color=grey&labelColor=0361D4&style=for-the-badge)](https://github.com/box/box-openapi/tree/swagger-2.0)
[![Swagger (en)](https://img.shields.io/static/v1.svg?label=Swagger%202&message=Legacy%20/%20Incomplete&color=grey&labelColor=lightgrey&style=for-the-badge)](https://github.com/box/box-openapi/tree/legacy-swagger-2.0/v2.0)
[![Swagger (jp)](https://img.shields.io/static/v1.svg?label=Swagger%202&message=Legacy%20/%20Incomplete&color=grey&labelColor=lightgrey&style=for-the-badge)](https://github.com/box/box-openapi/tree/legacy-swagger-2.0/v2.0)

## Swagger 2.0

The older and incomplete Swagger 2.0 specification is still available on the
[Swagger 2.0](https://github.com/box/box-openapi/tree/swagger_2.0) branch.

## Development & Contribution
[Swagger 2.0](https://github.com/box/box-openapi/tree/legacy-swagger-2.0/v2.0) branch.

Please follow the [contribution guidelines](./CONTRIBUTING.md) when contributing
to the source of this project.
## Contribution

1. [Installation & setup](./docs/index.md)
1. [Notes for Box employees](./docs/boxers.md)
1. [The OpenAPI structure and custom attributes](./docs/structure.md)
1. [Adding a new API resource](./docs/add-resource.md)
1. [Base, mini, standard, and full API resources](./docs/variants.md)
1. [Adding a new API endpoint](./docs/add-endpoint.md)
1. [Contributing a pull request](./docs/pull-request.md)
1. [Markdown styleguide](./docs/markdown.md)
1. [Updating dependencies](./docs/dependencies.md)
* If you notice that the content requires improvements or you feel that some information is missing add a new [GitHub issue](https://github.com/box/box-openapi/issues) and describe the issue.
* If you are a Boxer, create a Developer Documentation ticket or use the `#dev-docs-feedback` Slack channel for assistance.

## Usage & License

Expand All @@ -50,3 +42,4 @@ Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
<!-- markdownlint-enable line-length -->
37 changes: 0 additions & 37 deletions content/attributes/access_token--embedded.yml

This file was deleted.

38 changes: 0 additions & 38 deletions content/attributes/access_token--skill_invocation.yml

This file was deleted.

Loading
Loading