Renamespace to 'legendary'
Use constants for api endpoint.
Fix a bug with Rest admin