Skip to content
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

s list socket - response: undefined #96

Closed
maciejkorsan opened this issue Jan 25, 2018 · 1 comment
Closed

s list socket - response: undefined #96

maciejkorsan opened this issue Jan 25, 2018 · 1 comment
Assignees

Comments

@maciejkorsan
Copy link
Member

  1. create empty hello-world socket (es6 template)
  2. s list hello-world
    description: Description of hello-world 
    version: 0.0.1 
    type: local Socket 
    status: not synced 
 
        endpoint: hello-world/hello 
        description: Hello world! 
        url: https://red-snowflake-7218.syncano.space/hello-world/hello/ 
        status: not synced 
 
            params: 
 
            name: firstname 
            description: First name of the person you want to greet 
            example: Tyler 
 
            name: lastname 
            description: Last name of the person you want to greet 
            example: Durden 
 
            response: undefined 
@maciejkorsan
Copy link
Member Author

socket.yml

description: Description of hello-world
version: 0.0.1
runtime: nodejs_v8

endpoints:
  hello:
    description: Hello world!
    parameters:
      firstname:
        type: string
        description: First name of the person you want to greet
        example: Tyler
      lastname:
        type: string
        description: Last name of the person you want to greet
        example: Durden
    response:
      success:
        description: Success
        parameters:
          message:
            description: Hello message
        example: |
          {
            "message": "Hello Tyler Durden!"
          }
      fail:
        exit_code: 400
        description: Failed
        parameters:
          message:
            description: Error message

        example: |
          {
            "message": "You have to send "firstname" and "lastname" arguments!"
          }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants