-
Notifications
You must be signed in to change notification settings - Fork 3
WIP: update docs content #9
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
Open
ArtemisLav
wants to merge
4
commits into
cernanalysispreservation:master
Choose a base branch
from
ArtemisLav:content-validation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,12 +1,26 @@ | ||
# CAP API Documentation OpenAPI Specification | ||
|
||
## Working on specification | ||
### Install | ||
|
||
# CERN Analysis Preservation REST API Documentation | ||
|
||
### About | ||
---- | ||
This is the documentation behind the REST API for [CERN Analysis Preservation](https://analysispreservation.cern.ch/). | ||
|
||
Other documentation: | ||
- [CERN Analysis Preservation Docs](https://analysispreservation.cern.ch/docs/general/) | ||
- [CERN Analysis Preservation Client](https://analysispreservation.cern.ch/docs/cli/) | ||
|
||
If you need help or have a question about the API Documentation, please contact us via our [email]([email protected]). | ||
|
||
# OpenAPI Specification | ||
|
||
### Install | ||
--- | ||
1. Install [Node JS](https://nodejs.org/) | ||
2. Clone repo and run `npm install` in the repo root | ||
|
||
### Usage | ||
--- | ||
|
||
#### `npm start` | ||
Starts the development server. | ||
|
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
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 |
---|---|---|
|
@@ -2,26 +2,24 @@ openapi: 3.0.0 | |
info: | ||
version: 1.0.0 | ||
title: CERN Analysis Preservation REST API | ||
termsOfService: 'https://analysispreservation.cern.ch/terms/' | ||
contact: | ||
email: [email protected] | ||
url: 'https://analysispreservation.cern.ch/about' | ||
license: | ||
name: Apache 2.0 | ||
url: 'http://www.apache.org/licenses/LICENSE-2.0.html' | ||
url: 'https://analysispreservation.cern.ch' | ||
x-logo: | ||
url: >- | ||
https://github.com/cernanalysispreservation/cap-api-docs/raw/master/web/CAP_API_docs.png | ||
description: > | ||
|
||
CERN Analysis Preservation (CAP) is a service developed at the European Organization for Nuclear Research (CERN) to support researchers in preserving and documenting the various components of their physics analyses, so that they are reusable and understandable in the future. | ||
|
||
CERN Analysis Preservation offers a REST API to access the service | ||
independently from the web interface. This allows users to automate specific | ||
tasks or create their own data interface, using simple HTTP calls. | ||
|
||
|
||
# Introduction | ||
|
||
CERN Analysis Preservation provides a RESTful API, built on HTTP. It tries | ||
to provide a predictable interface, that includes: | ||
CERN Analysis Preservation provides a RESTful API, built on HTTP. It provides a predictable interface, that includes: | ||
|
||
* resource URLs, | ||
|
||
|
@@ -33,8 +31,8 @@ info: | |
You can use your favorite HTTP/REST library for your programming language to | ||
use CAP's API, or you can use one of our SDKs (CLI clients), currently | ||
available in Python. Every action from our app is implemented using REST | ||
endpoints, all of which are documented and available, in order to bea easily | ||
accessible for automations and integrations into specific workflowsor | ||
endpoints, all of which are documented and available, in order to be easily | ||
accessible for automations and integrations into specific workflows or | ||
data-related apps. | ||
|
||
|
||
|
@@ -54,21 +52,21 @@ info: | |
|
||
<!-- ReDoc-Inject: <security-definitions> --> | ||
externalDocs: | ||
description: Click here if you are looking for our developement documentation. | ||
url: 'https://cernanalysispreservation.readthedocs.io' | ||
description: Click here if you are looking for our general documentation. | ||
url: 'https://analysispreservation.cern.ch/docs/general/' | ||
tags: | ||
- name: Deposits | ||
description: The Deposit resource is used for uploading and editing records on CAP | ||
description: The Deposit resource is used for uploading and editing records on CAP. | ||
- name: Records | ||
description: > | ||
The Record resource is used for fetching and searching published records | ||
on CAP. Create deposit | ||
- name: Files | ||
description: > | ||
The Files resource is used for uploading files and attach them to | ||
records/deposits | ||
The Files resource is used for uploading files and attachinging them to | ||
records/deposits. | ||
|
||
The following type of upload are possible: | ||
The following types of uploads are possible: | ||
* Local files | ||
* Git repos | ||
* URL linked files | ||
|
@@ -81,7 +79,7 @@ tags: | |
- name: Services | ||
description: Operations about services | ||
- name: User | ||
description: Operations about user | ||
description: Operations about users | ||
security: | ||
- Access Token: [] | ||
servers: | ||
|
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to have some more verbose descriptions under as there are in the above sections, e.g Files: