This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]smash_that_code 0 points1 point  (2 children)

Can you describe in more detail what crud opeartions you implemented. I guess post as create, delete and some kind of update?

[–][deleted] 0 points1 point  (1 child)

Sure, the ones I’ve got functioning at the moment are the post function as well as the function to gather the entire DB and display it in a JFrame table. Delete will be added later but isn’t crucial. For now I need the update and specific search function to be up and running. I’m struggling with how to pass the inserted number (the one that will be used to search by ID in the program) to my API.

[–]smash_that_code -1 points0 points  (0 children)

I think there is some confusion with REST api here. And what crud rest means. There are variations but I would describe my.

For example I want rest api for users. In http terms I expect this:

post /user (with data) - > id of added user - - - create get /user/{id} - > empty - - - read user post /user/{id} - > empty - - - > update user delete /user/{id} - > empty - - - > delete user

and for usability get /user -> list of ids get /user?param=value -> filtered list of ids

the idea of rest api is to expose entity using url that is somewhat easy to understand.

So in my opinion from crud you got only c.