You need to sign in to do that
Don't have an account?

can we have more than one end url in an apex class ? please give examples
I meant to say more than two post methods which are doing different works
You need to sign in to do that
Don't have an account?
You cannot use two post methods in the same class but you can use in different class.
Check similar references below.
https://salesforce.stackexchange.com/questions/64982/apex-rest-class-why-cant-i-have-multiple-apex-methods-for-the-same-http-metho
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,