Coder Social home page Coder Social logo

omega's Introduction

Omega

Abra Home Assignment

Endpoints -

GET

/users_messages/ - Retrieve all messages that current user (logged in) is the owner.

/users_messages/<message_id: int>/
Retrieve a single message only for its owner or receiver.
If current user is the receiver, the message will be flagged as "read".

/users_messages/inbox/[?is_read=[1/0/False/True]]
Retrieve list of messages which was sent to current user,
with a possibility to view only those that wasn't watched before. (using is_read query parameter)

POST

/users_messages/ - Create a message (automatically associated with current user)
{
"receiver": <some_id: int>,
"subject": <char_field: char>,
"body": <char_field: char>
}

DELETE

/users_messages/<message_id: int>/
Delete a message only if current user is its owner or receiver.

Notes

  1. There was an issue with Django5, so downgraded it to 4.2.7.

omega's People

Contributors

liora1 avatar

Watchers

 avatar

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.