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

feat: pull changes from main branch into staging #374

Merged
merged 30 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 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
4b4306d
Merge branch 'main' into APIMGMT-134-staging
wsocha Oct 16, 2023
18d14ab
fix: update readme
wsocha Oct 16, 2023
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.
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!"
21 changes: 0 additions & 21 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
52 changes: 24 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
lint:
# We run this on the latest ubuntu
runs-on: ubuntu-latest
timeout-minutes: 20
timeout-minutes: 10

# We use node 14 and Python 3.8
strategy:
matrix:
Expand All @@ -34,7 +35,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -52,7 +53,7 @@ jobs:
run: |
yarn install

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

Expand All @@ -61,7 +62,7 @@ jobs:
# We run this on the latest ubuntu
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
timeout-minutes: 20
timeout-minutes: 10

# We use node 14.X
strategy:
Expand All @@ -72,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/git-publish-subdir-action@v2.4.0
env:
REPO: self
BRANCH: en
FOLDER: compiled/openapi
FOLDER: compiled/spec
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push GH pages for redundancy
uses: s0/git-publish-subdir-action@v2.4.0
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 @@ -156,7 +158,7 @@ jobs:
# We run this on the latest ubuntu
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/staging'
timeout-minutes: 20
timeout-minutes: 10

# We use node 14.X
strategy:
Expand All @@ -167,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 @@ -177,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/git-publish-subdir-action@v2.4.0
env:
REPO: self
BRANCH: en-staging
FOLDER: compiled/openapi
FOLDER: compiled/spec
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Trigger Netlify deployment"
Expand All @@ -214,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 @@ -253,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
3 changes: 2 additions & 1 deletion .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ uri
url
dropdown
special
org
org
GitHub
28 changes: 9 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# 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/).

## Downloads

Expand All @@ -13,30 +12,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.
[Swagger 2.0](https://github.com/box/box-openapi/tree/legacy-swagger-2.0/v2.0) branch.

## Development & Contribution
## Contribution

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

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 +39,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.

Loading