Add the organization to user membership api's

#%RAML 1.0
title: ItsYouOnline
version: 0.1
baseUri: /
types:
  BankAccount:
    properties:
        iban:
          type: string
          maxLength: 30
        bic:
          type: string
          maxLength: 10
        country:
          type: string
          maxLength: 40

  Phonenumber:
    pattern: ^\+[0-9]+$
  Address:
    properties:
        city:
            type: string
            maxLength: 30
        street:
            type: string
            maxLength: 50
        nr:
            type: string
            maxLength: 10
        other?:
            type: string
            maxLength: 30
        country:
            type: string
            maxLength: 40
        postalcode:
            type: string
            maxLength: 20
  User:
    properties:
        username:
            type: string
            maxLength: 30
            minLength: 2
        expire?: date
        email?: string{}
        phone?: Phonenumber{}
        address?: Address{}
        bank?: BankAccount{}
        facebook?:
            type: string
            maxLength: 40
        github?:
            type: string
            maxLength: 50

    example:
        username: bob
        expire: 2018-10-20
        email:
            work: bob@company.com
            home: bob@example.com
            "dance club": bob@linedanceclub.example.org
        phone:
          be: +3212341234123
          eg: +2012341234123
        address:
            home:
                city: Springfield
                street: Main street
                nr: 45B
                country: Tomorrowland
                postalcode: T-9450
            work:
                city: Capital City
                street: Capital street
                nr: 1
                country: Tomorrowland
                postalcode: T-1000
        bank:
            kbc:
                iban: TL123451234512345
                bic: ABCDEF
                country: Tomorrowland

  userview:
    properties:
        username:
            type: string
        email?: string[]
        phone?: Phonenumber[]
        address?: Address[]
        bank?: BankAccount[]
        facebook?:
            type: string
            maxLength: 40
        github?:
            type: string
            maxLength: 50

  JoinOrganizationRequest:
    properties:
        organization: string
        user: string
        role:
            type: string
            enum: [owner, member]

/users:
  post:
    description: Create a new user
    body:
        application/json:
            type: user
  /{username}:
    get:
        responses:
            200:
                body:
                    application/json:
                        type: User
    put:
      description: Update an existing user. Updating ``username`` is not allowed. The labelled lists can not be updated this way, the normal properties can (like github and facebook account).
      responses:
        200:
          body:
            application/json:
              type: User
        403:
          description: Updating username is Forbidden!
  /{username}/info:
    get:
        displayName: getUserInformation
        responses:
            200:
                body:
                    application/json:
                        type: userview
  /{username}/validate:
    get:
        queryParameters:
            token:
                type: string
  /{username}/addresses:
    get:
        responses:
            200:
                body:
                    application/json:
                      type: Address{}
  /{username}/addresses/{label}:
    get:
        responses:
            200:
                body:
                    application/json:
                      type: Address
    put:
        description: Update or create an existing address.
        body:
            application/json:
                type: Address
    delete:
        description: Delete an address
  /{username}/phonenumbers:
    get:
        responses:
            200:
                body:
                    application/json:
                      type: Phonenumber{}
  /{username}/phonenumbers/{label}:
    get:
        responses:
            200:
                body:
                    application/json:
                        type: Phonenumber
    put:
        description: Update or create an existing phonenumber.
        body:
            application/json:
                type: Phonenumber
    delete:
        description: Delete a phonenumber
  /{username}/banks:
    get:
        responses:
            200:
                body:
                    application/json:
                      type: BankAccount{}
  /{username}/banks/{label}:
    get:
        responses:
            200:
                body:
                    application/json:
                        type: BankAccount
    put:
        description: Update or create an existing bankaccount.
        body:
            application/json:
                type: BankAccount
    delete:
        description: Delete a BankAccount
  /{username}/organizations:
    get:
        description: Get the list organizations a user is owner of member of
        responses:
            200:
                body:
                    application/json:
                      properties:
                        owner: string[]
                        member: string[]
  /{username}/notifications:
    get:
        description: Get the list of notifications, these are pending invitations or approvals
        responses:
            200:
                body:
                    application/json:
                        properties:
                            invitations: JoinOrganizationRequest[]
                            approvals: JoinOrganizationRequest[]

#%RAML 1.0
title: ItsYouOnline
version: 0.1
baseUri: /users
types:
  BankAccount:
    properties:
        iban:
          type: string
          maxLength: 30
        bic:
          type: string
          maxLength: 10
        country:
          type: string
          maxLength: 40

  Phonenumber:
    pattern: ^\+[0-9]+$
  Address:
    properties:
        city:
            type: string
            maxLength: 30
        street:
            type: string
            maxLength: 50
        nr:
            type: string
            maxLength: 10
        other?:
            type: string
            maxLength: 30
        country:
            type: string
            maxLength: 40
        postalcode:
            type: string
            maxLength: 20
  User:
    properties:
        username:
            type: string
            maxLength: 30
            minLength: 2
        expire?: date
        email?: string{}
        phone?: Phonenumber{}
        address?: Address{}
        bank?: BankAccount{}
        facebook?:
            type: string
            maxLength: 40
        github?:
            type: string
            maxLength: 50

    example:
        username: bob
        expire: 2018-10-20
        email:
            work: bob@company.com
            home: bob@example.com
            "dance club": bob@linedanceclub.example.org
        phone:
          be: +3212341234123
          eg: +2012341234123
        address:
            home:
                city: Springfield
                street: Main street
                nr: 45B
                country: Tomorrowland
                postalcode: T-9450
            work:
                city: Capital City
                street: Capital street
                nr: 1
                country: Tomorrowland
                postalcode: T-1000
        bank:
            kbc:
                iban: TL123451234512345
                bic: ABCDEF
                country: Tomorrowland

  userview:
    properties:
        username:
            type: string
        email?: string[]
        phone?: Phonenumber[]
        address?: Address[]
        bank?: BankAccount[]
        facebook?:
            type: string
            maxLength: 40
        github?:
            type: string
            maxLength: 50

