EdgeCommander / edge-commander

Device Management & Monitoring Application
10 stars 3 forks source link

Add More Swagger API endpoints #517

Closed Ali7862 closed 4 years ago

Ali7862 commented 4 years ago

Sims

POST "/sims" (Create new sim) PATCH "/sims/:id" (Update sim by ID) DELETE "/sims/:id" (Delete sim by ID)

Routers

GET "/routers/:id" (Returns router details by ID)

Nvrs

GET "/nvrs/:id" (Returns nvr details by ID)

Rules

GET "/rules/:id" (Returns rule details by ID)

Sites

GET "/sites/:id" (Returns site details by ID)

Batteries

GET "/batteries" (Returns all battery) POST "/batteries" (Create new battery) PATCH "/batteries/:id" (Update battery by ID) DELETE "/batteries/:id" (Delete battery by ID) GET "/batteries/:id" (Returns battery details by ID) GET "/batteries/:id/readings" (Returns complete data readings by ID)

marcoherbst commented 4 years ago

https://gearheart.io/blog/restful-api-design-best-practices/

Use plurals.

m

On Tue, 7 Apr 2020 at 18:26, Ali Imran notifications@github.com wrote:

GET "/battery" (Returns all battery) POST "/battery" (Create new battery) PATCH "/battery/:id" (Update battery by ID) DELETE "/battery/:id" (Delete battery by ID) GET "/battery/:id" (Returns battery details by ID)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EdgeCommander/edge-commander/issues/517, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDD7WCZDUG55IBGTDHHXDRLNO2NANCNFSM4MDJKYIQ .

-- Marco Herbst Director | +353 86 1960451 <+353861960451> www.evercam.io EVERCAM - Construction Time-lapse