Code Monkey home page Code Monkey logo

lambda-chasqui's People

Contributors

aldigjo avatar c-castillo avatar rmw2 avatar schowdhuri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

lambda-chasqui's Issues

Updating/getting a nonexistent topic returns 200 OK

Expected behavior:
Posting to a recently deleted topicid should result in a 404 or other error, indicating that the resource doesn't exist.

Attempting to GET a non-existent topicid will also return 404 Not Found or (per previous spec) create a new topic and return 201 Created same as POST /topic/

Current behavior:
Posting to an unused topic does nothing but raises no error, because

UPDATE topics SET content = $2 WHERE id = $1

does nothing when there are no rows with the queried id. The request then returns 200 OK, indicating that it successfully updated a topic when none exists.

Attempting to GET the same topic will return another 200 OK after actually creating an entry for that topic, and will return a body with only {status: 'success'} and no topic field.

Now that new topics are created with POST /topic/ I think it would make sense to remove the GET /topic/:id option, both for redundancy/confusion and for better https semantics.

PR with integration tests/reproducing examples for the above forthcoming

unable to use this service in node project

i want to use this service in my node js project but unable to use it, things i tried

  • install using npm install gitRepoURL (Error: Cannot find module 'lambda-olorun')
  • link package using npm link __dirpath (Error: Cannot find module 'lambda-olorun')

is there any way i can use this in my project Or any other alternative ?
Error
inside servre.js

node server.js run cmd

there is main: index.js entry in package.json file but index.js not exist in src dir

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.