fix raml format

fix raml format

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Jumpscale/jscockpit.git/'


Added api.raml

Added api.raml

#%RAML 1.0
title: JapJeteAPI
version: v1
baseUri: http://52.59.251.182/api{version}
mediaType: application/json
/user:
  /{id}:
    put:
      description: |
        Update User Details
      headers:
       Authorization:
         description:
             Authorization Token
         type: string
      body:
        application/json:
          schema: |
            {
                "user_name": {"type": "string"},
                "email": {"type": "string"},
                "phone_number": {"type": "string"},
                "address": {"type": "string"},
                "group": {"type": "string"}
            }
      responses:
        204:
            description: |
                Succesfully updated the resource:
  /photo:
      put:
        description: |
          Update User Photo
        headers:
         Authorization:
           description:
               Authorization Token
           type: string
        body:
          multipart/form-data:
            schema:
              file
        responses:
          204:
              description: |
                  Succesfully updated the resource:

error: pathspec 'api.raml' did not match any file(s) known to git


update API specification

update API specification


Add first api definition file.

Add first api definition file.

#%RAML 1.0
title: knowledgebase version: v0.1 types:
  File:
    type: object
    properties:
      type: string
      name: string
      url: string
  Author:
    type: object
    properties:
      name: string
      email: string
  Article:
    type: object
    properties:
      id: number
      author:
        type: Author
        required: true
      lastChangedBy: Author
      lastChanged: date-only
      title:
        type: string
        required: true
      text:
        type: string
        required: true
      files:
        type: array
        items: File /article:
  get:
    queryParameters:
      q:
        description: receive all articles that contain q
    responses:
      200:
        body:
          application/json:
            type: array
            items: Article
            example: |
              [
                {
                  "id": 1,
                  "author":
                  {
                    "name": "Max Mustermann",
                    "email": "max@mustermann.com"
                  },
                  "lastChangedBy":
                  {
                    "name": "Martin Mustermann",
                    "email": "martin@mustermann.com"
                  },
                  "lastChanged": "2016-05-15",
                  "title": "Knowledge",
                  "text": "This is some important Knowledge",
                  "files":
                  [
                    {
                      "type": "pdf",
                      "name": "some knowledge",
                      "url": "/this/is/some knowledge.pdf"
                    }
                  ]
                }
              ]
      404:
        body:
          application/json:
            type: object
            example: {}
  post:
    body:
      application/json:
        type: Article
    responses:
      200:
        body:
          application/json:
            type: Article
  /{articleId}:
    get:
      responses:
        200:
          body:
            application/json:
              type: Article
              example: |
                {
                  "id": 1,
                  "author":
                  {
                    "name": "Max Mustermann",
                    "email": "max@mustermann.com"
                  },
                  "lastChangedBy":
                  {
                    "name": "Martin Mustermann",
                    "email": "martin@mustermann.com"
                  },
                  "lastChanged": "2016-05-15",
                  "title": "Knowledge",
                  "text": "This is some important Knowledge",
                  "files":
                  [
                    {
                      "type": "pdf",
                      "name": "some knowledge",
                      "url": "/this/is/some knowledge.pdf"
                    }
                  ]
                }
        404:
          body:
            application/json:
              type: object
              example: {}
    put:

error: pathspec 'development/server/server.raml' did not match any file(s) known to git


bump proxy API version back to v3

bump proxy API version back to v3

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/AppGyver/supersonic.git/'


Fix raml

Fix raml

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/itsyouonline/identityserver.git/'


Update raml specification to be compatible with go-raml generation tool

Geems go-raml still doesn't support inline type declaration
in request and response body, so I created the missing type

fatal: unable to access 'https://github.com/itsyouonline/identityserver.git/': The requested URL returned error: 403


Update raml specification to be compatible with go-raml


Add organizations spec

Add organizations spec

+ Note: Sub-orgs are not yet finalized.

#%RAML 1.0
title: ItsYouOnline
version: 0.1
baseUri: /

types:
  organization:
    properties:
      globalid:
        type: string
      dns:
        type: string[]
        description: List of organization DNS.
      owners:
        type: string[]
        description: List of users `usernames`.
      members:
        type: string[]
        description: List of users who are member in this organization.
      includes:
        type: string[]
        description: globalId of sub organizations

    example:
      globalid: greenitglobe
      dns:
        - greenitglobe.com
      owners:
        - user1
        - user2
        - user3
      members:
        - user4
      includes:
        - admin.greenitglobe.com

  member:
    properties:
      username:
        type: string
        description: Used when assigning a member to an organization.

    example:
      username: user1@somemail.com

