Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to REST from gRPC #232

Merged
merged 54 commits into from
Jul 28, 2022
Merged

move to REST from gRPC #232

merged 54 commits into from
Jul 28, 2022

Conversation

mrtrkmn
Copy link
Member

@mrtrkmn mrtrkmn commented Jun 30, 2022

  • /admin/host/monitor - needs a web socket, this feature requires a discussion with @Mikkelhost >> Done
  • /events - todo: check error message on display 27fec03
  • /admin/login todo: check error message on display a1492ea
  • /admin/signup - 3cc5d89
  • /admin/event/list
  • /admin/invite
  • /admin/event/{tag}/list/teams
  • /admin/team/{eventTag}/{teamId}/challenges
  • /admin/challenge/solve
  • /admin/team/{eventTag}/{teamId}/info
  • /admin/get/api/creds
  • /admin/user/list
  • /admin/user/update
  • /admin/user/delete
  • /admin/team/update
  • /admin/event/create
  • /admin/event/stop
  • /admin/exercise/list
  • /admin/manage/notification
  • /admin/event/suspend
  • [ ] /admin/frontend/set/memory not used in webclient
  • [ ] /admin/frontend/set/cpu not used in webclient
  • /admin/event/get/exercises (for getting only tagged exercises)
  • /admin/frontends/list
  • /admin/profiles/list
  • /admin/categories/list
  • /admin/profile/edit (if user profile will be implemented in future, /admin/user/profile can be considered)
  • /admin/profile/delete
  • /admin/profile/save
  • /admin/team/delete
  • [ ] /admin/stress/event ( vue component does not exists, exists only on CLI )
  • /admin/lab/restart
  • /admin/challenge/add
  • /admin/event/reset/exercise
  • /admin/frontend/reset
  • [ ] /version ( not implemented on webclient)

@mrtrkmn mrtrkmn changed the title grpc files removed move to REST from gRPC Jun 30, 2022
@mrtrkmn mrtrkmn force-pushed the feature/move-grpc-to-rest-#230 branch from 6de6cc1 to 04b13a9 Compare July 1, 2022 01:09
client/src/Pages/Home.vue Outdated Show resolved Hide resolved
client/src/Pages/Home.vue Outdated Show resolved Hide resolved
@mrtrkmn mrtrkmn linked an issue Jul 6, 2022 that may be closed by this pull request
@Mikkelhost
Copy link
Member

Since the monitor host system is quite a good indicator for us if everything is running as it is supposed to. I think we need to find a solution for it to be working without the envoy proxy :)

Once this is done we can merge the changes and test on our development server.

@mrtrkmn mrtrkmn marked this pull request as ready for review July 23, 2022 10:44
@mrtrkmn
Copy link
Member Author

mrtrkmn commented Jul 23, 2022

All endpoints moved to REST, on top of that, some error messages are fixed with correct responses from the server.
@Mikkelhost , it would be great, if you can review latest changes from your last comment

export default {
name: 'app'
};
export const daemonclient = new DaemonClient(window.location.protocol+"//"+window.location.hostname+":8000", null, null);
export const API_ENDPOINT = window.location.protocol+"//"+window.location.hostname+":8090"
export const WEBSOCKET_ENDPOINT = "wss://"+window.location.hostname+":8091"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice if it could detect weither or not it should be wss of ws based on if http or https was used. This is mostly since at least i am not using certs when developing locally :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure !

@mrtrkmn
Copy link
Member Author

mrtrkmn commented Jul 23, 2022

Changes applied @Mikkelhost

@mrtrkmn mrtrkmn merged commit 898d0d6 into develop Jul 28, 2022
@mrtrkmn mrtrkmn mentioned this pull request Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gRPC to REST
2 participants