Giter Site home page Giter Site logo

developer.osf.io-old's Introduction

OSF API Documentation

The Open API specification and source code for the documenting the Open Science Framework API lives here.

For development:

  • yarn install
  • yarn run build (to build a new distribution under the dist/ folder)
  • yarn run serve (to serve the built result at localhost:8090) note: to change the port, update the connect gulp task in gulpfile.js

Spec Validation

  • yarn global add swagger-cli
  • swagger validate swagger.yaml (bundles and validates the given specification against the OpenAPI 2.0 schema and spec)
  • swagger bundle -o <output_file_name> swagger.yaml (bundles a multi-file specification into a single JSON file)

OpenAPI Specification

  • The openapi specification for the OSF API lives in swagger-spec/swagger.yaml and contains references to many YAML files in the swagger-spec directory.

    Editing the OpenAPI Specification
    • As a general rule, the swagger.yaml file should be kept as minimal as possible, meaning $refs to other YAML files should be utilized over inline endpoint and model definitions.
    • Each collection of related endpoints is contained in it's own folder in the swagger-spec directory (i.e. swagger-spec/preprints/), with each unique API endpoint having it's own YAML file (i.e. detail.yaml and list.yaml for /preprints/ and /preprints/{preprint_id}/, respectively).
    • The specification should always conform to the official OpenAPI specification (v2.0), described in detail here.

developer.osf.io-old's People

Contributors

alexschiller avatar arjunballa avatar ayush avatar brianjgeiger avatar caseyrollins avatar chirino avatar dmyers avatar erinspace avatar fabmiz avatar faresd avatar fehguy avatar gengen1988 avatar jensoleg avatar jlorieux-systran avatar kylejginavan avatar mattclark avatar matthurne avatar mechazawa avatar mohsen1 avatar pdegeus avatar pose avatar rintcius avatar rpidikiti avatar spil-johan avatar stefanotravelli avatar strml avatar tillig avatar webron avatar whitlockjc avatar zeke avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.