/organizations:
  post:
    description: Create new organization
    responses:
      201:
        body:
          application/json:
            type: organization
      401:
        description: Unauthorized
  get:
    description: |
      Get organizations. Authorization limits are applied to requesting user.
    responses:
      200:
        body:
          application/json:
            type: organization[]

  /{globalid}:
    get:
      description: Get organization info
      responses:
        200:
          body:
            application/json:
              type: organization
        401:
          description: Unauthorized
        404:
          description: Not found
    put:
      description: Update organization info
      body:
        application/json:
          type: organization
      responses:
        200:
          body:
            application/json:
              type: organization
        401:
          description: Unauthorized
        404:
          description: Not found

    /members:
      post:
        description: Assign a member to organization
        body:
          application/json:
            type: member
        responses:
          201:
            description: Member assigned successfully
            body:
              application/json:
                type: member
          401:
            description: Unauthorized
          404:
            description: Not found

      /{username}:
        delete:
          description: Remove a member from organization
          responses:
            204:
              description: Member assigned successfully
            401:
              description: Unauthorized
            404:
              description: Not found

error: pathspec 'specifications/api/organizations.raml' did not match any file(s) known to git


initial raml push

initial raml push

converted online.. need to rewrite

fatal: unable to access 'https://github.com/VATUSA/api.git/': The requested URL returned error: 403


Fix see description

Fix see description


Add draft of the service as RAML

Add draft of the service as RAML

#%RAML 0.8
title: CTU Sirius API
baseUri: http://sirius.is.cvut.cz/
version: v1
traits:
  - paged:
      queryParameters:
        pages:
          description: The number of pages to return
          type: number
  - dateScoped:
      queryParameters:
        from:
          description: Return events from this date
          type: date
        to:
          description: Return events up to this date
          type: date
  - filterable:
      queryParameters:
        rooms:
          description: Filter by room's GTF code, comma separated
          type: string
          example: 026A--n13-1333
        courses:
          description: Filter by associated course, comma separated
          type: string
          example: MI-RUB,BI-PYT
        people:
          description: Filter by associated persons' usernames, comma separated
          type: string
          example: vomackar,kadleto2
  - includable:
      queryParameters:
        include:
          description: Include linked resources per JSON API
          type: string
          example: people

/events:
  is: [ paged, dateScoped, filterable ]
  get:
    description: Return 20 most recently created events
    responses:
      200:
        body:
          application/json:
            example: |
                {
                  events: [{
                    id: 42,
                    name: "MI-RUB",
                    note: "Yadda yadda yadda",
                    starts_at: "2014-04-23T07:30:00Z",
                    ends_at: "2014-04-23T11:00:00Z",
                    sequence_number: 12, //
                    links: {
                      room: "026A--n13-1333",
                      course: "MI-RUB",
                      parallel: "yadda yadda yadda"
                    }
                  ]}
                }
  /{eventId}:
    get:
      responses:
        200:
          body:
            application/json:
              example: |
                {
                  events: [{
                    id: 42,
                    name: "MI-RUB",
                    note: "Yadda yadda yadda",
                    starts_at: "2014-04-23T07:30:00Z",
                    ends_at: "2014-04-23T11:00:00Z",
                    sequence_number: 12, //
                    links: {
                      room: "026A--n13-1333",
                      course: "MI-RUB"
                      people: ["kadleto2", "jirutjak"]
                    }
                  ]}
                }
    put:
    delete:
/exceptions:
  description: Manage calendar exceptions
  get:
    responses:
      200:
        body:
          application/json:
            example: |
              {
                exceptions: [
                  {
                    id: 43,
                    name: "statni svatek",
                    action: "cancel",
                    starts_at: "2014-04-23T15:00:00Z",
                    ends_at: "2014-04-23T19:00:00Z",
                    recurrence: "FREQ=YEARLY",
                    links: {
                      parallels: ["", ""],
                      divisions: ["18001"],
                      semester: "abc123"
                    }
                  },
                  {

                  }

                ]
              }

error: pathspec 'doc/draft.raml' did not match any file(s) known to git


Update RAML spec [ci skip]

Update RAML spec [ci skip]

Per comments in d324ef4382ad928492119beb38747a436856cc82

Conflicts:
	doc/draft.raml

