/sample-swagger-js-generated

sample generated js api from swagger docs via compojure-api

Primary LanguageJavaScriptApache License 2.0Apache-2.0

nowthis-server-cljs

NowthisServerCljs - JavaScript client for nowthis-server-cljs Compojure Api example This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.0.1
  • Package version: 0.0.1
  • Build date: 2016-06-07T22:04:17.935Z
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

Installation

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install nowthis-server-cljs --save

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/nowthis-server-cljs then install it via:

    npm install YOUR_USERNAME/nowthis-server-cljs --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var NowthisServerCljs = require('nowthis-server-cljs');

var api = new NowthisServerCljs.CommandsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.commandsResetDbPost(callback);

Documentation for API Endpoints

All URIs are relative to https://localhost/

Class Method HTTP request Description
NowthisServerCljs.CommandsApi commandsResetDbPost POST /commands/reset-db Resets and initializes the database
NowthisServerCljs.PitchesApi commandsApprovePitchPost POST /commands/approve_pitch Approve a pitch
NowthisServerCljs.PitchesApi commandsAssignPitchAsProjectPost POST /commands/assign_pitch_as_project Assigns a pitch to a team or user as a project
NowthisServerCljs.PitchesApi commandsCreatePitchPost POST /commands/create_pitch Adds a pitch to the db
NowthisServerCljs.PitchesApi commandsDeletePitchPost POST /commands/delete_pitch Removes a pitch from the db
NowthisServerCljs.PitchesApi commandsModifyPitchContentPost POST /commands/modify_pitch_content Modified a pitch's content
NowthisServerCljs.PitchesApi commandsRejectPitchPost POST /commands/reject_pitch Reject a pitch
NowthisServerCljs.PitchesApi commandsSubmitPitchPost POST /commands/submit_pitch Submit a pitch
NowthisServerCljs.PitchesApi queriesDetailedPitchesGet GET /queries/detailed-pitches Returns pitch details
NowthisServerCljs.PitchesApi queriesPitchOfProjectGet GET /queries/pitch-of-project Returns the pitch that a project was created from
NowthisServerCljs.PitchesApi queriesPitchesGet GET /queries/pitches Returns pitches
NowthisServerCljs.ProjectsApi commandsAcceptProjectAssignmentPost POST /commands/accept-project-assignment Acecept a project assignment
NowthisServerCljs.ProjectsApi commandsApproveProjectPost POST /commands/approve_project Approve a project
NowthisServerCljs.ProjectsApi commandsCreateProjectPost POST /commands/create_project Adds a project to the db
NowthisServerCljs.ProjectsApi commandsModifyProjectContentPost POST /commands/modify-project-content Modified a project's content
NowthisServerCljs.ProjectsApi commandsRejectProjectPost POST /commands/reject_project Reject a project
NowthisServerCljs.ProjectsApi commandsStartProjectPost POST /commands/start-project Start working on a project
NowthisServerCljs.ProjectsApi commandsSubmitProjectPost POST /commands/submit_project Submit a project
NowthisServerCljs.ProjectsApi queriesDetailedProjectsGet GET /queries/detailed-projects Returns project details
NowthisServerCljs.ProjectsApi queriesProjectsGet GET /queries/projects Returns projects
NowthisServerCljs.RenditionsApi queriesRenditionsGet GET /queries/renditions Returns renditions for a project
NowthisServerCljs.TeamsApi queriesTeamsGet GET /queries/teams Returns teams
NowthisServerCljs.UsersApi queriesUsersGet GET /queries/users Returns users

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

sample-swagger-js-generated