/users:
  post:
    description: Create a new user
    body:
        application/json:
            type: user
  /{username}:
    get:
        responses:
            200:
                body:
                    application/json:
                        type: User
    put:
      description: Update an existing user. Updating ``username`` is not allowed. The labelled lists can not be updated this way, the normal properties can (like github and facebook account).
      responses:
        200:
          body:
            application/json:
              type: User
        403:
          description: Updating username is Forbidden!
  /{username}/info:
    get:
        displayName: getUserInformation
        responses:
            200:
                body:
                    application/json:
                        type: userview
  /{username}/validate:
    get:
        queryParameters:
            token:
                type: string
  /{username}/addresses:
    get:
        responses:
            200:
                body:
                    application/json:
                      type: Address{}
  /{username}/addresses/{label}:
    get:
        responses:
            200:
                body:
                    application/json:
                      type: Address
    put:
        description: Update or create an existing address.
        body:
            application/json:
                type: Address
    delete:
        description: Delete an address
  /{username}/phonenumbers:
    get:
        responses:
            200:
                body:
                    application/json:
                      type: Phonenumber{}
  /{username}/phonenumbers/{label}:
    get:
        responses:
            200:
                body:
                    application/json:
                        type: Phonenumber
    put:
        description: Update or create an existing phonenumber.
        body:
            application/json:
                type: Phonenumber
    delete:
        description: Delete a phonenumber
  /{username}/banks:
    get:
        responses:
            200:
                body:
                    application/json:
                      type: BankAccount{}
  /{username}/banks/{label}:
    get:
        responses:
            200:
                body:
                    application/json:
                        type: BankAccount
    put:
        description: Update or create an existing bankaccount.
        body:
            application/json:
                type: BankAccount
    delete:
        description: Delete a BankAccount


created a simple API with api-workbench for atom

#%RAML 0.8
title: Some API
version: v1
baseUri: http://api.samplehost.com
/helloWorld:
  get:
    responses:
      200:
        body:
          application/json:
            example: |
              {
                "message" : "Hello World"
              }

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


minor typo correction to security.raml

minor typo correction to security.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/simonsdave/cloudfeaster-services.git/'


Add draft API description

Add draft API description

#%RAML 1.0

title: OpenWebslides API
version: 1
baseUri: http://localhost:5000/api/
mediaType: application/vnd.api+json
/users:
  displayName: Users
  description: User API
  get:
    description: List of all users
  post:
    description: Create a new user (sign up)
  /{id}:
    get:
      description: Get user
    patch:
      description: Update user
    put:
      description: Update user
    delete:
      description: Delete user
/decks:
  displayName: Decks
  description: Slidedeck API
  get:
    description: List of all visible decks
  post:
    description: Create a new deck
  /{id}:
    get:
      description: Get deck
    patch:
      description: Update deck
    put:
      description: Update deck
    delete:
      description: Delete deck

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


first/partial review of types/raml discriptions

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/zero-os/0-orchestrator.git/'


Create api.raml

Create api.raml

#%RAML 0.8
title: Foodify
version: 1.0

baseUri: http://http://hacknsit.herokuapp.com/

/user:
  /register:
    post:
      description: Register a user to the app
      queryParameters:
        user:
          example: rohan
        password:
          example: pwd
        phone:
          example: "9810000001"
        weight:
          example: "55"
  /calories:
    /{token}:
      displayName: User Auth Token from Parse
      get:
        description: Returns the calories requirement according to weight of user
  /calleft:
    /{token}:
      get:
        description: Returns the calculated calories left to be consumed according to the track feed of the user
  /feed:
    /{token}:
      get:
        description: Returns the calculated calories consumed according to the feed
/upload:
  post:
    queryParameters:
      file:
        description: Multipart Image of Product
    description: Returns the response from the pipeline made between cloudsight API and nutritionix api.

/recipies:
  /calories:
    /{max_cals}:
      description: Returns the possible recipes given the maximum calories as upper limit
  /info:
    /{rid}:
      description: Retrieve the information about a specific recipie

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


Use proxied API sandbox

Use proxied API sandbox

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/jensfischerhh/epages-docs.git/'


Fix #283: No Responses for /users/{username}/authorizations/{grantedTo}

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/lucasvanhalst/identityserver.git/'


Add Place Resource

Add Place Resource

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/merktassel/officer-assistant.git/'


Add Parse Provider

Add Parse Provider

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/merktassel/research-project-2015.git/'


Fix ays api .raml (#360)

Fix ays api .raml (#360)

Request body should be in application/json-type, not application/json-properties-type

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/'