Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

dynamic menu idea?

I am tasked with rewriting a web mobile app written by a 3rd party that uses inet_ and html created on the fly.
The first menu , apart from the logon, is the ‘mainmenu’ which is just buttons under each other.
A 3rd part web developer will be assigned the job of developing the webmobile front end.
I was wondering, having no experience in how the web developer handles REST & Json, if it was practical to provide the menu detail via a json response, so if his coding was made dynamic, we could add another menu item and it would not require any extra work by the developr.

Using what was created by the current app I created the following in a text editor after looking at some examples in the help and as wondering if this would work , and also the concept as I stated above.

{ "_links": { "self": { "href": "http://localhost/api/apimenu" "method":"GET" }, "GETjobClockOn": { "href": "http://localhost/api/apijobclockon", "title": "Clock On" }, "GETjobclockoff": { "href": "http://localhost/api/apijobclockoff", "title": "Clock Off" "method":"GET" }, "GETjobclockreport": { "href": "http://localhost/api/apijobclockreport", "title": "Job Clock Report" "method":"GET" }, "GETjobsiteinstruction": { "href": "http://localhost/api/apijobsiteinstruction", "title": "Site Instruction Form" "method":"GET" }, "GETjobemployeecontact": { "href": "http://localhost/api/apijobemployeecontact", "title": "Contact Details" "method":"GET" } "GETjobcreate": { "href": "http://localhost/api/apijobcreate", "title": "Create Job" "method":"GET" } "GETswms": { "href": "http://localhost/api/apiswms", "title": "Safe Work Method Statement" "method":"GET" } "GETlogout": { "href": "http://localhost/api/apilogout", "title": "Logout" "method":"GET" } }, }
Sign In or Register to comment.