Comments (13)
I think both the ways should okay:
- Single API with body
- Separate APIs without body
But it seems unusual/unconventional to have PUT
/POST
request without body.
Single API with body should be the ideal way to implement.
from notykt.
I think both the ways should okay:
- Single API with body
- Separate APIs without body
But it seems unusual/unconventional to have
PUT
/POST
request without body.
Single API with body should be the ideal way to implement.
Makes sense!
from notykt.
Heyy @PatilShreyas I can take this up... should I start working on this feature??
from notykt.
Thanks for showing interest in contributing this @mrfamouskk7. Sure, Assigning this to you.
from notykt.
Thanks for showing interest in contributing this @mrfamouskk7. Sure, Assigning this to you.
Thanks @PatilShreyas
from notykt.
Let me know if you need any help in setting up this project locally.
from notykt.
Actually, I am done with local setup.
I just had a question, so isPinned
flag will be required while fetching notes as well right? So should I include that in same PR??
from notykt.
Yes, it'll be required to have isPinned flag in all notes response. If you're fine with doing it in the same PR, then okay. Otherwise we can also have a dedicated PR for that.
from notykt.
@mrfamouskk7 Current API looks good to you?
Otherwise, we can also have two API endpoints for pin and unpin operations.
Like,
- PUT
/note/{noteId}/pin
- PUT
/note/{noteId}/unpin
This will not require a request body.
WDYT?
from notykt.
Yes, it'll be required to have isPinned flag in all notes response. If you're fine with doing it in the same PR, then okay. Otherwise we can also have a dedicated PR for that.
I will include in the same PR
from notykt.
Heyy Shreyash, so I have a couple of suggestions:
- Pinning API can be changed from
PUT
request to aPATCH
request.PATCH
is more suitable because we are not updating the complete resource here. - A new field
updated
can be added to notes so that the most recent pinned note will be at the top
WDYT?
from notykt.
@mrfamouskk7 this sounds good to me. Definitely we can have updated
field
from notykt.
Sure... I will add those changes in the same PR
from notykt.
Related Issues (20)
- [Android] Feature Request: Pin notes HOT 4
- Keyboard retains after navigating back from Add Note or Note detail screen HOT 3
- Defect: Progress dialog keeps running in infinite loop HOT 7
- [Android] Implement API for updating Pin/Unpin state in Android app HOT 5
- Replace deprecated OptionsMenu with MenuProvider HOT 5
- [Android/ComposeApp] Support password visibility/invisibility toggle button for Password fields in Compose app
- [Backend] Use Hikari DataSource for Database connection pooling HOT 2
- [CI] Setup CI workflow for running Android-ComposeApp UI tests HOT 5
- [API] Migrate from Heroku to Railway.app HOT 1
- Error dialog keeps popping up on State changes
- Noty Android App V2.2.1 can not signup HOT 6
- Show recently added note first
- Replace collectAsState with collectAsStateWithLifecycle() HOT 3
- Theme change button only works once HOT 3
- Integrate Mutekt in Android app
- Avoid syncing notes when user is not logged in
- Fix Stability of Composable functions
- [Issue][noty-api] Using `clientDefault` instead of `default` in create and updated datetime columns of NoteTable HOT 1
- Misbehaviour of Fragments HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notykt.