#%RAML 0.8
title: CTU Sirius API
baseUri: https://sirius.fit.cvut.cz/
version: v1
traits:
  - paged:
      usage: Retreive further pages in collection
      description: Use `offset` and `limit` to paginate the records.
      queryParameters:
        limit:
          description: The number of entries in collection to return
          type: number
          default: 10
          maximum: 100
        offset:
          description: Offset of the first entry in collection
          type: number
          default: 0
  - dateScoped:
      queryParameters:
        from:
          description: Return events from this date
          type: date
        to:
          description: Return events up to this date
          type: date
  - filterable:
      queryParameters:
        rooms:
          description: Filter by room's GTF code, comma separated
          type: string
          example: 026A--n13-1333
        courses:
          description: Filter by associated course, comma separated
          type: string
          example: MI-RUB,BI-PYT
        people:
          description: Filter by associated persons' usernames, comma separated
          type: string
          example: vomackar,kadleto2
  - includable:
      queryParameters:
        include:
          description: Include linked resources per JSON API
          type: string
          example: people

/events:
  is: [ paged, dateScoped, filterable ]
  get:
    description: Return most recently created events
    responses:
      200:
        body:
          application/json:
            example: |
                {
                  events: [{
                    id: 42,
                    name: "MI-RUB",
                    note: "Yadda yadda yadda",
                    starts_at: "2014-04-23T07:30:00Z",
                    ends_at: "2014-04-23T11:00:00Z",
                    sequence_number: 12, //
                    links: {
                      room: "026A--n13-1333",
                      course: "MI-RUB",
                      parallel: "yadda yadda yadda"
                    }
                  ]}
                }
  /{eventId}:
    get:
      responses:
        200:
          body:
            application/json:
              example: |
                {
                  events: [{
                    id: 42,
                    name: "MI-RUB",
                    note: "Yadda yadda yadda",
                    starts_at: "2014-04-23T07:30:00Z",
                    ends_at: "2014-04-23T11:00:00Z",
                    sequence_number: 12, //
                    links: {
                      room: "026A--n13-1333",
                      course: "MI-RUB"
                      people: ["kadleto2", "jirutjak"]
                    }
                  ]}
                }
    put:
    delete:
/exceptions:
  description: Manage calendar exceptions
  is: [paged]
  get:
    responses:
      200:
        body:
          application/json:
            example: |
              {
                exceptions: [
                  {
                    id: 43,
                    name: "statni svatek",
                    action: "cancel",
                    starts_at: "2014-04-23T15:00:00Z",
                    ends_at: "2014-04-23T19:00:00Z",
                    recurrence: "FREQ=YEARLY",
                    links: {
                      parallels: ["", ""],
                      divisions: ["18001"],
                      semester: "abc123"
                    }
                  },
                  {

                  }

                ]
              }


Updating parameters of LUIS method

Updating parameters of LUIS method

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Jyben/twitchbot-api.git/'


Add raml documentation

Add raml documentation

description: Batch Run Jobs
get:
  description: |
    Get a list of batch jobs user has created.
    Requires login.
  responses:
    200:
      body:
        application/json:
          example: !include ../examples/output/batch-list.json
          schema: !include ../schemas/output/batch-list.json
post:
  description: Create a batch job proposal, insert as 'pending'.
  body:
    application/json:
      example: !include ../examples/input/batch-insert.json
      schema: !include ../schemas/input/batch-insert.json
  responses:
    200:
      body:
        application/json:
          example: !include ../examples/output/batch-insert.json

/{BatchId}:
  description: Perform actions with a specific batch job
  uriParameters:
    BatchId:
      type: string
  get:
    description: Get batch job details
    queryParameters:
      jobs:
        type: boolean
        required: false
        description: If true, return job objects instead of job ids
    responses:
      200:
        body:
          application/json:
            example: !include ../examples/output/batch.json
            schema: !include ../schemas/output/batch.json
      404:
        description: BatchId not found
  /run:
    description: Launch a Job
    post:
      description: |
        Creates jobs from proposed inputs, returns jobs enqueued.
        Moves 'pending' batch job to 'launched'.
      responses:
        200:
          body:
            application/json:
              example: !include ../examples/output/job-list.json
              schema: !include ../schemas/output/job-list.json
  /cancel:
    description: Cancel a Job
    post:
      description: |
        Cancels jobs that are still pending, returns number of jobs cancelled.
        Moves a 'launched' batch job to 'cancelled'.
      responses:
        200:
          body:
            application/json:
              example: |
                {
                  "cancelled_jobs": "4"
                }

error: pathspec 'raml/resources/batch.raml' did not match any file(s) known to git