uport-project / lambda-chasqui Goto Github PK
View Code? Open in Web Editor NEW๐ Messenger service ๐
License: Apache License 2.0
๐ Messenger service ๐
License: Apache License 2.0
Create a periodic job to remove expired topics from the database.
DELETE FROM topics
WHERE expiration < now();
This should run every hour.
Inspiration:
https://github.com/uport-project/lambda-unnu/blob/master/src/jobs_handler.js
https://github.com/uport-project/lambda-unnu/blob/master/serverless.yml#L55-L68
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
i want to use this service in my node js project but unable to use it, things i tried
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
Also store the content of the referrer header with the request and return it when fetching the message.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.