Hi everyone, exists any possibility of creating layers, feature classes and services using ONLY Rest services?
I am not sure what you mean by this. The JS Api uses rest services to add layers to the map. So your question is not very clear.
Not sure if I understood your question correctly. If the map is published as Feature service (Feature Access) with EXPORT option enabled, you can open the service in ArcMap and export data to a feature class.
Retrieving data ...